(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style

This commit is contained in:
skidd13
2007-11-19 21:02:30 +00:00
parent 58bb5c7525
commit 71c4325c50
88 changed files with 584 additions and 584 deletions

View File

@@ -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();
}