mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 02:19:41 +00:00
(svn r9880) -Add: [NewGRF] Add action 7/9 condition 0B/0C (cargo type availability)
This commit is contained in:
parent
1434c7746d
commit
c9d72a900b
@ -3199,6 +3199,10 @@ static void SkipIf(byte *buf, int len)
|
|||||||
break;
|
break;
|
||||||
case 5: result = (param_val & mask) > cond_val;
|
case 5: result = (param_val & mask) > cond_val;
|
||||||
break;
|
break;
|
||||||
|
case 11: result = GetCargoIDByLabel(BSWAP32(cond_val)) == CT_INVALID;
|
||||||
|
break;
|
||||||
|
case 12: result = GetCargoIDByLabel(BSWAP32(cond_val)) != CT_INVALID;
|
||||||
|
break;
|
||||||
|
|
||||||
default: grfmsg(1, "SkipIf: Unsupported test %d. Ignoring", condtype); return;
|
default: grfmsg(1, "SkipIf: Unsupported test %d. Ignoring", condtype); return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user