equal
deleted
inserted
replaced
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; |