From cd45e1905d30b497a930e74375ddab06263a9beb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arvid=20Sj=C3=B6blom?= Date: Mon, 11 Dec 2023 09:51:13 +0100 Subject: [PATCH] cleanup Helper.cc --- src/Helper.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Helper.cc b/src/Helper.cc index 6516956..97adafb 100644 --- a/src/Helper.cc +++ b/src/Helper.cc @@ -41,7 +41,7 @@ void Helper::update(Context& context) void Helper::move(bool forward) { - position += static_cast(pow(-1, forward - 1)) * movement * max_speed; + position += static_cast(pow(-1, forward-1)) * movement * max_speed; if (position.y >= stop_bot) { movement = direction * -1.0f; -- 2.30.2