mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-27 00:19:09 +00:00
(svn r12002) -Cleanup (r11981): Remove obsolete code to skip sprites from indexed GRFs.
This commit is contained in:
@@ -70,20 +70,15 @@ void LoadSpritesIndexed(int file_index, uint *sprite_id, const SpriteID *index_t
|
||||
while ((start = *index_tbl++) != END) {
|
||||
uint end = *index_tbl++;
|
||||
|
||||
if (start == SKIP) { // skip sprites (amount in second var)
|
||||
SkipSprites(end);
|
||||
(*sprite_id) += end;
|
||||
} else { // load sprites and use indexes from start to end
|
||||
do {
|
||||
#ifdef NDEBUG
|
||||
LoadNextSprite(start, file_index, *sprite_id);
|
||||
#else
|
||||
bool b = LoadNextSprite(start, file_index, *sprite_id);
|
||||
assert(b);
|
||||
#endif
|
||||
(*sprite_id)++;
|
||||
} while (++start <= end);
|
||||
}
|
||||
do {
|
||||
#ifdef NDEBUG
|
||||
LoadNextSprite(start, file_index, *sprite_id);
|
||||
#else
|
||||
bool b = LoadNextSprite(start, file_index, *sprite_id);
|
||||
assert(b);
|
||||
#endif
|
||||
(*sprite_id)++;
|
||||
} while (++start <= end);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user