summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-02-08 14:02:12 +0000
committerrubidium <rubidium@openttd.org>2007-02-08 14:02:12 +0000
commitea55a04b69963084b94c0ea537cfda9dfacf3ae5 (patch)
tree5e03d1103c6039775425c34241d5cb0f417152c8 /src
parent26f5a156dc1c6907926333c65ee040f772bac9e9 (diff)
downloadopenttd-ea55a04b69963084b94c0ea537cfda9dfacf3ae5.tar.xz
(svn r8634) -Codechange: replace missing sprites with a red question mark.
Diffstat (limited to 'src')
-rw-r--r--src/spritecache.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/spritecache.cpp b/src/spritecache.cpp
index 195de14bb..1cf96a8ae 100644
--- a/src/spritecache.cpp
+++ b/src/spritecache.cpp
@@ -123,11 +123,11 @@ static void* ReadSprite(SpriteCache *sc, SpriteID id)
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);