summaryrefslogtreecommitdiff
path: root/rail_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-05-21 13:51:36 +0000
committertron <tron@openttd.org>2006-05-21 13:51:36 +0000
commit3282efda88bd42c3536dc73c048f2a484e017ae1 (patch)
treea0f8f35f08e024362e9469a68b9d671758791404 /rail_cmd.c
parentde189080579e25c1da6120f53f3e2538ddf5480f (diff)
downloadopenttd-3282efda88bd42c3536dc73c048f2a484e017ae1.tar.xz
(svn r4940) Remove the dubious feature of remembering the last built depot. It serves no real purpose except causing confusion
Diffstat (limited to 'rail_cmd.c')
-rw-r--r--rail_cmd.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index ec819ab36..c26fa7d4c 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -590,8 +590,6 @@ int32 CmdBuildTrainDepot(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (d == NULL) return CMD_ERROR;
if (flags & DC_EXEC) {
- if (IsLocalPlayer()) _last_built_train_depot_tile = tile;
-
MakeRailDepot(tile, _current_player, p2, p1);
MarkTileDirtyByTile(tile);
@@ -2032,10 +2030,6 @@ static uint32 VehicleEnter_Track(Vehicle *v, TileIndex tile, int x, int y)
return 0;
}
-void InitializeRail(void)
-{
- _last_built_train_depot_tile = 0;
-}
const TileTypeProcs _tile_type_rail_procs = {
DrawTile_Track, /* draw_tile_proc */