# HG changeset patch # User rubidium # Date 2007-02-08 14:02:12 # Node ID 31dc20bb14040c419fc8b5e12b1f835ee0112cba # Parent 6b5d60f0436048c46d02f2d299eac7ae6941f5f1 (svn r8634) -Codechange: replace missing sprites with a red question mark. diff --git a/src/spritecache.cpp b/src/spritecache.cpp --- a/src/spritecache.cpp +++ b/src/spritecache.cpp @@ -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);