diff options
author | Adam Borowski <kilobyte@angband.pl> | 2011-12-28 03:35:43 +0100 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2012-01-03 03:51:18 +0100 |
commit | dc0762144cb3095e5d461cebfa5ecc5d2590586c (patch) | |
tree | 446b2e483a3b3099235889abd1f8dff4ccbd0a41 /crawl-ref/source/mgen_data.h | |
parent | 1f6db1c263ad1fea32161c4258fa69a8a136a6a9 (diff) | |
download | crawl-ref-dc0762144cb3095e5d461cebfa5ecc5d2590586c.tar.gz crawl-ref-dc0762144cb3095e5d461cebfa5ecc5d2590586c.zip |
Eliminate an almost empty file.
Diffstat (limited to 'crawl-ref/source/mgen_data.h')
-rw-r--r-- | crawl-ref/source/mgen_data.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/mgen_data.h b/crawl-ref/source/mgen_data.h index f101c37589..dc783163c0 100644 --- a/crawl-ref/source/mgen_data.h +++ b/crawl-ref/source/mgen_data.h @@ -1,12 +1,13 @@ #ifndef MGEN_DATA_H #define MGEN_DATA_H +#include "coord.h" #include "mgen_enum.h" #include "player.h" // Hash key for passing a weapon to be given to // a dancing weapon. -extern const std::string TUKIMA_WEAPON; +#define TUKIMA_WEAPON "tukima-weapon" // A structure with all the data needed to whip up a new monster. struct mgen_data @@ -158,7 +159,7 @@ struct mgen_data // Is there a valid position set on this struct that we want to use // when placing the monster? - bool use_position() const; + bool use_position() const { return in_bounds(pos); }; bool summoned() const { return (abjuration_duration > 0); } |