213 int count = _replace_sprites_count[0]; |
213 int count = _replace_sprites_count[0]; |
214 int offset = _replace_sprites_offset[0]; |
214 int offset = _replace_sprites_offset[0]; |
215 |
215 |
216 _replace_sprites_offset[0]++; |
216 _replace_sprites_offset[0]++; |
217 _replace_sprites_count[0]--; |
217 _replace_sprites_count[0]--; |
218 |
218 |
219 if ((offset + count) <= NUM_SPRITES) { |
219 if ((offset + count) <= NUM_SPRITES) { |
220 load_index = offset; |
220 load_index = offset; |
221 } else { |
221 } else { |
222 DEBUG(spritecache, 1) ("Sprites to be replaced are out of range: %x+%x", |
222 DEBUG(spritecache, 1) ("Sprites to be replaced are out of range: %x+%x", |
223 count, offset); |
223 count, offset); |
741 "cached_sprites.xx1", |
741 "cached_sprites.xx1", |
742 "cached_sprites.xx2", |
742 "cached_sprites.xx2", |
743 "cached_sprites.xx3", |
743 "cached_sprites.xx3", |
744 }; |
744 }; |
745 |
745 |
746 #define OPENTTD_SPRITES_COUNT 93 |
746 #define OPENTTD_SPRITES_COUNT 94 |
747 static const uint16 _openttd_grf_indexes[] = { |
747 static const uint16 _openttd_grf_indexes[] = { |
748 SPR_OPENTTD_BASE+0, SPR_OPENTTD_BASE+7, // icons etc |
748 SPR_OPENTTD_BASE+0, SPR_OPENTTD_BASE+7, // icons etc |
749 134, 134, // euro symbol medium size |
749 134, 134, // euro symbol medium size |
750 582, 582, // euro symbol large size |
750 582, 582, // euro symbol large size |
751 358, 358, // euro symbol tiny |
751 358, 358, // euro symbol tiny |