Small behavior fixes [build]

This commit is contained in:
Agent X 2025-05-22 08:32:06 -04:00
parent aac982a3eb
commit bf4bef435a
2 changed files with 3 additions and 3 deletions

View file

@ -132,9 +132,9 @@ static void area_check_red_coin_or_secret(void *arg, bool isMacroObject) {
} else {
bhv = (const BehaviorScript *) arg;
}
if (bhv == bhvRedCoin) {
if (bhv == smlua_override_behavior(bhvRedCoin)) {
gAreas[sCurrAreaIndex].numRedCoins++;
} else if (bhv == bhvHiddenStarTrigger) {
} else if (bhv == smlua_override_behavior(bhvHiddenStarTrigger)) {
gAreas[sCurrAreaIndex].numSecrets++;
}
}

View file

@ -206,7 +206,7 @@ void network_receive_level_macro(struct Packet* p) {
}
}
LOG_INFO("rx macro special: coin formation");
} else if (behavior == bhvGoombaTripletSpawner) {
} else if (behavior == smlua_override_behavior(bhvGoombaTripletSpawner)) {
for (s32 i = 0; i < OBJECT_POOL_CAPACITY; i++) {
struct Object* o2 = &gObjectPool[i];
if (o2->parentObj != o) { continue; }