X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_load.c;h=7fb6e478694a76afb7be635211df3aaf5c621c21;hb=df9f72d2912a5424d37dfdb02f76aba8f1ed4df1;hp=ee7df7da6409fd8948041b7c681f9130e637ccdf;hpb=56af37b4982b027cac13133eadadfc71ce8947bb;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_load.c b/world_load.c index ee7df7d..7fb6e47 100644 --- a/world_load.c +++ b/world_load.c @@ -8,11 +8,13 @@ #include "addon.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 */ -VG_STATIC void world_instance_load_mdl( u32 instance_id, const char *path ){ +static void world_instance_load_mdl( u32 instance_id, const char *path ){ vg_rand_seed( 9001 ); world_instance *world = &world_static.instances[ instance_id ]; @@ -291,6 +293,8 @@ static void skaterift_change_world_start( addon_reg *reg ){ } world_static.addon_client = reg; + network_send_item( k_netmsg_playeritem_world1 ); + relink_all_remote_player_worlds(); } } @@ -393,7 +397,7 @@ static void world_free( world_instance *world ) * reset the world structure without deallocating persistent buffers * TODO: Make this a memset(0), and have persistent items live in a static loc */ -VG_STATIC void world_init_blank( world_instance *world ) +static void world_init_blank( world_instance *world ) { memset( &world->meta, 0, sizeof(mdl_context) );