mirror of https://github.com/OpenTTD/OpenTTD
Codechange: Replace various uses of SB with a constant with SetBit
parent
3c21cbae91
commit
376cad0c25
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue