summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2005-05-11 15:31:10 +0000
committerDarkvater <Darkvater@openttd.org>2005-05-11 15:31:10 +0000
commit5285d0983262907f1cd96ae7124dada8176fdb1b (patch)
tree904728f8050f78df54c64f054c3e1c963b0596cf
parentc263dc8b49ccf0b2a8c6cca07ef8daecb780efca (diff)
downloadopenttd-5285d0983262907f1cd96ae7124dada8176fdb1b.tar.xz
(svn r2293) - Fix (regression): You couldn't modify commands anymore; fixed. (|| and && are kinda confusing with !=) :P
-rw-r--r--order_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/order_cmd.c b/order_cmd.c
index f49d9a05b..02e3f4267 100644
--- a/order_cmd.c
+++ b/order_cmd.c
@@ -522,7 +522,7 @@ int32 CmdModifyOrder(int x, int y, uint32 flags, uint32 p1, uint32 p2)
VehicleID veh = p1 & 0xFFFF;
if (!IsVehicleIndex(veh)) return CMD_ERROR;
- if (p2 != OFB_FULL_LOAD || p2 != OFB_UNLOAD || p2 != OFB_NON_STOP) return CMD_ERROR;
+ if (p2 != OFB_FULL_LOAD && p2 != OFB_UNLOAD && p2 != OFB_NON_STOP) return CMD_ERROR;
v = GetVehicle(veh);
if (v->type == 0 || !CheckOwnership(v->owner)) return CMD_ERROR;