From 52c87a0330eb4ef533030e8fd18fb349550974cc Mon Sep 17 00:00:00 2001 From: darkvater Date: Mon, 3 Jan 2005 21:26:09 +0000 Subject: (svn r1353) -Fix: [1092707] placing rocks in scenario editor. You can place rocks on trees and vice versa --- tree_cmd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tree_cmd.c') diff --git a/tree_cmd.c b/tree_cmd.c index e5067e612..3aa315056 100644 --- a/tree_cmd.c +++ b/tree_cmd.c @@ -181,14 +181,14 @@ int32 CmdPlantTree(int ex, int ey, uint32 flags, uint32 p1, uint32 p2) // 2x as expensive to add more trees to an existing tile cost += _price.build_trees * 2; } else { - // don't allow building on rocks - if (ti.type != MP_CLEAR || _map_owner[ti.tile] != OWNER_NONE || (ti.map5 & 0x1C) == 8) { + if (ti.type != MP_CLEAR || _map_owner[ti.tile] != OWNER_NONE) { _error_message = STR_2804_SITE_UNSUITABLE; continue; } // it's expensive to clear farmland if ((ti.map5 & 0x1F) == 0xF) cost += _price.clear_3; + else if ((ti.map5 & 0x1C) == 8) cost += _price.clear_2; if (flags & DC_EXEC) { int m2; -- cgit v1.2.3-54-g00ecf