summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/env.h
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2010-06-20 02:17:46 +0200
committerAdam Borowski <kilobyte@angband.pl>2010-06-20 20:27:50 +0200
commit0fe9a9e87802e7f3a29558301f20ae3d83155118 (patch)
tree67773404d51be8c11493adbb760e5b2d5f28a42c /crawl-ref/source/env.h
parent0fa67c59d6d763d68b570f015f93f746529b57ff (diff)
downloadcrawl-ref-0fe9a9e87802e7f3a29558301f20ae3d83155118.tar.gz
crawl-ref-0fe9a9e87802e7f3a29558301f20ae3d83155118.zip
Make a few flag types use non-ambiguous storage.
Diffstat (limited to 'crawl-ref/source/env.h')
-rw-r--r--crawl-ref/source/env.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/env.h b/crawl-ref/source/env.h
index ee97e9a97e..e24dd0726c 100644
--- a/crawl-ref/source/env.h
+++ b/crawl-ref/source/env.h
@@ -8,7 +8,7 @@
#include <set>
typedef FixedArray<short, GXM, GYM> grid_heightmap;
-typedef unsigned long terrain_property_t;
+typedef uint32_t terrain_property_t;
typedef std::set<std::string> string_set;
@@ -79,8 +79,8 @@ struct crawl_environment
int spawn_random_rate;
// Time when level was saved (hence we write out you.elapsed_time
- // (but load it back to env.elapsed_tiem); used during level load
- long elapsed_time;
+ // (but load it back to env.elapsed_time); used during level load
+ int elapsed_time;
// Which point did the player leave the level from?
coord_def old_player_pos;
@@ -90,11 +90,11 @@ struct crawl_environment
// Flags for things like preventing teleport control; see
// level_flag_type in enum.h
- unsigned long level_flags;
+ uint32_t level_flags;
coord_def sanctuary_pos;
int sanctuary_time;
- long forest_awoken_until;
+ int forest_awoken_until;
};
extern struct crawl_environment env;