src/newgrf_engine.cpp
branchgamebalance
changeset 9909 dce9a6923bb7
parent 9906 6f41b8713b65
child 9910 0b2aebc8283e
equal deleted inserted replaced
9908:0fa543611bbe 9909:dce9a6923bb7
   884  * Evaluate a newgrf callback for vehicles
   884  * Evaluate a newgrf callback for vehicles
   885  * @param callback The callback to evalute
   885  * @param callback The callback to evalute
   886  * @param param1   First parameter of the callback
   886  * @param param1   First parameter of the callback
   887  * @param param2   Second parameter of the callback
   887  * @param param2   Second parameter of the callback
   888  * @param engine   Engine type of the vehicle to evaluate the callback for
   888  * @param engine   Engine type of the vehicle to evaluate the callback for
   889  * @param vehicle  The vehicle to evaluate the callback for, or NULL if it doesnt exist yet
   889  * @param v        The vehicle to evaluate the callback for, or NULL if it doesnt exist yet
   890  * @return The value the callback returned, or CALLBACK_FAILED if it failed
   890  * @return The value the callback returned, or CALLBACK_FAILED if it failed
   891  */
   891  */
   892 uint16 GetVehicleCallback(uint16 callback, uint32 param1, uint32 param2, EngineID engine, const Vehicle *v)
   892 uint16 GetVehicleCallback(uint16 callback, uint32 param1, uint32 param2, EngineID engine, const Vehicle *v)
   893 {
   893 {
   894 	const SpriteGroup *group;
   894 	const SpriteGroup *group;