1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-21 05:29:11 +00:00

(svn r19128) -Codechange: CommandCost cost methods return void instead of a copy of *this.

This commit is contained in:
alberth
2010-02-14 15:30:08 +00:00
parent 151babee57
commit e8d40d6a19
5 changed files with 18 additions and 19 deletions

View File

@@ -888,7 +888,8 @@ CommandCost CmdBuildRoadDepot(TileIndex tile, DoCommandFlag flags, uint32 p1, ui
MakeRoadDepot(tile, _current_company, dep->index, dir, rt);
MarkTileDirtyByTile(tile);
}
return cost.AddCost(_price[PR_BUILD_DEPOT_ROAD]);
cost.AddCost(_price[PR_BUILD_DEPOT_ROAD]);
return cost;
}
static CommandCost RemoveRoadDepot(TileIndex tile, DoCommandFlag flags)