From 9e1908fc6fabf3d42c0ff0187cfc2e94a3e28e3e Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 30 Oct 2024 22:01:41 +0300 Subject: [PATCH] engine: client: rewrite stupid comma separated single-line operations into more sane code --- engine/client/in_touch.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/engine/client/in_touch.c b/engine/client/in_touch.c index a5ddea74..c00a3052 100644 --- a/engine/client/in_touch.c +++ b/engine/client/in_touch.c @@ -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; } }