mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-10-31 15:20:10 +00:00
Fix conditional order subtype not being reset when changing to time/date
This commit is contained in:
parent
81c66f79aa
commit
9ad2f44ab7
@ -2224,7 +2224,10 @@ CommandCost CmdModifyOrder(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3
|
||||
break;
|
||||
|
||||
case OCV_TIME_DATE:
|
||||
if (!old_var_was_time) order->GetXDataRef() = 0;
|
||||
if (!old_var_was_time) {
|
||||
order->SetConditionValue(0);
|
||||
order->GetXDataRef() = 0;
|
||||
}
|
||||
if (occ == OCC_IS_TRUE || occ == OCC_IS_FALSE) order->SetConditionComparator(OCC_EQUALS);
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user