(svn r21198) -Fix: don't call variables properties in debug messages

This commit is contained in:
rubidium 2010-11-15 16:43:46 +00:00
parent b7d8001202
commit a6a2fbd937
12 changed files with 13 additions and 13 deletions

View File

@ -208,7 +208,7 @@ static uint32 AirportTileGetVariable(const ResolverObject *object, byte variable
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;

View File

@ -56,7 +56,7 @@ static uint32 CanalGetVariable(const ResolverObject *object, byte variable, byte
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;

View File

@ -35,7 +35,7 @@ static void CargoSetTriggers(const ResolverObject *object, int triggers)
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;

View File

@ -833,7 +833,7 @@ static uint32 VehicleGetVariable(const ResolverObject *object, byte variable, by
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;

View File

@ -100,7 +100,7 @@ static uint32 GenericCallbackGetVariable(const ResolverObject *object, byte vari
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;

View File

@ -348,7 +348,7 @@ static uint32 HouseGetVariable(const ResolverObject *object, byte variable, byte
}
}
DEBUG(grf, 1, "Unhandled house property 0x%X", variable);
DEBUG(grf, 1, "Unhandled house variable 0x%X", variable);
*available = false;
return UINT_MAX;

View File

@ -188,7 +188,7 @@ uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte par
}
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 ResolverObject *object, byte variable, byte par
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;

View File

@ -102,7 +102,7 @@ static uint32 IndustryTileGetVariable(const ResolverObject *object, byte variabl
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;

View File

@ -312,7 +312,7 @@ static uint32 ObjectGetVariable(const ResolverObject *object, byte variable, byt
}
unhandled:
DEBUG(grf, 1, "Unhandled object property 0x%X", variable);
DEBUG(grf, 1, "Unhandled object variable 0x%X", variable);
*available = false;
return UINT_MAX;

View File

@ -54,7 +54,7 @@ static uint32 RailTypeGetVariable(const ResolverObject *object, byte variable, b
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;

View File

@ -160,7 +160,7 @@ const SpriteGroup *DeterministicSpriteGroup::Resolve(ResolverObject *object) con
}
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);
}

View File

@ -101,7 +101,7 @@ uint32 TownGetVariable(byte variable, byte parameter, bool *available, const Tow
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;