diff options
| author | theo3 <arisstephenson2@gmail.com> | 2023-12-30 20:05:32 -0800 |
|---|---|---|
| committer | theo3 <arisstephenson2@gmail.com> | 2023-12-30 20:05:32 -0800 |
| commit | 201955ea052a5188f2e59bdcdbf6c52ff158ee66 (patch) | |
| tree | 66474a7515b56c90e1d0b94a0a39f42da6677d71 /src/playerUtils.c | |
| parent | 37714644960c56650dd1067b86aafa685eaf01f4 (diff) | |
create enemy struct and enemy flags
Diffstat (limited to 'src/playerUtils.c')
| -rw-r--r-- | src/playerUtils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/playerUtils.c b/src/playerUtils.c index 833d8acf..7820a1e5 100644 --- a/src/playerUtils.c +++ b/src/playerUtils.c @@ -2559,7 +2559,7 @@ bool32 HasSwordEquipped(void) { u32 sub_0807A180(Entity* param_1, Entity* param_2, u32 param_3, u32 param_4) { GenericEntity stackEntity; - PositionRelative(param_1, &stackEntity.base, 0, -0x40000); + PositionRelative(param_1, &stackEntity.base, 0, Q_16_16(-4.0)); stackEntity.base.animationState = param_1->animationState; return sub_08003FDE(&stackEntity.base, param_2, param_3, param_4); } @@ -2933,7 +2933,7 @@ void sub_0807AB44(Entity* this, s32 xOffset, s32 yOffset) { object = CreateObject(FLAME, 1, 0); if (object != NULL) { PositionRelative(this, object, xOffset << 0x10, yOffset << 0x10); - sub_08004168(object); + SnapToTile(object); sub_0807B7D8(ptr[3], COORD_TO_TILE(object), object->collisionLayer); } } else { |
