From: Andreas Eversberg Date: Sat, 14 Apr 2018 08:52:39 +0000 (+0200) Subject: Fix wrong planet rotation while game is not rendering (Benson input) X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=mercenary-reloaded.git;a=commitdiff_plain;h=e9d4178c25a58b7391ebc71b585c098fe0d184d1 Fix wrong planet rotation while game is not rendering (Benson input) --- diff --git a/src/mercenary/render.c b/src/mercenary/render.c index f672eac..cd93995 100644 --- a/src/mercenary/render.c +++ b/src/mercenary/render.c @@ -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;