mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2025-10-30 08:01:01 +00:00
Particle sync fixes (#112)
* Fix lingering particles when a player exits an area or disconnects
This commit is contained in:
parent
de2300f837
commit
6d6c8fc5e3
1 changed files with 2 additions and 1 deletions
|
|
@ -16,6 +16,7 @@
|
|||
#include "object_collision.h"
|
||||
#include "object_helpers.h"
|
||||
#include "object_list_processor.h"
|
||||
#include "obj_behaviors.h"
|
||||
#include "platform_displacement.h"
|
||||
#include "profiler.h"
|
||||
#include "spawn_object.h"
|
||||
|
|
@ -281,7 +282,7 @@ void bhv_mario_update(void) {
|
|||
vec3f_copy(gMarioState->marioBodyState->torsoPos, gMarioState->pos);
|
||||
}
|
||||
|
||||
if (stateIndex == 0) {
|
||||
if ((stateIndex == 0) || (!is_player_active(gMarioState))) {
|
||||
gMarioState->particleFlags = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue