summaryrefslogtreecommitdiff
path: root/src/command.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-01-16 01:18:15 +0000
committersmatz <smatz@openttd.org>2008-01-16 01:18:15 +0000
commit61e40b1aa5f1b7137d0fc56d42c8221d9146e40a (patch)
treed2832ab2fdd3e69fe8370853e648a983e902b0b9 /src/command.cpp
parent70a9c544b81644a9b1a59fe54e6608d878f59fbb (diff)
downloadopenttd-61e40b1aa5f1b7137d0fc56d42c8221d9146e40a.tar.xz
(svn r11871) -Fix [FS#1074]: do not update signals after each tile when building/removing a large block of track/signals/station
Diffstat (limited to 'src/command.cpp')
-rw-r--r--src/command.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/command.cpp b/src/command.cpp
index cf25d13bf..40b3ff9b8 100644
--- a/src/command.cpp
+++ b/src/command.cpp
@@ -20,6 +20,7 @@
#include "debug.h"
#include "player_func.h"
#include "player_base.h"
+#include "signal_func.h"
#include "table/strings.h"
@@ -642,6 +643,9 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback,
SubtractMoneyFromPlayer(res2);
+ /* update signals if needed */
+ UpdateSignalsInBuffer();
+
if (IsLocalPlayer() && _game_mode != GM_EDITOR) {
if (res2.GetCost() != 0 && tile != 0) ShowCostOrIncomeAnimation(x, y, GetSlopeZ(x, y), res2.GetCost());
if (_additional_cash_required != 0) {