summaryrefslogtreecommitdiff
path: root/src/enemy/pesto.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/enemy/pesto.c')
-rw-r--r--src/enemy/pesto.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/enemy/pesto.c b/src/enemy/pesto.c
index b3f6cfdc..e386d4b6 100644
--- a/src/enemy/pesto.c
+++ b/src/enemy/pesto.c
@@ -65,7 +65,7 @@ void Pesto_OnTick(PestoEntity* this) {
void Pesto_OnCollision(PestoEntity* this) {
if (super->hitType != 0x6e) {
- if (super->contactFlags == 0x80) {
+ if (super->contactFlags == CONTACT_TAKE_DAMAGE) {
this->unk_86 = 0x30;
if ((this->unk_83 & 0xf) == 3 && super->action == 6) {
@@ -446,7 +446,8 @@ void sub_080244E8(PestoEntity* this) {
super->timer = 12;
this->unk_83 &= ~0x80;
entity = super->child;
- SetTile(((PestoEntity*)entity)->unk_70, COORD_TO_TILE(entity), entity->collisionLayer);
+ SetBottomTile(((PestoEntity*)entity)->unk_70, COORD_TO_TILE(entity),
+ entity->collisionLayer);
DeleteEntity(entity);
super->z.HALF.HI -= 0xe;
this->unk_78 -= 0xe;