mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r11101) -Fix r11099: the check: file_pos == 0, no longer works; adjust the check with file_slot. This solves the ? sprites with autorail (nice catch Progman)
This commit is contained in:
parent
7648df7fb5
commit
d5171df2df
|
@ -121,7 +121,7 @@ bool SpriteExists(SpriteID id)
|
|||
/* Special case for Sprite ID zero -- its position is also 0... */
|
||||
if (id == 0) return true;
|
||||
if (id >= _spritecache_items) return false;
|
||||
return GetSpriteCache(id)->file_pos != 0;
|
||||
return !(GetSpriteCache(id)->file_pos == 0 && GetSpriteCache(id)->file_slot == 0);
|
||||
}
|
||||
|
||||
void* AllocSprite(size_t);
|
||||
|
|
Loading…
Reference in New Issue