(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:
truelight 2007-09-13 22:48:11 +00:00
parent 7648df7fb5
commit d5171df2df
1 changed files with 1 additions and 1 deletions

View File

@ -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);