ui frosting info
[carveJwlIkooP6JGAAIwe30JlM.git] / player_common.c
index 8ea57a4380021585af39ea05e0ad3868ed421f20..d1e8fc604aaa067766690eba1d6b5b59abff1bcb 100644 (file)
@@ -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; i<mdl_arrcount(&world->ent_camera); i++ ){
          ent_camera *c = mdl_arritm(&world->ent_camera,i);