projects
/
TDDC76_proj.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23c3a65
)
cleanup Helper.cc
author
Arvid Sjöblom
<arvsj277@student.liu.se>
Mon, 11 Dec 2023 08:51:13 +0000
(09:51 +0100)
committer
Arvid Sjöblom
<arvsj277@student.liu.se>
Mon, 11 Dec 2023 08:51:13 +0000
(09:51 +0100)
src/Helper.cc
patch
|
blob
|
history
diff --git
a/src/Helper.cc
b/src/Helper.cc
index 65169561cd9055330fce893bef1abaf7f6aeb8bd..97adafbbf31f02be551d8e9478062f40a705edaf 100644
(file)
--- 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<float>(pow(-1, forward
-
1)) * movement * max_speed;
+ position += static_cast<float>(pow(-1, forward
-
1)) * movement * max_speed;
if (position.y >= stop_bot)
{
movement = direction * -1.0f;