- correct application of in_mouseflip flag.

This commit is contained in:
Christoph Oelckers 2019-11-20 23:29:13 +01:00
parent 200f54ad47
commit 728635c1c0
3 changed files with 5 additions and 3 deletions

View file

@ -278,7 +278,7 @@ static VoiceNode *MV_GetVoice(int handle)
{ {
if (handle < MV_MINVOICEHANDLE || handle > MV_MaxVoices) if (handle < MV_MINVOICEHANDLE || handle > MV_MaxVoices)
{ {
MV_Printf("MV_GetVoice(): bad handle (%d)!\n", handle); //MV_Printf("MV_GetVoice(): bad handle (%d)!\n", handle);
return nullptr; return nullptr;
} }

View file

@ -4090,10 +4090,11 @@ void getinput(SW_PACKET *loc)
aimvel = fix16_div(fix16_from_int(info.mousey), F16(64)); aimvel = fix16_div(fix16_from_int(info.mousey), F16(64));
if (in_mouseflip) if (!in_mouseflip) // SW's mouse is inverted by default.
aimvel = -aimvel; aimvel = -aimvel;
aimvel -= fix16_from_int(info.dpitch) / analogExtent * analogTurnAmount; aimvel -= fix16_from_int(info.dpitch) / analogExtent * analogTurnAmount;
aimvel >>= 15;
svel -= info.dx * keyMove / analogExtent; svel -= info.dx * keyMove / analogExtent;
vel -= info.dz * keyMove / analogExtent; vel -= info.dz * keyMove / analogExtent;

View file

@ -1877,7 +1877,8 @@ DoPlayerHorizon(PLAYERp pp)
// MONO_PRINT(ds); // MONO_PRINT(ds);
// Fixme: This should probably be made optional. // Fixme: This should probably be made optional.
PlayerAutoLook(pp); if (cl_slopetilting)
PlayerAutoLook(pp);
if (pp->input.aimvel) if (pp->input.aimvel)
{ {