summaryrefslogtreecommitdiff
path: root/rail_cmd.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-08-26 14:44:55 +0000
committertruelight <truelight@openttd.org>2006-08-26 14:44:55 +0000
commitf73a2829f364b07d6f944b8b49e156b9774db39b (patch)
tree8b932464c532068bc8cf1bd6798a38de736ed602 /rail_cmd.c
parent7a58659fefe7e007b4cd3d13bed21831e6c27171 (diff)
downloadopenttd-f73a2829f364b07d6f944b8b49e156b9774db39b.tar.xz
(svn r6141) -Codechange: introduced DepotID and used it as much as possible
-Codechange: DeleteDepot removes a depot from the pool -Codechange: DestroyDepot is called by DeleteDepot to remove all things where a depot depends on. Last 2 changes to prepare for new pool system. Not pretty now, will be soon. -Codechange: Removed DoDeleteDepot as it was stupid
Diffstat (limited to 'rail_cmd.c')
-rw-r--r--rail_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/rail_cmd.c b/rail_cmd.c
index 4e623703f..e5de12b62 100644
--- a/rail_cmd.c
+++ b/rail_cmd.c
@@ -975,7 +975,7 @@ static int32 RemoveTrainDepot(TileIndex tile, uint32 flags)
if (flags & DC_EXEC) {
DiagDirection dir = GetRailDepotDirection(tile);
- DoDeleteDepot(tile);
+ DeleteDepot(GetDepotByTile(tile));
UpdateSignalsOnSegment(tile, dir);
YapfNotifyTrackLayoutChange(tile, TrackdirToTrack(DiagdirToDiagTrackdir(dir)));
}