Mercurial > hg > openttd
diff src/command.cpp @ 8306:ea2c123b3655 draft
(svn r11871) -Fix [FS#1074]: do not update signals after each tile when building/removing a large block of track/signals/station
author | smatz <smatz@openttd.org> |
---|---|
date | Wed, 16 Jan 2008 01:18:15 +0000 |
parents | 27c91897317f |
children | 1a90922472a6 |
line wrap: on
line diff
--- 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 @@ 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) {