Revert "Small behavior fixes [build]"
Some checks failed
Build coop / build-linux (push) Has been cancelled
Build coop / build-steamos (push) Has been cancelled
Build coop / build-windows-opengl (push) Has been cancelled
Build coop / build-windows-directx (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled

This reverts commit bf4bef435a.
This commit is contained in:
Agent X 2025-05-31 18:22:24 -04:00
parent ff31ae55fa
commit 2dfcb39704
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 { } else {
bhv = (const BehaviorScript *) arg; bhv = (const BehaviorScript *) arg;
} }
if (bhv == smlua_override_behavior(bhvRedCoin)) { if (bhv == bhvRedCoin) {
gAreas[sCurrAreaIndex].numRedCoins++; gAreas[sCurrAreaIndex].numRedCoins++;
} else if (bhv == smlua_override_behavior(bhvHiddenStarTrigger)) { } else if (bhv == bhvHiddenStarTrigger) {
gAreas[sCurrAreaIndex].numSecrets++; gAreas[sCurrAreaIndex].numSecrets++;
} }
} }

View file

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