X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player.c;h=8b095cd7d9e5d1f6865d5c41abefc7a6f0bcf709;hb=1be7cfcdb57c61c322462ab6c6c3e9894235732f;hp=f52c8bdeb7b16c687a676f678f98eaf6bf93249a;hpb=8257c14cce7fd1df60238aa0f690593948b5befe;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player.c b/player.c index f52c8bd..8b095cd 100644 --- a/player.c +++ b/player.c @@ -112,6 +112,9 @@ static void player__pre_update(void){ static void player__update(void){ if( player_subsystems[ localplayer.subsystem ]->update ) player_subsystems[ localplayer.subsystem ]->update(); + + if( localplayer.glider_orphan ) + glider_physics(); } static void player__post_update(void) @@ -284,6 +287,8 @@ static void player__reset(void){ localplayer.immobile = 0; localplayer.gate_waiting = NULL; + localplayer.have_glider = 0; + localplayer.glider_orphan = 0; v3_copy( localplayer.rb.co, localplayer.cam_control.tpv_lpf ); player__clean_refs();