From 1e696cc27b13cf361c0a1ffdd0bb4c6a46360c2d Mon Sep 17 00:00:00 2001 From: glx Date: Sat, 19 May 2007 19:13:12 +0000 Subject: (svn r9880) -Add: [NewGRF] Add action 7/9 condition 0B/0C (cargo type availability) --- src/newgrf.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 10326ef7a..ee8e35526 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -3199,6 +3199,10 @@ static void SkipIf(byte *buf, int len) break; case 5: result = (param_val & mask) > cond_val; 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; } -- cgit v1.2.3-70-g09d2