summaryrefslogtreecommitdiff
path: root/src/object/graveyardKey.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/object/graveyardKey.c')
-rw-r--r--src/object/graveyardKey.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/object/graveyardKey.c b/src/object/graveyardKey.c
index 3a4d664c..bef307ed 100644
--- a/src/object/graveyardKey.c
+++ b/src/object/graveyardKey.c
@@ -90,10 +90,10 @@ void GraveyardKey_Init(Entity* this, const struct_gUnk_08123FB0* param_2) {
this->y.HALF.HI -= param_2->y;
this->z.WORD = 0;
this->timer = param_2->timer;
- if ((this->direction & 0x80)) {
+ if ((this->direction & DIR_NOT_MOVING_CHECK)) {
dir = this->direction;
- if (dir == 0x81) {
- this->direction = (((gPlayerEntity.animationState * 4 + (Random() & 3)) - 2) & 0x1f) ^ 0x10;
+ if (dir == (DIR_NOT_MOVING_CHECK | 0x1)) {
+ this->direction = (((gPlayerEntity.animationState * 4 + (Random() & 3)) - 2) & 0x1f) ^ DirectionSouth;
}
}
UpdateSpriteForCollisionLayer(this);