From: Arvid Sjöblom Date: Mon, 11 Dec 2023 08:51:13 +0000 (+0100) Subject: cleanup Helper.cc X-Git-Url: https://gitweb.forssennils.se/?a=commitdiff_plain;h=cd45e1905d30b497a930e74375ddab06263a9beb;p=TDDC76_proj.git cleanup Helper.cc --- 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;