From: hgn Date: Thu, 5 Oct 2023 11:11:46 +0000 (+0100) Subject: clear runs when respawning X-Git-Url: https://harrygodden.com/git/?a=commitdiff_plain;h=eb5b5f5fa7d0b8767df69510b6313cb601df66b4;p=carveJwlIkooP6JGAAIwe30JlM.git clear runs when respawning --- 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 ); }