summaryrefslogtreecommitdiff
path: root/road_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-06-27 06:57:24 +0000
committertron <tron@openttd.org>2005-06-27 06:57:24 +0000
commit5cbd8b598ced72ad2756c40d3c4fc15a9f247fc9 (patch)
tree25912342dc104ba143e6030a35c59234dac9aef9 /road_cmd.c
parent48ff5e39dc523dcfd448006ab3232599e2792178 (diff)
downloadopenttd-5cbd8b598ced72ad2756c40d3c4fc15a9f247fc9.tar.xz
(svn r2492) Remove some pointless casts and fix some nearby indentation
Diffstat (limited to 'road_cmd.c')
-rw-r--r--road_cmd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/road_cmd.c b/road_cmd.c
index f5c1beac4..2b954ed23 100644
--- a/road_cmd.c
+++ b/road_cmd.c
@@ -644,8 +644,7 @@ int32 CmdBuildRoadDepot(int x, int y, uint32 flags, uint32 p1, uint32 p2)
return CMD_ERROR;
if (flags & DC_EXEC) {
- if (_current_player == _local_player)
- _last_built_road_depot_tile = (TileIndex)tile;
+ if (_current_player == _local_player) _last_built_road_depot_tile = tile;
dep->xy = tile;
dep->town_index = ClosestTownFromTile(tile, (uint)-1)->index;