diff options
| author | octorock <79596758+octorock@users.noreply.github.com> | 2021-11-12 12:13:13 +0100 |
|---|---|---|
| committer | octorock <79596758+octorock@users.noreply.github.com> | 2021-11-12 12:13:13 +0100 |
| commit | 9396484df6c05886b38fd29bc67b4d247f15015f (patch) | |
| tree | 23191aa4cccdfb0889ae935f96231be70a0f1bda /src/projectile/boneProjectile.c | |
| parent | b1e2175ffb7f4b65dffb5480e08c86135c66c109 (diff) | |
Merge branch 'master' into asset-extraction
Diffstat (limited to 'src/projectile/boneProjectile.c')
| -rw-r--r-- | src/projectile/boneProjectile.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/projectile/boneProjectile.c b/src/projectile/boneProjectile.c index a1a4d4c7..1bececa0 100644 --- a/src/projectile/boneProjectile.c +++ b/src/projectile/boneProjectile.c @@ -30,7 +30,7 @@ void sub_080A81C4(Entity* this) { void BoneProjectile_Init(Entity* this) { this->action = 1; this->actionDelay = 0x3c; - this->height.HALF.HI = 0xfffe; + this->z.HALF.HI = 0xfffe; InitializeAnimation(this, 0); } @@ -57,14 +57,14 @@ void BoneProjectile_Action2(Entity* this) { sub_080AF090(this); if (sub_08003FC4(this, 0x1800) == 0) { this->action = 3; - this->flags = this->flags & 0x7f; + COLLISION_OFF(this); this->speed = 0xe0; - this->hVelocity = 0xe000; + this->zVelocity = 0xe000; } } void BoneProjectile_Action3(Entity* this) { - this->spriteSettings.b.draw ^= 1; + this->spriteSettings.draw ^= 1; sub_0806F69C(this); GetNextFrame(this); if (sub_080044EC(this, 0x1800) == 0) { @@ -82,8 +82,8 @@ void BoneProjectile_Action4(Entity* this) { void sub_080A82D8(Entity* this) { this->action = 4; - this->flags &= 0x7f; - this->hVelocity = 0x10000; + COLLISION_OFF(this); + this->zVelocity = 0x10000; this->direction ^= 0x10; this->speed = 0x80; } |
