From b2ca4e1160855bf7b67381df45602a8b72f09cbd Mon Sep 17 00:00:00 2001 From: DizzyEggg Date: Tue, 1 Apr 2025 20:19:44 +0200 Subject: [PATCH] use CORRIDOR_ROOM --- src/dungeon_8071B48.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dungeon_8071B48.c b/src/dungeon_8071B48.c index 490c20dd0..6a41d696f 100644 --- a/src/dungeon_8071B48.c +++ b/src/dungeon_8071B48.c @@ -70,12 +70,12 @@ void sub_8071B48(void) entity = dungeon->wildPokemon[index]; if ((EntityIsValid(entity)) && (tile = GetTile((entity->pos).x, (entity->pos).y), - (tile->terrainType & 0x100) == 0)) { + (tile->terrainType & TERRAIN_TYPE_UNBREAKABLE) == 0)) { counter++; } } if (dungeon->unk644.unk2A == 0) { - if (gDungeon->monsterHouseRoom == 0xff) { + if (gDungeon->monsterHouseRoom == CORRIDOR_ROOM) { if (counter >= gUnknown_80F4DA6) { return; }