diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-10-08 13:09:00 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-10-08 13:09:00 +0200 |
commit | eb5bc06c58ea50faaaf5629079e316f9dde3f5b3 (patch) | |
tree | 007c420c575f24e22d194f4dd3af18f92bcd3e33 /crawl-ref/source/map_knowledge.h | |
parent | c71e4c71abacc07063af2d2f72da2d5eb5f21093 (diff) | |
download | crawl-ref-eb5bc06c58ea50faaaf5629079e316f9dde3f5b3.tar.gz crawl-ref-eb5bc06c58ea50faaaf5629079e316f9dde3f5b3.zip |
Don't en-/de-capsulate coord_def over and over in set_terrain_*()
All callers, and all but one internal use, want it as a struct.
Diffstat (limited to 'crawl-ref/source/map_knowledge.h')
-rw-r--r-- | crawl-ref/source/map_knowledge.h | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/crawl-ref/source/map_knowledge.h b/crawl-ref/source/map_knowledge.h index 47c5198a34..c044538c69 100644 --- a/crawl-ref/source/map_knowledge.h +++ b/crawl-ref/source/map_knowledge.h @@ -295,25 +295,11 @@ private: trap_type _trap:8; }; -void set_terrain_mapped(int x, int y); -static inline void set_terrain_mapped(const coord_def& c) -{ - set_terrain_mapped(c.x,c.y); -} - -void set_terrain_seen(int x, int y); -static inline void set_terrain_seen(const coord_def& c) -{ - set_terrain_seen(c.x, c.y); -} - -void set_terrain_changed(int x, int y); -static inline void set_terrain_changed(const coord_def &c) -{ - set_terrain_changed(c.x, c.y); -} +void set_terrain_mapped(const coord_def c); +void set_terrain_seen(const coord_def c); +void set_terrain_changed(const coord_def c); -void set_terrain_visible(const coord_def &c); +void set_terrain_visible(const coord_def c); void clear_terrain_visibility(); int count_detected_mons(void); |