mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-29 01:19:11 +00:00
Codechange: Replace various uses of SB with a constant with SetBit
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user