Due to the change of GameCfg.ControlType, Mouselook was broken - fixed
This commit is contained in:
parent
496e26a45f
commit
76b4afea52
|
@ -1,5 +1,9 @@
|
|||
D2X-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
|
||||
|
|
|
@ -1871,7 +1871,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;
|
||||
|
|
Loading…
Reference in a new issue