Changeset - r15036:b7a46ecb32b6
[Not reviewed]
master
0 1 0
smatz - 14 years ago 2010-04-17 20:21:33
smatz@openttd.org
(svn r19663) -Fix: in rare cases, update of signals could be missed
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/command.cpp
Show inline comments
 
@@ -670,6 +670,9 @@ CommandCost DoCommandPInternal(TileIndex
 
	/* If we're needing more money and we haven't done
 
	 * anything yet, ask for the money! */
 
	if (_additional_cash_required != 0 && res2.GetCost() == 0) {
 
		/* It could happen we removed rail, thus gained money, and deleted something else.
 
		 * So make sure the signal buffer is empty even in this case */
 
		UpdateSignalsInBuffer();
 
		SetDParam(0, _additional_cash_required);
 
		return_dcpi(CommandCost(STR_ERROR_NOT_ENOUGH_CASH_REQUIRES_CURRENCY), false);
 
	}
0 comments (0 inline, 0 general)