From 91d44ef577f64e407128f61efa4e93a7ee9e8076 Mon Sep 17 00:00:00 2001 From: celestar Date: Sat, 9 Apr 2005 06:20:03 +0000 Subject: (svn r2173) -Fix: [ 1179380 ] Rail now builds on reserved land. Cause by the problem that CMD_ERROR is just the highest bit of the return value, but CMD_CLEAR_LANDSCAPE returns a negative value for owned land. So the highest bit is set as well. Note to self: Finish Command Patch --- rail_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rail_cmd.c') diff --git a/rail_cmd.c b/rail_cmd.c index 8c48fa6b7..2a243b17f 100644 --- a/rail_cmd.c +++ b/rail_cmd.c @@ -374,7 +374,7 @@ int32 CmdBuildSingleRail(int x, int y, uint32 flags, cost += ret; ret = DoCommandByTile(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR); - if (ret & CMD_ERROR) return ret; + if (ret == CMD_ERROR) return ret; cost += ret; if (flags & DC_EXEC) { -- cgit v1.2.3-54-g00ecf