(svn r552) -newgrf: Include bits forgotten when merging octo's ReplaceSprites support - it would replace even special sprites in the way now. (pasky)
authordarkvater
Fri, 12 Nov 2004 21:33:18 +0000
changeset 364 9e93d102fd4a
parent 363 cf3cee5f33b4
child 365 5752af05ed75
(svn r552) -newgrf: Include bits forgotten when merging octo's ReplaceSprites support - it would replace even special sprites in the way now. (pasky)
spritecache.c
--- a/spritecache.c	Fri Nov 12 19:03:37 2004 +0000
+++ b/spritecache.c	Fri Nov 12 21:33:18 2004 +0000
@@ -100,6 +100,7 @@
 	}
 
 	type = FioReadByte();
+	_cur_sprite.info = type;
 	if (type == 0xFF) {
 		/* We need to really skip only special sprites in the deaf
 		 * mode.  It won't hurt to proceed regular sprites as usual
@@ -114,7 +115,6 @@
 		return;
 	}
 
-	_cur_sprite.info = type;
 #ifdef WANT_SPRITESIZES
 	_cur_sprite.height = FioReadByte();
 	_cur_sprite.width = FioReadWord();
@@ -724,6 +724,10 @@
 	 *   Keep in mind that when you add a LoadGrfIndexed in the 'if'-section below
 	 *   that you should also add the corresponding FioOpenFile to the 'else'-section
 	 *   below.
+	 *
+	 * TODO:
+	 *   I think we can live entirely without Indexed GRFs, but I have to
+	 *   invest that further. --octo
 	 */
 
 	// Try to load the sprites from cache