diff --git a/Source/cursor.cpp b/Source/cursor.cpp index 10f79749f..b9e61389a 100644 --- a/Source/cursor.cpp +++ b/Source/cursor.cpp @@ -335,7 +335,7 @@ void CheckCursMove() const auto &monster = Monsters[pcursmonst]; if (monster._mDelFlag || monster._mhitpoints >> 6 <= 0 || (monster._mFlags & MFLAG_HIDDEN) != 0 - || ((dFlags[monster.position.tile.x][monster.position.tile.y] & BFLAG_VISIBLE) == 0)) { + || ((dFlags[monster.position.tile.x][monster.position.tile.y] & BFLAG_LIT) == 0)) { pcursmonst = -1; } } else if (pcursobj != -1) { @@ -345,7 +345,7 @@ void CheckCursMove() auto &targetPlayer = Players[pcursplr]; if (targetPlayer._pmode == PM_DEATH || targetPlayer._pmode == PM_QUIT || !targetPlayer.plractive || currlevel != targetPlayer.plrlevel || targetPlayer._pHitPoints >> 6 <= 0 - || ((dFlags[targetPlayer.position.tile.x][targetPlayer.position.tile.y] & BFLAG_VISIBLE) == 0)) + || ((dFlags[targetPlayer.position.tile.x][targetPlayer.position.tile.y] & BFLAG_LIT) == 0)) pcursplr = -1; }