mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-28 15:03:01 +00:00
Fixed tower platform spawning bug
This commit is contained in:
parent
55df4e6bd7
commit
bdf269c262
3 changed files with 6 additions and 2 deletions
|
@ -1724,6 +1724,7 @@ const BehaviorScript bhvTowerPlatformGroup[] = {
|
|||
DISABLE_RENDERING(),
|
||||
ADD_FLOAT(oPosY, 300),
|
||||
SET_HOME(),
|
||||
CALL_NATIVE(bhv_tower_platform_group_init),
|
||||
BEGIN_LOOP(),
|
||||
CALL_NATIVE(bhv_tower_platform_group_loop),
|
||||
END_LOOP(),
|
||||
|
|
|
@ -113,6 +113,7 @@ void bhv_black_smoke_bowser_loop(void);
|
|||
void bhv_black_smoke_upward_loop(void);
|
||||
void bhv_beta_fish_splash_spawner_loop(void);
|
||||
void bhv_spindrift_loop(void);
|
||||
void bhv_tower_platform_group_init(void);
|
||||
void bhv_tower_platform_group_loop(void);
|
||||
void bhv_wf_sliding_tower_platform_loop(void);
|
||||
void bhv_wf_elevator_tower_platform_loop(void);
|
||||
|
|
|
@ -124,9 +124,11 @@ void spawn_wf_platform_group(void) {
|
|||
spawn_and_init_wf_platforms(MODEL_WF_TOWER_SQUARE_PLATORM_ELEVATOR, bhvWfElevatorTowerPlatform);
|
||||
}
|
||||
|
||||
void bhv_tower_platform_group_init(void) {
|
||||
spawn_wf_platform_group();
|
||||
}
|
||||
|
||||
void bhv_tower_platform_group_loop(void) {
|
||||
static u8 spawnedPlatforms = FALSE;
|
||||
if (!spawnedPlatforms) { spawn_wf_platform_group(); spawnedPlatforms = TRUE; }
|
||||
|
||||
u8 anyPlayerInRange = FALSE;
|
||||
for (int i = 0; i < MAX_PLAYERS; i++) {
|
||||
|
|
Loading…
Reference in a new issue