v2.2.0: fixed findstep also including avoid cells in all cases
This commit is contained in:
@@ -1009,7 +1009,7 @@ public class Dungeon {
|
||||
public static int findStep(Char ch, int to, boolean[] pass, boolean[] visible, boolean chars ) {
|
||||
|
||||
if (Dungeon.level.adjacent( ch.pos, to )) {
|
||||
return Actor.findChar( to ) == null && (pass[to] || Dungeon.level.avoid[to]) ? to : -1;
|
||||
return Actor.findChar( to ) == null && pass[to] ? to : -1;
|
||||
}
|
||||
|
||||
return PathFinder.getStep( ch.pos, to, findPassable(ch, pass, visible, chars) );
|
||||
|
||||
Reference in New Issue
Block a user