diff options
author | Ben Longbons <b.r.longbons@gmail.com> | 2013-02-18 19:20:35 -0800 |
---|---|---|
committer | Ben Longbons <b.r.longbons@gmail.com> | 2013-02-20 18:27:30 -0800 |
commit | 25823b36905a84d92f9299ba7f9f0c713141c8fb (patch) | |
tree | a335120de1c4618c9b41391e70bc621a4218010c /src/map/map.t.hpp | |
parent | a5d231b6a60a4ab868918850be24640e88843825 (diff) | |
download | tmwa-25823b36905a84d92f9299ba7f9f0c713141c8fb.tar.gz tmwa-25823b36905a84d92f9299ba7f9f0c713141c8fb.tar.bz2 tmwa-25823b36905a84d92f9299ba7f9f0c713141c8fb.tar.xz tmwa-25823b36905a84d92f9299ba7f9f0c713141c8fb.zip |
Strictify map cells
Also fix a small but major bug in map_randfreecell.
Diffstat (limited to 'src/map/map.t.hpp')
-rw-r--r-- | src/map/map.t.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/map/map.t.hpp b/src/map/map.t.hpp index 09444fd..c57ea06 100644 --- a/src/map/map.t.hpp +++ b/src/map/map.t.hpp @@ -542,4 +542,19 @@ ENUM_BITWISE_OPERATORS(MobMode) } using e::MobMode; +namespace e +{ +enum class MapCell : uint8_t +{ + // the usual thing + UNWALKABLE = 0x01, + // not in tmwa data + _range = 0x04, + // set in code, not imported + NPC_NEAR = 0x80, +}; +ENUM_BITWISE_OPERATORS(MapCell) +} +using e::MapCell; + #endif // MAP_T_HPP |