diff options
author | Adam Borowski <kilobyte@angband.pl> | 2010-10-04 10:39:23 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2010-10-04 10:39:23 +0200 |
commit | 319516fa3f159da7c04656950a1e271a8955d569 (patch) | |
tree | 9c2ed08c61b5552fc2477337abfe077ba33f02e8 /crawl-ref/source/mgen_data.h | |
parent | d65e37d0cf9d2446496e7f83d1dc8c8858651ef9 (diff) | |
download | crawl-ref-319516fa3f159da7c04656950a1e271a8955d569.tar.gz crawl-ref-319516fa3f159da7c04656950a1e271a8955d569.zip |
Explicitely specify the type for genflags.
Bitfields need to have their width documented, even if all architectures
we support define "unsigned" as same as uint32_t.
Diffstat (limited to 'crawl-ref/source/mgen_data.h')
-rw-r--r-- | crawl-ref/source/mgen_data.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/mgen_data.h b/crawl-ref/source/mgen_data.h index bc62dfbc5c..144f0bc46d 100644 --- a/crawl-ref/source/mgen_data.h +++ b/crawl-ref/source/mgen_data.h @@ -58,7 +58,7 @@ struct mgen_data unsigned short foe; // Generation flags from mgen_flag_type. - unsigned flags; + uint32_t flags; // What god the monster worships, if any. Used for monsters that // are god gifts, to indicate which god sent them, and by priest @@ -122,7 +122,7 @@ struct mgen_data int st = 0, const coord_def &p = coord_def(-1, -1), unsigned short mfoe = MHITNOT, - unsigned genflags = 0, + uint32_t genflags = 0, god_type which_god = GOD_NO_GOD, monster_type base = MONS_NO_MONSTER, int monnumber = 0, @@ -170,7 +170,7 @@ struct mgen_data int abj = 0, int st = 0, const coord_def &p = coord_def(-1, -1), - unsigned genflags = 0, + uint32_t genflags = 0, god_type ngod = GOD_NO_GOD, monster_type base = MONS_NO_MONSTER) |