Changeset - r16464:ae3f342df07b
[Not reviewed]
master
0 12 0
rubidium - 14 years ago 2010-11-15 16:43:46
rubidium@openttd.org
(svn r21198) -Fix: don't call variables properties in debug messages
12 files changed with 13 insertions and 13 deletions:
0 comments (0 inline, 0 general)
src/newgrf_airporttiles.cpp
Show inline comments
 
@@ -208,7 +208,7 @@ static uint32 AirportTileGetVariable(con
 
		case 0x62: return GetAirportTileIDAtOffset(GetNearbyTile(parameter, tile), st, object->grffile->grfid);
 
	}
 

	
 
	DEBUG(grf, 1, "Unhandled airport tile property 0x%X", variable);
 
	DEBUG(grf, 1, "Unhandled airport tile variable 0x%X", variable);
 

	
 
	*available = false;
 
	return UINT_MAX;
src/newgrf_canal.cpp
Show inline comments
 
@@ -56,7 +56,7 @@ static uint32 CanalGetVariable(const Res
 
		case 0x83: return GetWaterTileRandomBits(tile);
 
	}
 

	
 
	DEBUG(grf, 1, "Unhandled canal property 0x%02X", variable);
 
	DEBUG(grf, 1, "Unhandled canal variable 0x%02X", variable);
 

	
 
	*available = false;
 
	return UINT_MAX;
src/newgrf_cargo.cpp
Show inline comments
 
@@ -35,7 +35,7 @@ static void CargoSetTriggers(const Resol
 

	
 
static uint32 CargoGetVariable(const ResolverObject *object, byte variable, byte parameter, bool *available)
 
{
 
	DEBUG(grf, 1, "Unhandled cargo property 0x%X", variable);
 
	DEBUG(grf, 1, "Unhandled cargo variable 0x%X", variable);
 

	
 
	*available = false;
 
	return UINT_MAX;
src/newgrf_engine.cpp
Show inline comments
 
@@ -833,7 +833,7 @@ static uint32 VehicleGetVariable(const R
 
		default: break;
 
	}
 

	
 
	DEBUG(grf, 1, "Unhandled vehicle property 0x%X, type 0x%X", variable, (uint)v->type);
 
	DEBUG(grf, 1, "Unhandled vehicle variable 0x%X, type 0x%X", variable, (uint)v->type);
 

	
 
	*available = false;
 
	return UINT_MAX;
src/newgrf_generic.cpp
Show inline comments
 
@@ -100,7 +100,7 @@ static uint32 GenericCallbackGetVariable
 
		default: break;
 
	}
 

	
 
	DEBUG(grf, 1, "Unhandled generic feature property 0x%02X", variable);
 
	DEBUG(grf, 1, "Unhandled generic feature variable 0x%02X", variable);
 

	
 
	*available = false;
 
	return UINT_MAX;
src/newgrf_house.cpp
Show inline comments
 
@@ -348,7 +348,7 @@ static uint32 HouseGetVariable(const Res
 
		}
 
	}
 

	
 
	DEBUG(grf, 1, "Unhandled house property 0x%X", variable);
 
	DEBUG(grf, 1, "Unhandled house variable 0x%X", variable);
 

	
 
	*available = false;
 
	return UINT_MAX;
src/newgrf_industries.cpp
Show inline comments
 
@@ -188,7 +188,7 @@ uint32 IndustryGetVariable(const Resolve
 
	}
 

	
 
	if (industry == NULL) {
 
		DEBUG(grf, 1, "Unhandled property 0x%X (no available industry) in callback 0x%x", variable, object->callback);
 
		DEBUG(grf, 1, "Unhandled variable 0x%X (no available industry) in callback 0x%x", variable, object->callback);
 

	
 
		*available = false;
 
		return UINT_MAX;
 
@@ -329,7 +329,7 @@ uint32 IndustryGetVariable(const Resolve
 
		case 0xB4: return Clamp(industry->last_cargo_accepted_at - DAYS_TILL_ORIGINAL_BASE_YEAR, 0, 65535); // Date last cargo accepted since 1920 (in days)
 
	}
 

	
 
	DEBUG(grf, 1, "Unhandled industry property 0x%X", variable);
 
	DEBUG(grf, 1, "Unhandled industry variable 0x%X", variable);
 

	
 
	*available = false;
 
	return UINT_MAX;
src/newgrf_industrytiles.cpp
Show inline comments
 
@@ -102,7 +102,7 @@ static uint32 IndustryTileGetVariable(co
 
		case 0x62: return GetIndustryIDAtOffset(GetNearbyTile(parameter, tile), inds, object->grffile->grfid);
 
	}
 

	
 
	DEBUG(grf, 1, "Unhandled industry tile property 0x%X", variable);
 
	DEBUG(grf, 1, "Unhandled industry tile variable 0x%X", variable);
 

	
 
	*available = false;
 
	return UINT_MAX;
src/newgrf_object.cpp
Show inline comments
 
@@ -312,7 +312,7 @@ static uint32 ObjectGetVariable(const Re
 
	}
 

	
 
unhandled:
 
	DEBUG(grf, 1, "Unhandled object property 0x%X", variable);
 
	DEBUG(grf, 1, "Unhandled object variable 0x%X", variable);
 

	
 
	*available = false;
 
	return UINT_MAX;
src/newgrf_railtype.cpp
Show inline comments
 
@@ -54,7 +54,7 @@ static uint32 RailTypeGetVariable(const 
 
			return _date;
 
	}
 

	
 
	DEBUG(grf, 1, "Unhandled rail type tile property 0x%X", variable);
 
	DEBUG(grf, 1, "Unhandled rail type tile variable 0x%X", variable);
 

	
 
	*available = false;
 
	return UINT_MAX;
src/newgrf_spritegroup.cpp
Show inline comments
 
@@ -160,7 +160,7 @@ const SpriteGroup *DeterministicSpriteGr
 
		}
 

	
 
		if (!available) {
 
			/* Unsupported property: skip further processing and return either
 
			/* Unsupported variable: skip further processing and return either
 
			 * the group from the first range or the default group. */
 
			return SpriteGroup::Resolve(this->num_ranges > 0 ? this->ranges[0].group : this->default_group, object);
 
		}
src/newgrf_town.cpp
Show inline comments
 
@@ -101,7 +101,7 @@ uint32 TownGetVariable(byte variable, by
 
		case 0xD5: return t->fund_buildings_months;
 
	}
 

	
 
	DEBUG(grf, 1, "Unhandled town property 0x%X", variable);
 
	DEBUG(grf, 1, "Unhandled town variable 0x%X", variable);
 

	
 
	*available = false;
 
	return UINT_MAX;
0 comments (0 inline, 0 general)