mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-18 20:19:11 +00:00
(svn r20446) -Codechange: unify the location of the water class
This commit is contained in:
@@ -53,7 +53,7 @@ void BuildObject(ObjectType type, TileIndex tile, CompanyID owner, uint index)
|
||||
TileArea ta(tile, GB(spec->size, 0, 4), GB(spec->size, 4, 4));
|
||||
TILE_AREA_LOOP(t, ta) {
|
||||
TileIndex offset = t - tile;
|
||||
MakeObject(t, type, owner, TileY(offset) << 4 | TileX(offset), index);
|
||||
MakeObject(t, type, owner, TileY(offset) << 4 | TileX(offset), index, WATER_CLASS_INVALID);
|
||||
MarkTileDirtyByTile(t);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user