mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-19 10:22:39 +01:00
Codechange: Replace bitstuffed VehicleEnterTileStatus. (#14027)
VehicleEnterTileStatus was an bitset-style enum, but bitstuffed with a StationID. However the StationID part was only used by trains, and only in two locations. Instead, return just the enum bitset. The two places which require the StationID just call GetStationIndex() directly.
This commit is contained in:
@@ -1400,9 +1400,9 @@ static void ChangeTileOwner_Water(TileIndex tile, Owner old_owner, Owner new_own
|
||||
}
|
||||
}
|
||||
|
||||
static VehicleEnterTileStatus VehicleEnter_Water(Vehicle *, TileIndex, int, int)
|
||||
static VehicleEnterTileStates VehicleEnter_Water(Vehicle *, TileIndex, int, int)
|
||||
{
|
||||
return VETSB_CONTINUE;
|
||||
return {};
|
||||
}
|
||||
|
||||
static CommandCost TerraformTile_Water(TileIndex tile, DoCommandFlags flags, int, Slope)
|
||||
|
||||
Reference in New Issue
Block a user