summaryrefslogtreecommitdiff
path: root/src/saveload.cpp
diff options
context:
space:
mode:
authorskidd13 <skidd13@openttd.org>2007-11-19 21:02:30 +0000
committerskidd13 <skidd13@openttd.org>2007-11-19 21:02:30 +0000
commit71c4325c50ae594a5adf01cac7c9e527b239cdcb (patch)
tree21212e0b25777aac62f30d88b981e2bd624c4616 /src/saveload.cpp
parent58bb5c752568f8f9a1cb4d9533268d0ecad34e12 (diff)
downloadopenttd-71c4325c50ae594a5adf01cac7c9e527b239cdcb.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.cpp8
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();
}