From aa4f2d2db2e69a62914391d6e6f497302dc47391 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Wed, 11 May 2005 15:31:10 +0000 Subject: [PATCH] (svn r2293) - Fix (regression): You couldn't modify commands anymore; fixed. (|| and && are kinda confusing with !=) :P --- order_cmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/order_cmd.c b/order_cmd.c index f49d9a05bd..02e3f42670 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;