summaryrefslogtreecommitdiff
path: root/clear_cmd.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2005-01-04 17:11:03 +0000
committerdarkvater <darkvater@openttd.org>2005-01-04 17:11:03 +0000
commit6edb21231e264cd52dc98a2a765330cac4b7cdf4 (patch)
treed267ed7e6b75716dae1f804e1b9c49b3778e3f61 /clear_cmd.c
parent88b8a01da666930bdee9c53da43c3dcef6f06538 (diff)
downloadopenttd-6edb21231e264cd52dc98a2a765330cac4b7cdf4.tar.xz
(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.
Diffstat (limited to 'clear_cmd.c')
-rw-r--r--clear_cmd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/clear_cmd.c b/clear_cmd.c
index ac77c1632..319412592 100644
--- a/clear_cmd.c
+++ b/clear_cmd.c
@@ -330,6 +330,8 @@ int32 CmdLevelLand(int ex, int ey, uint32 flags, uint32 p1, uint32 p2)
uint tile;
int32 ret, cost, money;
+ SET_EXPENSES_TYPE(EXPENSES_CONSTRUCTION);
+
// remember level height
h = _map_type_and_height[p1]&0xF;