mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Fixed bug in romhacks where coins re-appear when re-entering
This commit is contained in:
parent
89d2eb9853
commit
46a95f7a72
1 changed files with 6 additions and 0 deletions
|
|
@ -110,6 +110,12 @@ void bhv_coin_loop(void) {
|
|||
}
|
||||
|
||||
void bhv_coin_formation_spawn_loop(void) {
|
||||
|
||||
// give yellow coins a sync id to fix romhack coin formations
|
||||
if (!gNetworkAreaLoaded && o->oSyncID == 0) {
|
||||
sync_object_init(o, SYNC_DISTANCE_ONLY_EVENTS);
|
||||
}
|
||||
|
||||
if (o->oTimer == 0) {
|
||||
cur_obj_set_behavior(bhvYellowCoin);
|
||||
obj_set_hitbox(o, &sYellowCoinHitbox);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue