summaryrefslogtreecommitdiff
path: root/src/actors/mario_sign/update.inc.c
blob: 6639bdf63f2f90c43d87ff5a6ec5711c646050f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <racing/actors.h>

/**
 * @brief Updates the Mario sign actor.
 *
 * @param arg0
 */
void update_actor_mario_sign(struct Actor* arg0) {
    if ((arg0->flags & 0x800) == 0) {
        if ((arg0->flags & 0x400) != 0) {
            arg0->pos[1] += 4.0f;
            if (arg0->pos[1] > 800.0f) {
                arg0->flags |= 0x800;
                arg0->rot[1] += 1820;
            }
        } else {
            arg0->rot[1] += 182;
        }
    }
}