diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 8a1eb753c..2765c4adf 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,5 +1,9 @@ D1X-Rebirth Changelog +20100224 +-------- +main/kconfig.c: Due to the change of GameCfg.ControlType, Mouselook was broken - fixed + 20100223 -------- SConstruct: Removing svnmicro as micro numbering option since SVN-revisions will not really represent logical numbering; Some cleaning for libs usage; Small cleanup diff --git a/main/kconfig.c b/main/kconfig.c index 482dede15..0e62cfcef 100644 --- a/main/kconfig.c +++ b/main/kconfig.c @@ -1735,7 +1735,7 @@ void controls_read_all(int automap_flag) //----------- Clamp values between -FrameTime and FrameTime // ZICO - remove clamp for pitch and heading if mouselook on and no multiplayer game - if ((PlayerCfg.ControlType != 5) || !GameArg.CtlMouselook || (Game_mode & GM_MULTI) ) { + if ((!(PlayerCfg.ControlType & CONTROL_USING_MOUSE)) || !GameArg.CtlMouselook || (Game_mode & GM_MULTI) ) { if (Controls.pitch_time > FrameTime/2 ) Controls.pitch_time = FrameTime/2; if (Controls.heading_time > FrameTime ) Controls.heading_time = FrameTime; if (Controls.pitch_time < -FrameTime/2 ) Controls.pitch_time = -FrameTime/2;