diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-06-21 13:37:02 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-06-21 13:37:02 +0200 |
commit | 073ad3584fbf781ce10bef61ad4ff38850282f47 (patch) | |
tree | eb2db284b91ad7987655401406a2d57843337875 /src/player_race.hpp | |
parent | b9e4f471c2e23283945ba9324912c7e29dd8fbd8 (diff) |
Rework TR{1,2,3,4,5}_* flags to flag_set<>
Diffstat (limited to 'src/player_race.hpp')
-rw-r--r-- | src/player_race.hpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/player_race.hpp b/src/player_race.hpp index f1933557..e01034ba 100644 --- a/src/player_race.hpp +++ b/src/player_race.hpp @@ -2,6 +2,7 @@ #include "h-basic.h" #include "body.hpp" +#include "object_flag_set.hpp" #include "player_defs.hpp" #include "player_race_ability_type.hpp" #include "skills_defs.hpp" @@ -45,12 +46,7 @@ struct player_race u32b flags1 = 0; u32b flags2 = 0; - u32b oflags1[PY_MAX_LEVEL + 1] { }; - u32b oflags2[PY_MAX_LEVEL + 1] { }; - u32b oflags3[PY_MAX_LEVEL + 1] { }; - u32b oflags4[PY_MAX_LEVEL + 1] { }; - u32b oflags5[PY_MAX_LEVEL + 1] { }; - u32b oesp[PY_MAX_LEVEL + 1] { }; + std::array<object_flag_set, PY_MAX_LEVEL + 1> oflags; s16b opval[PY_MAX_LEVEL + 1] { }; char skill_basem[MAX_SKILLS] { }; |