diff options
author | terkhen <terkhen@openttd.org> | 2011-06-12 20:32:52 +0000 |
---|---|---|
committer | terkhen <terkhen@openttd.org> | 2011-06-12 20:32:52 +0000 |
commit | e127fca384892a22a393fe68c88d9291c5c1d18c (patch) | |
tree | 171a95ea61a2f3462caa4d124139dcdd59a3114d /src/newgrf_object.cpp | |
parent | d7ec492887674362c6a054b28faf26707932df64 (diff) | |
download | openttd-e127fca384892a22a393fe68c88d9291c5c1d18c.tar.xz |
(svn r22557) -Codechange: Remove constness from AnimationBase callbacks.
Diffstat (limited to 'src/newgrf_object.cpp')
-rw-r--r-- | src/newgrf_object.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf_object.cpp b/src/newgrf_object.cpp index 967017039..a541c77ce 100644 --- a/src/newgrf_object.cpp +++ b/src/newgrf_object.cpp @@ -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; |