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. --- landscape.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'landscape.c') diff --git a/landscape.c b/landscape.c index 232f0e188..adc9f7855 100644 --- a/landscape.c +++ b/landscape.c @@ -351,6 +351,8 @@ int32 CmdClearArea(int ex, int ey, uint32 flags, uint32 p1, uint32 p2) int x,y; bool success = false; + SET_EXPENSES_TYPE(EXPENSES_CONSTRUCTION); + // make sure sx,sy are smaller than ex,ey sx = GET_TILE_X(p1)*16; sy = GET_TILE_Y(p1)*16; -- cgit v1.2.3-54-g00ecf