From c9d72a900b1b532ca2978b21a4809a97c08dcc20 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(+) (limited to 'src/newgrf.cpp') 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-54-g00ecf