summaryrefslogtreecommitdiff
path: root/src/newgrf_animation_base.h
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2011-06-12 20:32:52 +0000
committerterkhen <terkhen@openttd.org>2011-06-12 20:32:52 +0000
commite127fca384892a22a393fe68c88d9291c5c1d18c (patch)
tree171a95ea61a2f3462caa4d124139dcdd59a3114d /src/newgrf_animation_base.h
parentd7ec492887674362c6a054b28faf26707932df64 (diff)
downloadopenttd-e127fca384892a22a393fe68c88d9291c5c1d18c.tar.xz
(svn r22557) -Codechange: Remove constness from AnimationBase callbacks.
Diffstat (limited to 'src/newgrf_animation_base.h')
-rw-r--r--src/newgrf_animation_base.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf_animation_base.h b/src/newgrf_animation_base.h
index a2c0cdafd..be0b93c6a 100644
--- a/src/newgrf_animation_base.h
+++ b/src/newgrf_animation_base.h
@@ -25,7 +25,7 @@
* @tparam Tobj Object related to the animated tile.
* @tparam GetCallback The callback function pointer.
*/
-template <typename Tbase, typename Tspec, typename Tobj, uint16 (*GetCallback)(CallbackID callback, uint32 param1, uint32 param2, const Tspec *statspec, const Tobj *st, TileIndex tile)>
+template <typename Tbase, typename Tspec, typename Tobj, uint16 (*GetCallback)(CallbackID callback, uint32 param1, uint32 param2, const Tspec *statspec, Tobj *st, TileIndex tile)>
struct AnimationBase {
/**
* Animate a single tile.
@@ -35,7 +35,7 @@ struct AnimationBase {
* @param tile Tile to animate changes for.
* @param random_animation Whether to pass random bits to the "next frame" callback.
*/
- static void AnimateTile(const Tspec *spec, const Tobj *obj, TileIndex tile, bool random_animation)
+ static void AnimateTile(const Tspec *spec, Tobj *obj, TileIndex tile, bool random_animation)
{
assert(spec != NULL);
@@ -110,7 +110,7 @@ struct AnimationBase {
* @param random_bits Random bits for this update. To be passed as parameter to the NewGRF.
* @param trigger What triggered this update? To be passed as parameter to the NewGRF.
*/
- static void ChangeAnimationFrame(CallbackID cb, const Tspec *spec, const Tobj *obj, TileIndex tile, uint32 random_bits, uint32 trigger)
+ static void ChangeAnimationFrame(CallbackID cb, const Tspec *spec, Tobj *obj, TileIndex tile, uint32 random_bits, uint32 trigger)
{
uint16 callback = GetCallback(cb, random_bits, trigger, spec, obj, tile);
if (callback == CALLBACK_FAILED) return;