mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-28 17:09:10 +00:00
(svn r4697) - NewGRF: callback IDs can now be 16 bit values.
This commit is contained in:
@@ -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
|
* @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
|
* @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;
|
const SpriteGroup *group;
|
||||||
ResolverObject object;
|
ResolverObject object;
|
||||||
|
@@ -156,7 +156,7 @@ void InitializeSpriteGroupPool(void);
|
|||||||
|
|
||||||
|
|
||||||
typedef struct ResolverObject {
|
typedef struct ResolverObject {
|
||||||
byte callback;
|
uint16 callback;
|
||||||
uint32 callback_param1;
|
uint32 callback_param1;
|
||||||
uint32 callback_param2;
|
uint32 callback_param2;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user