projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix menu rendering regression
[carveJwlIkooP6JGAAIwe30JlM.git]
/
player.c
diff --git
a/player.c
b/player.c
index 9938de6507c7aa7963e32906424c6c32b051963c..7a31eda047382aba659f289a36f156494b77d5c4 100644
(file)
--- a/
player.c
+++ b/
player.c
@@
-10,6
+10,7
@@
#include "player_replay.h"
#include "network.h"
#include "network_common.h"
#include "player_replay.h"
#include "network.h"
#include "network_common.h"
+#include "world_routes.h"
static int localplayer_cmd_respawn( int argc, const char *argv[] ){
ent_spawn *rp = NULL, *r;
static int localplayer_cmd_respawn( int argc, const char *argv[] ){
ent_spawn *rp = NULL, *r;
@@
-257,6
+258,13
@@
static void player__spawn( ent_spawn *rp ){
player_subsystems[ localplayer.subsystem ]->reset( rp );
localplayer.boundary_hash ^= NETMSG_BOUNDARY_BIT;
player_subsystems[ localplayer.subsystem ]->reset( rp );
localplayer.boundary_hash ^= NETMSG_BOUNDARY_BIT;
+
+ 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 );
+ }
+ }
}
}