From eb5b5f5fa7d0b8767df69510b6313cb601df66b4 Mon Sep 17 00:00:00 2001 From: hgn Date: Thu, 5 Oct 2023 12:11:46 +0100 Subject: [PATCH] clear runs when respawning --- player.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/player.c b/player.c index c79132f..399de51 100644 --- a/player.c +++ b/player.c @@ -288,6 +288,13 @@ PLAYER_API void player__spawn( player_instance *player, ent_spawn *rp ){ world_static.challenge_timer = 0.0f; world_entity_unfocus(); + for( u32 i=0; istatus == k_world_status_loaded ){ + world_routes_clear( instance ); + } + } + if( _player_reset[ player->subsystem ] ) _player_reset[ player->subsystem ]( player, rp ); } -- 2.25.1