mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-11-16 17:51:27 +00:00
Fixed mouse turning
Only works with spectating, and is affected by mirror
This commit is contained in:
parent
0d0e856619
commit
8cb73c8d25
1 changed files with 2 additions and 6 deletions
|
@ -1465,12 +1465,8 @@ void G_BuildTiccmd(ticcmd_t *cmd, INT32 realtics, UINT8 ssplayer)
|
||||||
cmd->aiming = G_ClipAimingPitch(&laim);
|
cmd->aiming = G_ClipAimingPitch(&laim);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (analog ||
|
if (player->spectator)
|
||||||
(!demoplayback && (player->climbing
|
cmd->angleturn = (INT16)(cmd->angleturn - (mousex*(mirrormode ? -1 : 1)*8));
|
||||||
|| (player->pflags & PF_SLIDING)))) // Analog for mouse
|
|
||||||
side += mousex*2;
|
|
||||||
else
|
|
||||||
cmd->angleturn = (INT16)(cmd->angleturn - (mousex*8));
|
|
||||||
|
|
||||||
mousex = mousey = mlooky = 0;
|
mousex = mousey = mlooky = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue