From 6edb21231e264cd52dc98a2a765330cac4b7cdf4 Mon Sep 17 00:00:00 2001 From: darkvater Date: Tue, 4 Jan 2005 17:11:03 +0000 Subject: (svn r1375) -Fix: [1050990] Buying trains sometimes accounted for incorrectly. Was the result of the cost getting reset in a recursive call of docommand. That is fixed. In addition all cost-commands are typed explicitely. Please do not forget to do so or your costs will be credited to construction if you are unlucky. --- variables.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'variables.h') diff --git a/variables.h b/variables.h index 3d6b7a5fd..b12ed7ce6 100644 --- a/variables.h +++ b/variables.h @@ -399,7 +399,7 @@ static inline uint32 GetDParam(uint n) #define INJECT_DPARAM(n) InjectDparam(n); -#define SET_EXPENSES_TYPE(x) if (x) _yearly_expenses_type=x; +#define SET_EXPENSES_TYPE(x) _yearly_expenses_type = x; /* landscape.c */ extern const byte _tileh_to_sprite[32]; -- cgit v1.2.3-54-g00ecf