X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;ds=sidebyside;f=player.c;h=3084828d38cb7a804cc205c15446d7a1525b3c9e;hb=d171c9ad5de05c9ac8563fcf9f23760b93fb50f8;hp=23cb5fcaf4ceeaae7f8d09c020be987e08d5fba0;hpb=874c9d7e6ee2d826f9eb34518e8163283439c38e;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player.c b/player.c index 23cb5fc..3084828 100644 --- a/player.c +++ b/player.c @@ -15,7 +15,7 @@ static int localplayer_cmd_respawn( int argc, const char *argv[] ){ ent_spawn *rp = NULL, *r; - world_instance *world = localplayer.viewable_world; + world_instance *world = world_current_instance(); if( argc == 1 ){ rp = world_find_spawn_by_name( world, argv[0] ); @@ -236,7 +236,6 @@ static void player__reset(void){ localplayer.immobile = 0; localplayer.gate_waiting = NULL; - localplayer.viewable_world = world_current_instance(); world_static.challenge_target = NULL; world_static.challenge_timer = 0.0f; @@ -253,6 +252,8 @@ static void player__reset(void){ world_routes_clear( instance ); } } + + v3_copy( localplayer.rb.co, localplayer.cam_control.tpv_lpf ); } static void player__spawn( ent_spawn *rp ){