Changeset - r5476:99e4f761ed78
[Not reviewed]
master
0 1 0
peter1138 - 18 years ago 2007-01-02 20:00:10
peter1138@openttd.org
(svn r7760) -Codechange: Debug messages for newgrf showed the starting sprite, not the current sprite index. Also only output the debug message during activation, when sprites are loaded.
1 file changed with 4 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/newgrf.c
Show inline comments
 
@@ -3682,8 +3682,10 @@ void LoadNewGRF(uint load_index, uint fi
 

	
 
			if (stage == GLS_LABELSCAN) InitNewGRFFile(c, _cur_spriteid);
 
			LoadNewGRFFile(c, slot++, stage);
 
			if (stage == GLS_ACTIVATION) ClearTemporaryNewGRFData();
 
			DEBUG(sprite, 2, "Currently %i sprites are loaded", load_index);
 
			if (stage == GLS_ACTIVATION) {
 
				ClearTemporaryNewGRFData();
 
				DEBUG(sprite, 2, "Currently %i sprites are loaded", _cur_spriteid);
 
			}
 
		}
 
	}
 

	
0 comments (0 inline, 0 general)