chaos pt 2
[carveJwlIkooP6JGAAIwe30JlM.git] / world.c
diff --git a/world.c b/world.c
index def59a36b3edec09d1fe06aa2a9e1a2c4dd34886..4f8cda2f165221c7e18ff4d70ed9fe0a0d1d6f1b 100644 (file)
--- a/world.c
+++ b/world.c
@@ -41,17 +41,12 @@ static void world_switch_instance( u32 index ){
       return;
    }
 
-   if( index != world_static.active_instance ){
-      world_instance *current = 
-         &world_static.instances[ world_static.active_instance ];
-      v3_copy( localplayer.rb.co, current->player_co );
-      v3_copy( localplayer.angles, current->player_angles );
-      current->player_angles[3] = player_get_heading_yaw();
-   }
+   world_instance *current = 
+      &world_static.instances[ world_static.active_instance ];
 
+   if( index != world_static.active_instance )
+      v3_copy( localplayer.rb.co, current->player_co );
    v3_copy( new->player_co, localplayer.rb.co );
-   v3_copy( new->player_angles, localplayer.angles );
-   q_axis_angle( localplayer.rb.q, (v3f){0,1,0}, new->player_angles[3] );
 
    world_static.active_instance = index;