Changeset - r7576:a927e2079d63
[Not reviewed]
master
0 1 0
truelight - 17 years ago 2007-09-13 22:48:11
truelight@openttd.org
(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)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/spritecache.cpp
Show inline comments
 
@@ -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);
0 comments (0 inline, 0 general)