From 36a98ba47ea6df093b31a29442649b0d5abac1f9 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Tue, 2 May 2006 20:44:06 +0000 Subject: (svn r4697) - NewGRF: callback IDs can now be 16 bit values. --- newgrf_engine.c | 2 +- newgrf_spritegroup.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/newgrf_engine.c b/newgrf_engine.c index 519977c94..de61aa01a 100644 --- a/newgrf_engine.c +++ b/newgrf_engine.c @@ -765,7 +765,7 @@ bool UsesWagonOverride(const Vehicle* v) * @param vehicle The vehicle to evaluate the callback for, or NULL if it doesnt exist yet * @return The value the callback returned, or CALLBACK_FAILED if it failed */ -uint16 GetVehicleCallback(byte callback, uint32 param1, uint32 param2, EngineID engine, const Vehicle *v) +uint16 GetVehicleCallback(uint16 callback, uint32 param1, uint32 param2, EngineID engine, const Vehicle *v) { const SpriteGroup *group; ResolverObject object; diff --git a/newgrf_spritegroup.h b/newgrf_spritegroup.h index 4716fcafd..3f3a2ee8d 100644 --- a/newgrf_spritegroup.h +++ b/newgrf_spritegroup.h @@ -156,7 +156,7 @@ void InitializeSpriteGroupPool(void); typedef struct ResolverObject { - byte callback; + uint16 callback; uint32 callback_param1; uint32 callback_param2; -- cgit v1.2.3-70-g09d2