X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=player_common.c;h=d1e8fc604aaa067766690eba1d6b5b59abff1bcb;hb=e311bbe2fa903a7e2a922f202f389b799193195d;hp=8ea57a4380021585af39ea05e0ad3868ed421f20;hpb=874c9d7e6ee2d826f9eb34518e8163283439c38e;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/player_common.c b/player_common.c index 8ea57a4..d1e8fc6 100644 --- a/player_common.c +++ b/player_common.c @@ -27,7 +27,6 @@ static void player_camera_portal_correction(void){ vg_success( "Plane cleared\n" ); player_apply_transport_to_cam( localplayer.gate_waiting->transport ); localplayer.gate_waiting = NULL; - localplayer.viewable_world = world_current_instance(); } else{ /* de-transform camera and player back */ @@ -220,7 +219,7 @@ static void player__cam_iterate(void){ ent_camera *cam = NULL; f32 min_dist = k_cinema; - world_instance *world = localplayer.viewable_world; + world_instance *world = world_current_instance(); for( u32 i=0; ient_camera); i++ ){ ent_camera *c = mdl_arritm(&world->ent_camera,i);