Fix wrong planet rotation while game is not rendering (Benson input)
[mercenary-reloaded.git] / src / mercenary / render.c
index f672eac..cd93995 100644 (file)
@@ -316,7 +316,7 @@ void render_capture_start(double _fov, int _extend_roads, int debug)
        /* in case of player on the ground, there is no roll, so it will be reset to 0 when screen is cleared */
        mercenary_get_orientation(&motion_new.orientation_roll, &motion_new.orientation_pitch, &motion_new.orientation_yaw);
        mercenary_get_orientation_raw(&motion_new.orientation_raw_pitch, &motion_new.orientation_raw_yaw);
-       motion_new.planet_rotation = 0;
+       motion_new.planet_rotation = motion_old.planet_rotation;
        mercenary_get_orientation_planet(&motion_new.planet_inclination, &motion_new.planet_azimuth);
 
        render_item_object_info = NULL;