Changeset - r11077:42c8c8a60298
[Not reviewed]
master
0 1 0
peter1138 - 16 years ago 2009-02-08 18:29:22
peter1138@openttd.org
(svn r15418) -Codechange: Add action7/9 support to detect available rail type labels
1 file changed with 5 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/newgrf.cpp
Show inline comments
 
@@ -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);
 
	}
 

	
0 comments (0 inline, 0 general)