diff options
| author | Reinmmar <herwig.orlich@gmail.com> | 2023-09-18 18:56:46 +0200 |
|---|---|---|
| committer | Reinmmar <herwig.orlich@gmail.com> | 2023-09-18 18:56:46 +0200 |
| commit | e689c1b32dca15796580f780e9a57161615686c5 (patch) | |
| tree | aa0f89d9e38413de56fdd0a62c8087890cabecac /src/enemy/sensorBladeTrap.c | |
| parent | 561b8da657d8005339c7255924543ccadadc5d67 (diff) | |
Filled in the directions
Diffstat (limited to 'src/enemy/sensorBladeTrap.c')
| -rw-r--r-- | src/enemy/sensorBladeTrap.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/enemy/sensorBladeTrap.c b/src/enemy/sensorBladeTrap.c index 627a75bb..87fea681 100644 --- a/src/enemy/sensorBladeTrap.c +++ b/src/enemy/sensorBladeTrap.c @@ -42,16 +42,16 @@ void sub_0802BA18(Entity* this) { this->direction = direction; switch (direction >> 3) { - case 0: + case 0: // UP this->field_0x7a.HWORD = this->y.HALF.HI - this->field_0x7c.HALF.HI; break; - case 1: + case 1: // RIGHT this->field_0x7a.HWORD = this->x.HALF.HI + this->field_0x7c.HALF.LO; break; - case 2: + case 2: // DOWN this->field_0x7a.HWORD = this->y.HALF.HI + this->field_0x7c.HALF.HI; break; - case 3: + case 3: // LEFT this->field_0x7a.HWORD = this->x.HALF.HI - this->field_0x7c.HALF.LO; break; } @@ -62,19 +62,19 @@ void sub_0802BA8C(Entity* this) { sub_0802BB10(this); } else { switch (this->direction >> 3) { - case 0: + case 0: // UP if (this->field_0x7a.HWORD >= this->y.HALF.HI) sub_0802BB10(this); break; - case 1: + case 1: // RIGHT if (this->field_0x7a.HWORD <= this->x.HALF.HI) sub_0802BB10(this); break; - case 2: + case 2: // DOWN if (this->field_0x7a.HWORD <= this->y.HALF.HI) sub_0802BB10(this); break; - case 3: + case 3: // LEFT if (this->field_0x7a.HWORD >= this->x.HALF.HI) sub_0802BB10(this); break; @@ -91,7 +91,7 @@ void sub_0802BAFC(Entity* this) { void sub_0802BB10(Entity* this) { this->action = 3; this->speed = 0xc0; - this->direction = this->direction ^ 0x10; + this->direction = this->direction ^ DirectionSouth; EnqueueSFX(SFX_METAL_CLINK); } |
