X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=world_load.c;fp=world_load.c;h=50a882c2fab5dc1f8907a87c051d189eb55fed62;hb=d171c9ad5de05c9ac8563fcf9f23760b93fb50f8;hp=6378e9bd5cac18487da984d3c3b97a1d408fb00c;hpb=874c9d7e6ee2d826f9eb34518e8163283439c38e;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/world_load.c b/world_load.c index 6378e9b..50a882c 100644 --- a/world_load.c +++ b/world_load.c @@ -107,7 +107,6 @@ static void world_instance_load_mdl( u32 instance_id, const char *path ){ /* init player position. * - this is overriden by the save state when(if) it loads */ - v3_zero( world->player_angles ); ent_spawn *rp = world_find_spawn_by_name( world, "start" ); if( !rp ) rp = world_find_closest_spawn( world, (v3f){0.0f,0.0f,0.0f} ); @@ -147,13 +146,6 @@ static void skaterift_world_load_done( void *payload, u32 size ){ world_entity_start( world, &sav ); world->status = k_world_status_loaded; world_static.load_state = k_world_loader_none; - - for( int i=0; istatus == k_world_status_loaded ) - world_entity_relink( wi ); - } } struct world_load_args { @@ -313,8 +305,6 @@ static void skaterift_change_world_start( addon_reg *reg ){ } } - world_entity_relink( &world_static.instances[k_world_purpose_hub] ); - world_static.instance_addons[ k_world_purpose_client ] = reg; network_send_item( k_netmsg_playeritem_world1 ); relink_all_remote_player_worlds();