forked from mirror/OpenTTD
(svn r22557) -Codechange: Remove constness from AnimationBase callbacks.
This commit is contained in:
@@ -504,7 +504,7 @@ void DrawNewObjectTileInGUI(int x, int y, const ObjectSpec *spec, uint8 view)
|
||||
* @param tile The tile the callback is called for.
|
||||
* @return The result of the callback.
|
||||
*/
|
||||
uint16 StubGetObjectCallback(CallbackID callback, uint32 param1, uint32 param2, const ObjectSpec *spec, const Object *o, TileIndex tile)
|
||||
uint16 StubGetObjectCallback(CallbackID callback, uint32 param1, uint32 param2, const ObjectSpec *spec, Object *o, TileIndex tile)
|
||||
{
|
||||
return GetObjectCallback(callback, param1, param2, spec, o, tile);
|
||||
}
|
||||
@@ -537,7 +537,7 @@ void AnimateNewObjectTile(TileIndex tile)
|
||||
* @param trigger The trigger that is triggered.
|
||||
* @param spec The spec associated with the object.
|
||||
*/
|
||||
void TriggerObjectTileAnimation(const Object *o, TileIndex tile, ObjectAnimationTrigger trigger, const ObjectSpec *spec)
|
||||
void TriggerObjectTileAnimation(Object *o, TileIndex tile, ObjectAnimationTrigger trigger, const ObjectSpec *spec)
|
||||
{
|
||||
if (!HasBit(spec->animation.triggers, trigger)) return;
|
||||
|
||||
@@ -550,7 +550,7 @@ void TriggerObjectTileAnimation(const Object *o, TileIndex tile, ObjectAnimation
|
||||
* @param trigger The trigger that is triggered.
|
||||
* @param spec The spec associated with the object.
|
||||
*/
|
||||
void TriggerObjectAnimation(const Object *o, ObjectAnimationTrigger trigger, const ObjectSpec *spec)
|
||||
void TriggerObjectAnimation(Object *o, ObjectAnimationTrigger trigger, const ObjectSpec *spec)
|
||||
{
|
||||
if (!HasBit(spec->animation.triggers, trigger)) return;
|
||||
|
||||
|
Reference in New Issue
Block a user