blob: 67125ac7a762dd2d932adac8f87228ac38adb657 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#include <racing/actors.h>
/**
* @brief Updates the train engine actor.
* Used in Kalimari Desert.
* Update wheels and make sound, for his update position it's in vehicle.
*
* @param arg0
*/
void update_actor_train_engine(struct TrainCar* arg0) {
arg0->wheelRot -= 0x666;
if (arg0->unk_08 != 0.0f) {
arg0->unk_08 = 0.0f;
func_800C9D80(arg0->pos, arg0->velocity, SOUND_ARG_LOAD(0x51, 0x01, 0x80, 0x00));
}
}
/**
* @brief Updates the train tender actor.
* Used in Kalimari Desert.
* Update wheels, for his update position it's in vehicle.
* @param tender
*/
void update_actor_train_tender(struct TrainCar* tender) {
tender->wheelRot -= 0x4FA;
}
/**
* @brief Updates the train passenger car actor.
* Used in Kalimari Desert.
* Update wheels, for his update position it's in vehicle.
*
* @param arg0
*/
void update_actor_train_passenger_car(struct TrainCar* arg0) {
arg0->wheelRot -= 0x666;
}
|