diff options
Diffstat (limited to 'src/command.cpp')
-rw-r--r-- | src/command.cpp | 4 |
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) { |