From 25823b36905a84d92f9299ba7f9f0c713141c8fb Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Mon, 18 Feb 2013 19:20:35 -0800 Subject: Strictify map cells Also fix a small but major bug in map_randfreecell. --- src/map/map.t.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/map/map.t.hpp') 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 -- cgit v1.2.3-70-g09d2