summaryrefslogtreecommitdiffhomepage
path: root/src/character.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-18 23:01:40 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-18 23:01:40 +0100
commit32b8c22828315292857e2cd9909fba620f30ff70 (patch)
treeac6a2293b95816e4ee24adaf54a468cd92a447cd /src/character.cpp
parent32f2ef7c17ac68c43976667612b9b58856ab130a (diff)
src/entity: rotate entity on keypress immediately
Diffstat (limited to 'src/character.cpp')
-rw-r--r--src/character.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/character.cpp b/src/character.cpp
index 94f0b7ac..7cded2ba 100644
--- a/src/character.cpp
+++ b/src/character.cpp
@@ -109,6 +109,8 @@ bool character::update(std::size_t i, float dt)
int nframes = allocate_frame_time(dt);
+ rotate(i, new_r);
+
if (!nframes)
return false;