forked from mirror/OpenTTD
(svn r16268) -Fix (r9876): When callback 2E returns an amount of 0, do not transport 1 unit to the station.
This commit is contained in:
@@ -455,6 +455,8 @@ static void TileLoop_Town(TileIndex tile)
|
||||
if (cargo == CT_INVALID) continue;
|
||||
|
||||
uint amt = GB(callback, 0, 8);
|
||||
if (amt == 0) continue;
|
||||
|
||||
uint moved = MoveGoodsToStation(tile, 1, 1, cargo, amt);
|
||||
|
||||
const CargoSpec *cs = GetCargo(cargo);
|
||||
|
Reference in New Issue
Block a user