diff options
author | peter1138 <peter1138@openttd.org> | 2009-02-08 18:29:22 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2009-02-08 18:29:22 +0000 |
commit | 1877d3362918f99df2203c0cb23e4222c5951070 (patch) | |
tree | aa728eb907f532c9d93c726670b54e64ce41f7b1 /src | |
parent | 793eabf61e6be21fc6fc270ad7a08135c28d6911 (diff) | |
download | openttd-1877d3362918f99df2203c0cb23e4222c5951070.tar.xz |
(svn r15418) -Codechange: Add action7/9 support to detect available rail type labels
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index baed23f6f..f7d50f66b 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -4072,6 +4072,10 @@ static void SkipIf(byte *buf, size_t len) break; case 0x0C: result = GetCargoIDByLabel(BSWAP32(cond_val)) != CT_INVALID; break; + case 0x0D: result = GetRailTypeByLabel(BSWAP32(cond_val)) == INVALID_RAILTYPE; + break; + case 0x0E: result = GetRailTypeByLabel(BSWAP32(cond_val)) != INVALID_RAILTYPE; + break; default: grfmsg(1, "SkipIf: Unsupported condition type %02X. Ignoring", condtype); return; } @@ -5491,6 +5495,7 @@ static void ResetNewGRF() free(f->filename); free(f->cargo_list); + free(f->railtype_list); free(f); } |