summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-05-19 19:13:12 +0000
committerglx <glx@openttd.org>2007-05-19 19:13:12 +0000
commitc9d72a900b1b532ca2978b21a4809a97c08dcc20 (patch)
tree417a370f61a2b1ece307dbd68f85fc95a490c17b
parent1434c7746d05b88f2d3cacfd7c9797d248009f4a (diff)
downloadopenttd-c9d72a900b1b532ca2978b21a4809a97c08dcc20.tar.xz
(svn r9880) -Add: [NewGRF] Add action 7/9 condition 0B/0C (cargo type availability)
-rw-r--r--src/newgrf.cpp4
1 files changed, 4 insertions, 0 deletions
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;
}