Mercurial > hg > openttd
changeset 7576:fcfed1449888 draft
(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)
author | truelight <truelight@openttd.org> |
---|---|
date | Thu, 13 Sep 2007 22:48:11 +0000 |
parents | 83da0ffcda47 |
children | a9acd5d86f94 |
files | src/spritecache.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/spritecache.cpp +++ b/src/spritecache.cpp @@ -121,7 +121,7 @@ /* 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);