331 |
332 |
332 static void LoadSpriteTables() |
333 static void LoadSpriteTables() |
333 { |
334 { |
334 const FileList* files = _use_dos_palette ? &files_dos : &files_win; |
335 const FileList* files = _use_dos_palette ? &files_dos : &files_win; |
335 uint load_index; |
336 uint load_index; |
336 uint i; |
337 uint i = FIRST_GRF_SLOT; |
337 |
338 |
338 LoadGrfIndexed(files->basic[0].filename, trg1idx, 0); |
339 LoadGrfIndexed(files->basic[0].filename, trg1idx, i++); |
339 DupSprite( 2, 130); // non-breaking space medium |
340 DupSprite( 2, 130); // non-breaking space medium |
340 DupSprite(226, 354); // non-breaking space tiny |
341 DupSprite(226, 354); // non-breaking space tiny |
341 DupSprite(450, 578); // non-breaking space large |
342 DupSprite(450, 578); // non-breaking space large |
342 load_index = 4793; |
343 load_index = 4793; |
343 |
344 |
344 for (i = 1; files->basic[i].filename != NULL; i++) { |
345 for (uint j = 1; files->basic[j].filename != NULL; j++) { |
345 load_index += LoadGrfFile(files->basic[i].filename, load_index, i); |
346 load_index += LoadGrfFile(files->basic[j].filename, load_index, i++); |
346 } |
347 } |
347 |
348 |
348 /* Load additional sprites for climates other than temperate */ |
349 /* Load additional sprites for climates other than temperate */ |
349 if (_opt.landscape != LT_TEMPERATE) { |
350 if (_opt.landscape != LT_TEMPERATE) { |
350 LoadGrfIndexed( |
351 LoadGrfIndexed( |