Changeset - r3724:b77ab78b6a36
[Not reviewed]
master
0 2 0
peter1138 - 18 years ago 2006-05-02 20:44:06
peter1138@openttd.org
(svn r4697) - NewGRF: callback IDs can now be 16 bit values.
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
newgrf_engine.c
Show inline comments
 
@@ -762,13 +762,13 @@ bool UsesWagonOverride(const Vehicle* v)
 
 * @param param1   First parameter of the callback
 
 * @param param2   Second parameter of the callback
 
 * @param engine   Engine type of the vehicle to evaluate the callback for
 
 * @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;
 
	CargoID cargo;
 

	
 
	NewVehicleResolver(&object, v);
newgrf_spritegroup.h
Show inline comments
 
@@ -153,13 +153,13 @@ struct SpriteGroup {
 

	
 
SpriteGroup *AllocateSpriteGroup(void);
 
void InitializeSpriteGroupPool(void);
 

	
 

	
 
typedef struct ResolverObject {
 
	byte callback;
 
	uint16 callback;
 
	uint32 callback_param1;
 
	uint32 callback_param2;
 

	
 
	byte trigger;
 
	uint32 last_value;
 
	uint32 reseed;
0 comments (0 inline, 0 general)