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/saveload.cpp | |
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/saveload.cpp')
-rw-r--r-- | src/saveload.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/saveload.cpp b/src/saveload.cpp index f3e07ee0a..5a17a822b 100644 --- a/src/saveload.cpp +++ b/src/saveload.cpp @@ -218,13 +218,13 @@ static inline void SlWriteUint64(uint64 x) static uint SlReadSimpleGamma() { uint i = SlReadByte(); - if (HASBIT(i, 7)) { + if (HasBit(i, 7)) { i &= ~0x80; - if (HASBIT(i, 6)) { + if (HasBit(i, 6)) { i &= ~0x40; - if (HASBIT(i, 5)) { + if (HasBit(i, 5)) { i &= ~0x20; - if (HASBIT(i, 4)) + if (HasBit(i, 4)) SlError(STR_GAME_SAVELOAD_ERROR_BROKEN_SAVEGAME, "Unsupported gamma"); i = (i << 8) | SlReadByte(); } |