diff options
author | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2010-06-08 00:20:38 +0530 |
---|---|---|
committer | Darshan Shaligram <dshaligram@users.sourceforge.net> | 2010-06-08 00:22:21 +0530 |
commit | 156635a1e9723b107d8d20d0207d5c01a86a4a7a (patch) | |
tree | bb3c8f5553a1191c77949753e4ddccfd45c9787e /crawl-ref/source/l_debug.cc | |
parent | fa4d29f457d4e7b1aed794dca063a68a32486009 (diff) | |
download | crawl-ref-156635a1e9723b107d8d20d0207d5c01a86a4a7a.tar.gz crawl-ref-156635a1e9723b107d8d20d0207d5c01a86a4a7a.zip |
[591] Test case to fail if a monster behind plants jumps back and forth between a set of locations when trying to move to the player.
Diffstat (limited to 'crawl-ref/source/l_debug.cc')
-rw-r--r-- | crawl-ref/source/l_debug.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/crawl-ref/source/l_debug.cc b/crawl-ref/source/l_debug.cc index 0243df0a4a..0574bfa3c2 100644 --- a/crawl-ref/source/l_debug.cc +++ b/crawl-ref/source/l_debug.cc @@ -81,6 +81,12 @@ LUAFN(debug_generate_level) return (0); } +LUAFN(debug_los_changed) +{ + los_changed(); + return (0); +} + LUAFN(debug_dump_map) { const int pos = lua_isuserdata(ls, 1) ? 2 : 1; @@ -291,11 +297,18 @@ LUAFN(debug_check_uniques) return (1); } +LUAFN(debug_viewwindow) +{ + viewwindow(lua_toboolean(ls, 1), lua_toboolean(ls, 2)); + return (0); +} + const struct luaL_reg debug_dlib[] = { { "goto_place", debug_goto_place }, { "flush_map_memory", debug_flush_map_memory }, { "generate_level", debug_generate_level }, +{ "los_changed", debug_los_changed }, { "dump_map", debug_dump_map }, { "test_explore", _debug_test_explore }, { "bouncy_beam", debug_bouncy_beam }, @@ -308,5 +321,6 @@ const struct luaL_reg debug_dlib[] = { "randomize_uniques", debug_randomize_uniques }, { "reset_uniques", debug_reset_uniques }, { "check_uniques", debug_check_uniques }, +{ "viewwindow", debug_viewwindow }, { NULL, NULL } }; |