1
0
Fork 0

Codechange: Replace various uses of SB with a constant with SetBit

pull/12934/head
Jonathan G Rennison 2024-09-08 12:17:41 +01:00
parent 3c21cbae91
commit 376cad0c25
2 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ IndustryType GetIndustryType(Tile tile);
inline void SetIndustryCompleted(Tile tile)
{
assert(IsTileType(tile, MP_INDUSTRY));
SB(tile.m1(), 7, 1, 1);
SetBit(tile.m1(), 7);
}
/**

View File

@ -414,7 +414,7 @@ public:
/* Don't construct the packet with station here, because that'll fail with old savegames */
CargoPacket *cp = new CargoPacket(GB(_waiting_acceptance, 0, 12), _cargo_periods, source, _cargo_source_xy, _cargo_feeder_share);
ge.cargo.Append(cp, INVALID_STATION);
SB(ge.status, GoodsEntry::GES_RATING, 1, 1);
SetBit(ge.status, GoodsEntry::GES_RATING);
}
}
}