Due to the change of GameCfg.ControlType, Mouselook was broken - fixed

This commit is contained in:
zicodxx 2010-02-23 23:23:21 +00:00
parent 1b41f70e36
commit 1300fe7ffc
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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;