diff options
author | glx <glx@openttd.org> | 2007-05-19 19:13:12 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2007-05-19 19:13:12 +0000 |
commit | 1e696cc27b13cf361c0a1ffdd0bb4c6a46360c2d (patch) | |
tree | 417a370f61a2b1ece307dbd68f85fc95a490c17b | |
parent | a7edb4e9142c676dd3e0d354512a9644c1ec396c (diff) | |
download | openttd-1e696cc27b13cf361c0a1ffdd0bb4c6a46360c2d.tar.xz |
(svn r9880) -Add: [NewGRF] Add action 7/9 condition 0B/0C (cargo type availability)
-rw-r--r-- | src/newgrf.cpp | 4 |
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; } |