diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-19 13:06:56 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-22 22:37:06 +0200 |
commit | 7afa089db8b01b1810c5903309f7302545638550 (patch) | |
tree | 1a917e2668faace0b9f41a930ac3eba7a90941fb /crawl-ref/source/travel.h | |
parent | 1ad65d74a11df671d45d5dc8aa247e6e439ae1c8 (diff) | |
download | crawl-ref-7afa089db8b01b1810c5903309f7302545638550.tar.gz crawl-ref-7afa089db8b01b1810c5903309f7302545638550.zip |
Convert exclusions to los_def.
Diffstat (limited to 'crawl-ref/source/travel.h')
-rw-r--r-- | crawl-ref/source/travel.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/crawl-ref/source/travel.h b/crawl-ref/source/travel.h index a6fb14fc94..42232088f2 100644 --- a/crawl-ref/source/travel.h +++ b/crawl-ref/source/travel.h @@ -7,6 +7,9 @@ #define TRAVEL_H #include "externs.h" + +#include "los.h" + #include <stdio.h> #include <string> #include <vector> @@ -353,18 +356,18 @@ struct travel_exclude int radius; // exclusion radius bool autoexclude; // Was set automatically. int mon; // Monster around which exclusion is centered. - env_show_grid show; // los from exclusion centre - bool uptodate; // Is show up to date? + los_def los; // los from exclusion centre + bool uptodate; // Is los up to date? int radius_sq() const; - void set_exclude_show(); + void set_los(); bool affects(const coord_def& p) const; travel_exclude(const coord_def &p, int r = LOS_RADIUS, bool autoexcl = false, int mons = NON_MONSTER) : pos(p), radius(r), autoexclude(autoexcl), mon(mons) { - set_exclude_show(); + set_los(); } }; |