summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/l_debug.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2010-03-30 22:02:36 +0200
committerRobert Vollmert <rvollmert@gmx.net>2010-03-30 22:10:42 +0200
commita26f7ebd1a8523ec6bb7dba1e43637fda316db84 (patch)
treee5974e60a97d4a101b88395c88bea77c31820cc8 /crawl-ref/source/l_debug.cc
parent5d327d2668e9baa4c6da85be15645172a485df0e (diff)
downloadcrawl-ref-a26f7ebd1a8523ec6bb7dba1e43637fda316db84.tar.gz
crawl-ref-a26f7ebd1a8523ec6bb7dba1e43637fda316db84.zip
Add los_changed() to signal a global LOS changed.
This is instead of calling invalidate_los() directly, and includes a call to invalidate_agrid(), so we don't need to call both invalidate_los() and invalidate_agrid() when loading a new level, etc.
Diffstat (limited to 'crawl-ref/source/l_debug.cc')
-rw-r--r--crawl-ref/source/l_debug.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/l_debug.cc b/crawl-ref/source/l_debug.cc
index 61d7fd2745..f9f58eb287 100644
--- a/crawl-ref/source/l_debug.cc
+++ b/crawl-ref/source/l_debug.cc
@@ -17,7 +17,7 @@
#include "initfile.h"
#include "godwrath.h"
#include "libutil.h"
-#include "losglobal.h"
+#include "los.h"
#include "message.h"
#include "mon-act.h"
#include "mon-iter.h"
@@ -67,7 +67,7 @@ LUAFN(debug_generate_level)
{
no_messages mx;
env.map_knowledge.init(map_cell());
- invalidate_los();
+ los_changed();
#ifdef USE_TILE
tile_init_default_flavour();
tile_clear_flavour();