(svn r11913) -Fix (r11871): update signals after company bankrupt and disaster too
author |
smatz <smatz@openttd.org> |
date |
Fri, 18 Jan 2008 02:16:39 +0000 |
parents |
7189ea1f59b2 |
children |
1a20ebc6285e |
files |
src/disaster_cmd.cpp src/economy.cpp |
diffstat |
2 files changed, 6 insertions(+), 3 deletions(-)
[+]
|
line diff
--- a/src/disaster_cmd.cpp
+++ b/src/disaster_cmd.cpp
@@ -72,6 +72,9 @@
_current_player = OWNER_WATER;
DoCommand(tile, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR);
_current_player = p;
+
+ /* update signals in buffer */
+ UpdateSignalsInBuffer();
}
break;
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -449,10 +449,10 @@
UpdateLevelCrossing(tile);
}
} while (++tile != MapSize());
+ }
- /* update signals in buffer */
- UpdateSignalsInBuffer();
- }
+ /* update signals in buffer */
+ UpdateSignalsInBuffer();
}
/* Change color of existing windows */