mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
- correct application of in_mouseflip flag.
This commit is contained in:
parent
200f54ad47
commit
728635c1c0
3 changed files with 5 additions and 3 deletions
|
@ -278,7 +278,7 @@ static VoiceNode *MV_GetVoice(int handle)
|
|||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
@ -4090,10 +4090,11 @@ void getinput(SW_PACKET *loc)
|
|||
|
||||
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 -= fix16_from_int(info.dpitch) / analogExtent * analogTurnAmount;
|
||||
aimvel >>= 15;
|
||||
|
||||
svel -= info.dx * keyMove / analogExtent;
|
||||
vel -= info.dz * keyMove / analogExtent;
|
||||
|
|
|
@ -1877,7 +1877,8 @@ DoPlayerHorizon(PLAYERp pp)
|
|||
// MONO_PRINT(ds);
|
||||
|
||||
// Fixme: This should probably be made optional.
|
||||
PlayerAutoLook(pp);
|
||||
if (cl_slopetilting)
|
||||
PlayerAutoLook(pp);
|
||||
|
||||
if (pp->input.aimvel)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue