mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-07 06:39:08 +00:00
(svn r2485) Missed two uint -> TileIndex, thanks _Luca_
This commit is contained in:
parent
c12319535b
commit
cea090af09
@ -301,11 +301,10 @@ int32 CmdTerraformLand(int x, int y, uint32 flags, uint32 p1, uint32 p2)
|
|||||||
{
|
{
|
||||||
int count;
|
int count;
|
||||||
TerraformerHeightMod *mod;
|
TerraformerHeightMod *mod;
|
||||||
uint til;
|
|
||||||
|
|
||||||
mod = ts.modheight;
|
mod = ts.modheight;
|
||||||
for (count = ts.modheight_count; count != 0; count--, mod++) {
|
for (count = ts.modheight_count; count != 0; count--, mod++) {
|
||||||
til = mod->tile;
|
TileIndex til = mod->tile;
|
||||||
|
|
||||||
SetTileHeight(til, mod->height);
|
SetTileHeight(til, mod->height);
|
||||||
TerraformAddDirtyTileAround(&ts, til);
|
TerraformAddDirtyTileAround(&ts, til);
|
||||||
|
@ -660,7 +660,7 @@ int32 CmdBuildRoadDepot(int x, int y, uint32 flags, uint32 p1, uint32 p2)
|
|||||||
return cost + _price.build_road_depot;
|
return cost + _price.build_road_depot;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int32 RemoveRoadDepot(uint tile, uint32 flags)
|
static int32 RemoveRoadDepot(TileIndex tile, uint32 flags)
|
||||||
{
|
{
|
||||||
if (!CheckTileOwnership(tile) && _current_player != OWNER_WATER)
|
if (!CheckTileOwnership(tile) && _current_player != OWNER_WATER)
|
||||||
return CMD_ERROR;
|
return CMD_ERROR;
|
||||||
|
Loading…
Reference in New Issue
Block a user