summaryrefslogtreecommitdiff
path: root/src/enemy/slime.c
diff options
context:
space:
mode:
authorHenny022p <info@henny022.de>2021-03-15 22:56:23 +0100
committerHenny022p <info@henny022.de>2021-03-15 22:56:23 +0100
commita2cdfd6d8dd910aa402b7e6bdf32278ac9b80c50 (patch)
treedd9524198ad151c49eb01e92f46743e6e306673e /src/enemy/slime.c
parentaac7eb743646634c1476141ba5d07da53ab56193 (diff)
parente09678c6ab4d6c1070495cf8b49b8b3dffefc4af (diff)
Merge branch 'master' into cleanup_declarations
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 2235bcf9..c1b0185b 100644
--- a/src/enemy/slime.c
+++ b/src/enemy/slime.c
@@ -57,7 +57,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);
@@ -74,8 +74,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;