diff options
author | skidd13 <skidd13@openttd.org> | 2007-11-19 21:02:30 +0000 |
---|---|---|
committer | skidd13 <skidd13@openttd.org> | 2007-11-19 21:02:30 +0000 |
commit | c0a2c0c23e129cb81400c5204fc9d0eedd9afb85 (patch) | |
tree | 21212e0b25777aac62f30d88b981e2bd624c4616 /src/player_face.h | |
parent | 7a4d96f629a9bd447846f8569fad78cf8e5196c5 (diff) | |
download | openttd-c0a2c0c23e129cb81400c5204fc9d0eedd9afb85.tar.xz |
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
Diffstat (limited to 'src/player_face.h')
-rw-r--r-- | src/player_face.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/player_face.h b/src/player_face.h index f28a880f6..aceec8c4b 100644 --- a/src/player_face.h +++ b/src/player_face.h @@ -169,7 +169,7 @@ static inline void ScaleAllPlayerFaceBits(PlayerFace &pf) GenderEthnicity ge = (GenderEthnicity)GB(pf, _pf_info[PFV_GEN_ETHN].offset, _pf_info[PFV_GEN_ETHN].length); // gender & ethnicity of the face /* Is a male face with moustache. Need to reduce CPU load in the loop. */ - bool is_moust_male = !HASBIT(ge, GENDER_FEMALE) && GetPlayerFaceBits(pf, PFV_HAS_MOUSTACHE, ge) != 0; + bool is_moust_male = !HasBit(ge, GENDER_FEMALE) && GetPlayerFaceBits(pf, PFV_HAS_MOUSTACHE, ge) != 0; for (PlayerFaceVariable pfv = PFV_EYE_COLOUR; pfv < PFV_END; pfv++) { // scales all other variables @@ -202,7 +202,7 @@ static inline void RandomPlayerFaceBits(PlayerFace &pf, GenderEthnicity ge, bool if (adv) { SetPlayerFaceBits(pf, PFV_GEN_ETHN, ge, ge); } else { - SetPlayerFaceBits(pf, PFV_GENDER, ge, HASBIT(ge, GENDER_FEMALE)); + SetPlayerFaceBits(pf, PFV_GENDER, ge, HasBit(ge, GENDER_FEMALE)); } /* scales all player face bits to the correct scope */ |