summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_debug.cc
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/l_debug.cc
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/l_debug.cc')
-rw-r--r--crawl-ref/source/l_debug.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/crawl-ref/source/l_debug.cc b/crawl-ref/source/l_debug.cc
index 9fcb51911b..303414ac9c 100644
--- a/crawl-ref/source/l_debug.cc
+++ b/crawl-ref/source/l_debug.cc
@@ -316,7 +316,13 @@ LUAFN(debug_check_uniques)
LUAFN(debug_viewwindow)
{
- viewwindow(lua_toboolean(ls, 1), lua_toboolean(ls, 2));
+ viewwindow(lua_toboolean(ls, 1));
+ return (0);
+}
+
+LUAFN(debug_seen_monsters_react)
+{
+ seen_monsters_react();
return (0);
}
@@ -342,5 +348,6 @@ const struct luaL_reg debug_dlib[] =
{ "reset_uniques", debug_reset_uniques },
{ "check_uniques", debug_check_uniques },
{ "viewwindow", debug_viewwindow },
+{ "seen_monsters_react", debug_seen_monsters_react },
{ NULL, NULL }
};