projects
/
carveJwlIkooP6JGAAIwe30JlM.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
lap timing publish and store, username store in db
[carveJwlIkooP6JGAAIwe30JlM.git]
/
world_load.c
diff --git
a/world_load.c
b/world_load.c
index e17483f5658ae994df5b5c457b34e01e323d2ca3..70ca783137dcc48751ec4851696562658c130199 100644
(file)
--- a/
world_load.c
+++ b/
world_load.c
@@
-9,6
+9,7
@@
#include "save.h"
#include "vg/vg_msg.h"
#include "network.h"
#include "save.h"
#include "vg/vg_msg.h"
#include "network.h"
+#include "player_remote.h"
/*
* load the .mdl file located in path as a world instance
/*
* load the .mdl file located in path as a world instance
@@
-108,10
+109,8
@@
struct world_load_complete_data{
static void skaterift_world_load_done( void *payload, u32 size ){
struct world_load_complete_data *data = payload;
static void skaterift_world_load_done( void *payload, u32 size ){
struct world_load_complete_data *data = payload;
- vg_msg sav = {0};
- sav.buf = data->save.buf;
- sav.len = data->save.len;
- sav.max = data->save.len;
+ vg_msg sav;
+ vg_msg_init( &sav, data->save.buf, data->save.len );
for( u32 i=0; i<data->instance_count; i++ ){
world_instance *world = &world_static.instances[ data->instance_start+i ];
for( u32 i=0; i<data->instance_count; i++ ){
world_instance *world = &world_static.instances[ data->instance_start+i ];
@@
-293,6
+292,7
@@
static void skaterift_change_world_start( addon_reg *reg ){
world_static.addon_client = reg;
network_send_item( k_netmsg_playeritem_world1 );
world_static.addon_client = reg;
network_send_item( k_netmsg_playeritem_world1 );
+ relink_all_remote_player_worlds();
}
}
}
}