summaryrefslogtreecommitdiff
path: root/src/player_race_mod.hpp
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2019-02-15 19:20:25 +0100
committerBardur Arantsson <bardur@scientician.net>2019-02-15 19:20:25 +0100
commit29a14fd37f222a0fb47effbabe4b3c3f52bad75a (patch)
tree451791bdbe56bd8d8334bfd48e73f0494c1cbc4f /src/player_race_mod.hpp
parent5286cd001b32a383e4c0f37ee76eb06f1672295c (diff)
Use std::array<> and bool
Diffstat (limited to 'src/player_race_mod.hpp')
-rw-r--r--src/player_race_mod.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/player_race_mod.hpp b/src/player_race_mod.hpp
index 8eb984b7..fda410f0 100644
--- a/src/player_race_mod.hpp
+++ b/src/player_race_mod.hpp
@@ -21,7 +21,7 @@ struct player_race_mod
std::string title;
std::string description;
- bool_ place = FALSE; /* TRUE = race race modifier, FALSE = Race modifier race */
+ bool place = FALSE; /* TRUE = race race modifier, FALSE = Race modifier race */
char luck = '\0'; /* Luck */
s16b mana = 0; /* Mana % */
@@ -30,12 +30,12 @@ struct player_race_mod
char infra = '\0'; /* (+) Infra-vision range */
- u32b choice[2] { }; /* Legal race choices */
+ std::array<u32b, 2> choice { }; /* Legal race choices */
- u32b pclass[2] { }; /* Classes allowed */
- u32b mclass[2] { }; /* Classes restricted */
+ std::array<u32b, 2> pclass { }; /* Classes allowed */
+ std::array<u32b, 2> mclass { }; /* Classes restricted */
- char body_parts[BODY_MAX] { }; /* To help to decide what to use when body changing */
+ std::array<char, BODY_MAX> body_parts { }; /* To help to decide what to use when body changing */
player_race_flag_set flags;