Changeset - r5962:31dc20bb1404
[Not reviewed]
master
0 1 0
rubidium - 18 years ago 2007-02-08 14:02:12
rubidium@openttd.org
(svn r8634) -Codechange: replace missing sprites with a red question mark.
1 file changed with 5 insertions and 5 deletions:
0 comments (0 inline, 0 general)
src/spritecache.cpp
Show inline comments
 
@@ -123,11 +123,11 @@ static void* ReadSprite(SpriteCache *sc,
 
	DEBUG(sprite, 9, "Load sprite %d", id);
 

	
 
	if (!SpriteExists(id)) {
 
		error(
 
			"Tried to load non-existing sprite #%d.\n"
 
			"Probable cause: Wrong/missing NewGRFs",
 
			id
 
		);
 
		DEBUG(sprite, 1, "Tried to load non-existing sprite #%d. Probable cause: Wrong/missing NewGRFs", id);
 

	
 
		/* SPR_IMG_QUERY is a BIG FAT RED ? */
 
		id = SPR_IMG_QUERY;
 
		sc = GetSpriteCache(SPR_IMG_QUERY);
 
	}
 

	
 
	FioSeekToFile(sc->file_pos);
0 comments (0 inline, 0 general)