summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/los_def.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-21 13:22:01 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-21 13:54:24 +0100
commitc262f0a60de06dee8cc7210bf207575a73232445 (patch)
tree9821db2b81af8ae5410571709d3bc1279ac81ace /crawl-ref/source/los_def.h
parentb9101bc3717daffdf0e898fa701cccd4b64765ce (diff)
downloadcrawl-ref-c262f0a60de06dee8cc7210bf207575a73232445.tar.gz
crawl-ref-c262f0a60de06dee8cc7210bf207575a73232445.zip
Hack player::los for arena.
This should fix recent arena display problems. Also fix los_def::in_bounds to translate coordinates.
Diffstat (limited to 'crawl-ref/source/los_def.h')
-rw-r--r--crawl-ref/source/los_def.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/los_def.h b/crawl-ref/source/los_def.h
index 82a82f6447..d9841cea96 100644
--- a/crawl-ref/source/los_def.h
+++ b/crawl-ref/source/los_def.h
@@ -11,6 +11,7 @@ class los_def
coord_def center;
opacity_func const * opc;
circle_def bds;
+ bool arena;
public:
los_def();
@@ -21,6 +22,7 @@ public:
los_def& operator=(const los_def& l);
void init(const coord_def& center, const opacity_func& o,
const circle_def& b);
+ void init_arena(const coord_def& center);
void set_center(const coord_def& center);
void set_opacity(const opacity_func& o);
void set_bounds(const circle_def& b);