equal
deleted
inserted
replaced
19 const char * const filename; // filename |
19 const char * const filename; // filename |
20 const md5_byte_t hash[16]; // md5 sum of the file |
20 const md5_byte_t hash[16]; // md5 sum of the file |
21 } MD5File; |
21 } MD5File; |
22 |
22 |
23 typedef struct FileList { |
23 typedef struct FileList { |
24 const MD5File basic[5]; // grf files that always have to be loaded |
24 const MD5File basic[4]; // grf files that always have to be loaded |
25 const MD5File landscape[3]; // landscape specific grf files |
25 const MD5File landscape[3]; // landscape specific grf files |
26 } FileList; |
26 } FileList; |
27 |
27 |
28 enum { |
28 enum { |
29 SKIP = 0xFFFE, |
29 SKIP = 0xFFFE, |
342 _landscape_spriteindexes[_sprite_page_to_load - 1], |
342 _landscape_spriteindexes[_sprite_page_to_load - 1], |
343 i++ |
343 i++ |
344 ); |
344 ); |
345 } |
345 } |
346 |
346 |
|
347 assert(load_index == SPR_SIGNALS_BASE); |
|
348 load_index += LoadGrfFile("nsignalsw.grf", load_index, i++); |
|
349 |
347 assert(load_index == SPR_CANALS_BASE); |
350 assert(load_index == SPR_CANALS_BASE); |
348 load_index += LoadGrfFile("canalsw.grf", load_index, i++); |
351 load_index += LoadGrfFile("canalsw.grf", load_index, i++); |
349 |
352 |
350 assert(load_index == SPR_SLOPES_BASE); |
353 assert(load_index == SPR_SLOPES_BASE); |
351 LoadGrfIndexed("trkfoundw.grf", _slopes_spriteindexes[_opt.landscape], i++); |
354 LoadGrfIndexed("trkfoundw.grf", _slopes_spriteindexes[_opt.landscape], i++); |