diff options
| author | Reinmmar <31139601+Reinmmar@users.noreply.github.com> | 2023-12-11 01:21:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-10 16:21:31 -0800 |
| commit | b163ecafc9e3fed2bf91ec19ae5cd8c0e80c1b5c (patch) | |
| tree | 1624539c80ff4bb13e0d54c7edb7266f41f46bd5 /src/enemy | |
| parent | aaa441574668f5472662951437c8e4b69acae9c2 (diff) | |
Applied the enum for interactions (#647)
* Interactions enum applied
* Interactions enum applied
Diffstat (limited to 'src/enemy')
| -rw-r--r-- | src/enemy/businessScrub.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/enemy/businessScrub.c b/src/enemy/businessScrub.c index a1704040..cd52da10 100644 --- a/src/enemy/businessScrub.c +++ b/src/enemy/businessScrub.c @@ -358,15 +358,15 @@ void sub_08028EDC(Entity* this) { } void sub_08028F0C(Entity* this) { - if (this->interactType == 2) { + if (this->interactType == INTERACTION_FUSE) { this->action = 8; - this->interactType = 0; + this->interactType = INTERACTION_NONE; InitializeNPCFusion(this); - } else if (this->interactType != 0) { + } else if (this->interactType != INTERACTION_NONE) { u16 dialog; const struct SalesOffering* offer = (const struct SalesOffering*)this->field_0x7c.WORD; - this->interactType = 0; + this->interactType = INTERACTION_NONE; sub_0804AA1C(this); this->direction = (GetAnimationState(this) << 3); sub_080290E0(this, 3); |
