mirror of
https://github.com/FWGS/xash3d-fwgs
synced 2024-11-25 11:19:59 +01:00
engine: client: rewrite stupid comma separated single-line operations into more sane code
This commit is contained in:
parent
6bdb3f6ea1
commit
9e1908fc6f
@ -1674,7 +1674,10 @@ static void Touch_Motion( touchEventType type, int fingerID, float x, float y, f
|
||||
if( fingerID == touch.look_finger )
|
||||
{
|
||||
if( touch.precision )
|
||||
dx *= touch_precise_amount.value, dy *= touch_precise_amount.value;
|
||||
{
|
||||
dx *= touch_precise_amount.value;
|
||||
dy *= touch_precise_amount.value;
|
||||
}
|
||||
|
||||
if( touch_nonlinear_look.value )
|
||||
{
|
||||
@ -1704,7 +1707,8 @@ static void Touch_Motion( touchEventType type, int fingerID, float x, float y, f
|
||||
return;
|
||||
|
||||
// accumulate
|
||||
touch.yaw -= dx * touch_yaw.value, touch.pitch += dy * touch_pitch.value;
|
||||
touch.yaw -= dx * touch_yaw.value;
|
||||
touch.pitch += dy * touch_pitch.value;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user