summaryrefslogtreecommitdiff
path: root/src/enemy/slime.c
diff options
context:
space:
mode:
authortheo3 <arisstephenson2@gmail.com>2021-03-13 01:14:46 -0800
committertheo3 <arisstephenson2@gmail.com>2021-03-13 01:14:46 -0800
commite251d79ffd4ee1c4b10def3ecb41f2d572c63664 (patch)
tree29d22198d60bc4f770ae6eb78d72b2726208d34d /src/enemy/slime.c
parentebf2ede70dad51331a0233baed8cbed42a9c13a4 (diff)
quick fix 🙂
Diffstat (limited to 'src/enemy/slime.c')
-rw-r--r--src/enemy/slime.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/enemy/slime.c b/src/enemy/slime.c
index 13782f7a..9609232d 100644
--- a/src/enemy/slime.c
+++ b/src/enemy/slime.c
@@ -58,7 +58,7 @@ void nullsub_171() {
void sub_08044FC8(Entity* this) {
this->action = 1;
this->spriteSettings.b.draw = 1;
- this->nonPlanarMovement = 128;
+ this->speed = 128;
sub_0804A720(this);
InitializeAnimation(this, 0);
sub_08044FF8(this);
@@ -75,8 +75,8 @@ void sub_08045018(Entity* this) {
if (--this->actionDelay == 0) {
this->action = 3;
this->actionDelay = 1;
- if (0 < this->nonPlanarMovement) {
- this->actionDelay = sub_0806FA04(4096, this->nonPlanarMovement) >> 8;
+ if (0 < this->speed) {
+ this->actionDelay = sub_0806FA04(4096, this->speed) >> 8;
}
if (sub_08049FA0(this) == 0 && (Random() & 3)) {
this->direction = (sub_08049EE4(this) + 0xfc + (Random() & 8)) & 24;