projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2dcc03
)
clear runs when respawning
FIX_RESPAWN_EXPLOIT
author
hgn
<hgodden00@gmail.com>
Thu, 5 Oct 2023 11:11:46 +0000
(12:11 +0100)
committer
hgn
<hgodden00@gmail.com>
Thu, 5 Oct 2023 11:11:46 +0000
(12:11 +0100)
player.c
patch
|
blob
|
history
diff --git
a/player.c
b/player.c
index c79132f7e53fa6c2ed5db5809ee180108326999b..399de519620f7e2a428f92e01eeb536c9979dfdd 100644
(file)
--- 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; i<vg_list_size(world_static.instances); i++ ){
+ world_instance *instance = &world_static.instances[i];
+ if( instance->status == k_world_status_loaded ){
+ world_routes_clear( instance );
+ }
+ }
+
if( _player_reset[ player->subsystem ] )
_player_reset[ player->subsystem ]( player, rp );
}