Mercurial > hg > openttd
changeset 11077:b2dc6e897ede draft
(svn r15418) -Codechange: Add action7/9 support to detect available rail type labels
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Sun, 08 Feb 2009 18:29:22 +0000 |
parents | 3ce92d721ce1 |
children | b5a69b96d311 |
files | src/newgrf.cpp |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -4072,6 +4072,10 @@ 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 @@ free(f->filename); free(f->cargo_list); + free(f->railtype_list); free(f); }