From fdc4d1922d9087679e19d54f243e46c1001f293b Mon Sep 17 00:00:00 2001 From: smatz Date: Tue, 24 Jun 2008 23:38:10 +0000 Subject: (svn r13626) -Fix (r11871): signals were not updated when player removed signals from nonexistent track sharing bits with existing track So disallow removing signals from nonexistent track --- src/rail_cmd.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index af1fa1cc5..f750a3027 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -1113,6 +1113,7 @@ CommandCost CmdRemoveSingleSignal(TileIndex tile, uint32 flags, uint32 p1, uint3 if (!ValParamTrackOrientation(track) || !IsTileType(tile, MP_RAILWAY) || + !HasTrack(tile, track) || !EnsureNoTrainOnTrack(tile, track) || !HasSignalOnTrack(tile, track)) { return CMD_ERROR; -- cgit v1.2.3-70-g09d2