mirror of https://github.com/OpenTTD/OpenTTD
(svn r15513) -Cleanup: Unavailable varaction variable value does not matter, but at least it can be consistent.
parent
fe5acb59f7
commit
fd6a480004
|
@ -56,7 +56,7 @@ static uint32 CanalGetVariable(const ResolverObject *object, byte variable, byte
|
|||
DEBUG(grf, 1, "Unhandled canal property 0x%02X", variable);
|
||||
|
||||
*available = false;
|
||||
return 0;
|
||||
return UINT_MAX;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ static uint32 CargoGetVariable(const ResolverObject *object, byte variable, byte
|
|||
DEBUG(grf, 1, "Unhandled cargo property 0x%X", variable);
|
||||
|
||||
*available = false;
|
||||
return 0;
|
||||
return UINT_MAX;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -94,7 +94,7 @@ static uint32 GenericCallbackGetVariable(const ResolverObject *object, byte vari
|
|||
DEBUG(grf, 1, "Unhandled generic feature property 0x%02X", variable);
|
||||
|
||||
*available = false;
|
||||
return 0;
|
||||
return UINT_MAX;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -380,7 +380,7 @@ uint32 IndustryGetVariable(const ResolverObject *object, byte variable, byte par
|
|||
DEBUG(grf, 1, "Unhandled industry property 0x%X", variable);
|
||||
|
||||
*available = false;
|
||||
return (uint32)-1;
|
||||
return UINT_MAX;
|
||||
}
|
||||
|
||||
static const SpriteGroup *IndustryResolveReal(const ResolverObject *object, const SpriteGroup *group)
|
||||
|
|
|
@ -102,7 +102,7 @@ static uint32 IndustryTileGetVariable(const ResolverObject *object, byte variabl
|
|||
DEBUG(grf, 1, "Unhandled industry tile property 0x%X", variable);
|
||||
|
||||
*available = false;
|
||||
return (uint32)-1;
|
||||
return UINT_MAX;
|
||||
}
|
||||
|
||||
static const SpriteGroup *IndustryTileResolveReal(const ResolverObject *object, const SpriteGroup *group)
|
||||
|
|
|
@ -95,5 +95,5 @@ uint32 TownGetVariable(byte variable, byte parameter, bool *available, const Tow
|
|||
DEBUG(grf, 1, "Unhandled town property 0x%X", variable);
|
||||
|
||||
*available = false;
|
||||
return (uint32)-1;
|
||||
return UINT_MAX;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue