mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-09 19:10:38 +00:00
(svn r2293) - Fix (regression): You couldn't modify commands anymore; fixed. (|| and && are kinda confusing with !=) :P
This commit is contained in:
parent
268968a8b4
commit
aa4f2d2db2
@ -522,7 +522,7 @@ int32 CmdModifyOrder(int x, int y, uint32 flags, uint32 p1, uint32 p2)
|
|||||||
VehicleID veh = p1 & 0xFFFF;
|
VehicleID veh = p1 & 0xFFFF;
|
||||||
|
|
||||||
if (!IsVehicleIndex(veh)) return CMD_ERROR;
|
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);
|
v = GetVehicle(veh);
|
||||||
if (v->type == 0 || !CheckOwnership(v->owner)) return CMD_ERROR;
|
if (v->type == 0 || !CheckOwnership(v->owner)) return CMD_ERROR;
|
||||||
|
Loading…
Reference in New Issue
Block a user