blob: c456a8412abdec1c876c56bba73acd8d7d1713ce (
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
|
#include "global.h"
#include "entity.h"
#include "coord.h"
void Object7E(Entity* this) {
if (this->parent->next == NULL) {
DeleteThisEntity();
}
if (this->action == 0) {
this->action = 1;
this->spritePriority.b0 = 7;
this->frameIndex = 0x28;
if (this->type == 0) {
this->spriteSettings.b.draw = TRUE;
} else if (this->type == 2) {
this->spriteSettings.b.flipX = TRUE;
}
}
PositionRelative(this->parent, this, 0, 0x80000);
this->height.HALF.HI = 0;
if (this->type != 0) {
this->spriteSettings.b.draw = this->attachedEntity->spriteSettings.b.draw;
this->frameIndex = this->attachedEntity->frameIndex + 0x1f;
}
}
|