equal
deleted
inserted
replaced
160 /* Checks, if either the Windows files exist (TRG1R.GRF) or the DOS files (TRG1.GRF) |
160 /* Checks, if either the Windows files exist (TRG1R.GRF) or the DOS files (TRG1.GRF) |
161 * by comparing the MD5 checksums of the files. _use_dos_palette is set accordingly. |
161 * by comparing the MD5 checksums of the files. _use_dos_palette is set accordingly. |
162 * If neither are found, Windows palette is assumed. |
162 * If neither are found, Windows palette is assumed. |
163 * |
163 * |
164 * (Note: Also checks sample.cat for corruption) */ |
164 * (Note: Also checks sample.cat for corruption) */ |
165 void CheckExternalFiles(void) |
165 void CheckExternalFiles() |
166 { |
166 { |
167 uint i; |
167 uint i; |
168 /* count of files from this version */ |
168 /* count of files from this version */ |
169 uint dos = 0; |
169 uint dos = 0; |
170 uint win = 0; |
170 uint win = 0; |
338 SPR_WARNING_SIGN, SPR_WARNING_SIGN, |
338 SPR_WARNING_SIGN, SPR_WARNING_SIGN, |
339 END |
339 END |
340 }; |
340 }; |
341 |
341 |
342 |
342 |
343 static void LoadSpriteTables(void) |
343 static void LoadSpriteTables() |
344 { |
344 { |
345 const FileList* files = _use_dos_palette ? &files_dos : &files_win; |
345 const FileList* files = _use_dos_palette ? &files_dos : &files_win; |
346 uint load_index; |
346 uint load_index; |
347 uint i; |
347 uint i; |
348 |
348 |
398 |
398 |
399 LoadNewGRF(load_index, i); |
399 LoadNewGRF(load_index, i); |
400 } |
400 } |
401 |
401 |
402 |
402 |
403 void GfxLoadSprites(void) |
403 void GfxLoadSprites() |
404 { |
404 { |
405 DEBUG(sprite, 2, "Loading sprite set %d", _opt.landscape); |
405 DEBUG(sprite, 2, "Loading sprite set %d", _opt.landscape); |
406 |
406 |
407 GfxInitSpriteMem(); |
407 GfxInitSpriteMem(); |
408 LoadSpriteTables(); |
408 LoadSpriteTables(); |