mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: client: rewrite stupid comma separated single-line operations into more sane code
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user