Changeset - r396:d4c7c873123d
[Not reviewed]
master
0 1 0
darkvater - 20 years ago 2004-11-14 13:11:38
darkvater@openttd.org
(svn r588) -newgrf: Silent ignore those stupid one-byte zero special sprites (dbsetw.grf is crawling with them) (pasky).
1 file changed with 5 insertions and 0 deletions:
0 comments (0 inline, 0 general)
grfspecial.c
Show inline comments
 
@@ -902,6 +902,11 @@ static void VehicleChangeInfo(byte *buf,
 
	byte engine;
 
	EngineInfo *ei;
 

	
 
	if (len == 1) {
 
		DEBUG(grf, 8) ("Silently ignoring one-byte special sprite 0x00.");
 
		return;
 
	}
 

	
 
	check_length(len, 6, "VehicleChangeInfo");
 
	feature = buf[1];
 
	numprops = buf[2];
0 comments (0 inline, 0 general)