summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/test
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-06-23 00:52:49 +0200
committerAdam Borowski <kilobyte@angband.pl>2010-06-23 00:52:49 +0200
commit9b058762b2f963cb208aa6be630492c87da0da3d (patch)
tree9833fbf24b7181849252bcfe187629b8d5c76108 /crawl-ref/source/test
parentd5b208b7eb891e070ae1eaa1cfa56e444b61277e (diff)
downloadcrawl-ref-9b058762b2f963cb208aa6be630492c87da0da3d.tar.gz
crawl-ref-9b058762b2f963cb208aa6be630492c87da0da3d.zip
Decouple stealth checks from drawing the view window.
Diffstat (limited to 'crawl-ref/source/test')
-rw-r--r--crawl-ref/source/test/monster-plant-pathfind.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/crawl-ref/source/test/monster-plant-pathfind.lua b/crawl-ref/source/test/monster-plant-pathfind.lua
index 9f14b0d53e..273cc307ab 100644
--- a/crawl-ref/source/test/monster-plant-pathfind.lua
+++ b/crawl-ref/source/test/monster-plant-pathfind.lua
@@ -62,9 +62,10 @@ local function check_monster_moves_repeat(monster, nmoves)
end
oldpos = p
- -- Draw the view to give the user something to look at, and to wake up
- -- the monster and kick it into seek (hopefully).
- debug.viewwindow(true, true)
+ -- Wake up the monster and kick it into seek (hopefully).
+ debug.seen_monsters_react()
+ -- Draw the view to give the user something to look at.
+ debug.viewwindow(true)
monster.add_energy(10)
assert(monster.beh == "seek",
"Monster " .. monster.name .. " is not in seek mode")