v0.6.1b: further fixes for hero searching more often than intended
This commit is contained in:
parent
13e0c37c38
commit
786e9cf0ea
|
@ -483,7 +483,7 @@ public class Hero extends Char {
|
||||||
Dungeon.observe();
|
Dungeon.observe();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (curAction == null || search(false)) {
|
if (curAction == null) {
|
||||||
|
|
||||||
if (resting) {
|
if (resting) {
|
||||||
spend( TIME_TO_REST ); next();
|
spend( TIME_TO_REST ); next();
|
||||||
|
@ -1106,6 +1106,8 @@ public class Hero extends Char {
|
||||||
|
|
||||||
spend( moveTime / speed() );
|
spend( moveTime / speed() );
|
||||||
|
|
||||||
|
search(false);
|
||||||
|
|
||||||
//FIXME this is a fairly sloppy fix for a crash involving pitfall traps.
|
//FIXME this is a fairly sloppy fix for a crash involving pitfall traps.
|
||||||
//really there should be a way for traps to specify whether action should continue or
|
//really there should be a way for traps to specify whether action should continue or
|
||||||
//not when they are pressed.
|
//not when they are pressed.
|
||||||
|
@ -1528,7 +1530,7 @@ public class Hero extends Char {
|
||||||
for (int y = ay; y <= by; y++) {
|
for (int y = ay; y <= by; y++) {
|
||||||
for (int x = ax, p = ax + y * Dungeon.level.width(); x <= bx; x++, p++) {
|
for (int x = ax, p = ax + y * Dungeon.level.width(); x <= bx; x++, p++) {
|
||||||
|
|
||||||
if (Dungeon.visible[p]) {
|
if (Dungeon.visible[p] && p != pos) {
|
||||||
|
|
||||||
if (intentional) {
|
if (intentional) {
|
||||||
sprite.parent.addToBack( new CheckedCell( p ) );
|
sprite.parent.addToBack( new CheckedCell( p ) );
|
||||||
|
|
Loading…
Reference in New Issue
Block a user