summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-01-18 02:16:39 +0000
committersmatz <smatz@openttd.org>2008-01-18 02:16:39 +0000
commit0b3db1a92d5d38a383db2fe7cbd5028febdb3789 (patch)
treeadebf044feb2fcd31c212ec85715180ec3c6bd06
parent307b0e8e7aa05ae776bd13331409ac1a2aaf4ecd (diff)
downloadopenttd-0b3db1a92d5d38a383db2fe7cbd5028febdb3789.tar.xz
(svn r11913) -Fix (r11871): update signals after company bankrupt and disaster too
-rw-r--r--src/disaster_cmd.cpp3
-rw-r--r--src/economy.cpp6
2 files changed, 6 insertions, 3 deletions
diff --git a/src/disaster_cmd.cpp b/src/disaster_cmd.cpp
index d346d214d..bc4b11050 100644
--- a/src/disaster_cmd.cpp
+++ b/src/disaster_cmd.cpp
@@ -72,6 +72,9 @@ static void DisasterClearSquare(TileIndex tile)
_current_player = OWNER_WATER;
DoCommand(tile, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR);
_current_player = p;
+
+ /* update signals in buffer */
+ UpdateSignalsInBuffer();
}
break;
diff --git a/src/economy.cpp b/src/economy.cpp
index 1156befb7..0891d27a1 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -449,10 +449,10 @@ void ChangeOwnershipOfPlayerItems(PlayerID old_player, PlayerID new_player)
UpdateLevelCrossing(tile);
}
} while (++tile != MapSize());
-
- /* update signals in buffer */
- UpdateSignalsInBuffer();
}
+
+ /* update signals in buffer */
+ UpdateSignalsInBuffer();
}
/* Change color of existing windows */