Changeset - r3635:d511ebee610d
[Not reviewed]
master
0 1 0
peter1138 - 18 years ago 2006-04-23 11:13:06
peter1138@openttd.org
(svn r4540) - NewGRF: don't treat integer values as boolean.
1 file changed with 3 insertions and 3 deletions:
0 comments (0 inline, 0 general)
newgrf.c
Show inline comments
 
@@ -862,13 +862,13 @@ static bool StationChangeInfo(uint stid,
 
					DrawTileSprites *dts = &stat->renderdata[t];
 
					const DrawTileSprites *sdts = &srcstat->renderdata[t];
 
					DrawTileSeqStruct const *sdtss = sdts->seq;
 
					int seq_count = 0;
 

	
 
					dts->ground_sprite = sdts->ground_sprite;
 
					if (!dts->ground_sprite) {
 
					if (dts->ground_sprite == 0) {
 
						static const DrawTileSeqStruct empty = {0x80, 0, 0, 0, 0, 0, 0};
 
						dts->seq = ∅
 
						continue;
 
					}
 

	
 
					dts->seq = NULL;
 
@@ -1449,13 +1449,13 @@ static void NewSpriteGroup(byte *buf, in
 
		{
 
			RealSpriteGroup *rg;
 
			byte num_loaded  = type;
 
			byte num_loading = grf_load_byte(&buf);
 
			uint i;
 

	
 
			if (!_cur_grffile->spriteset_start) {
 
			if (_cur_grffile->spriteset_start == 0) {
 
				grfmsg(GMS_ERROR, "NewSpriteGroup: No sprite set to work on! Skipping.");
 
				return;
 
			}
 

	
 
			if (_cur_grffile->first_spriteset == 0)
 
				_cur_grffile->first_spriteset = _cur_grffile->spriteset_start;
 
@@ -1608,13 +1608,13 @@ static void NewVehicle_SpriteGroupMappin
 
	}
 

	
 
	// FIXME: Tropicset contains things like:
 
	// 03 00 01 19 01 00 00 00 00 - this is missing one 00 at the end,
 
	// what should we exactly do with that? --pasky
 

	
 
	if (!_cur_grffile->spriteset_start || !_cur_grffile->spritegroups) {
 
	if (_cur_grffile->spriteset_start == 0 || _cur_grffile->spritegroups == 0) {
 
		grfmsg(GMS_WARN, "VehicleMapSpriteGroup: No sprite set to work on! Skipping.");
 
		return;
 
	}
 

	
 
	if (!wagover && last_engines_count != idcount) {
 
		last_engines = realloc(last_engines, idcount);
0 comments (0 inline, 0 general)