diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-18 23:01:40 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-18 23:01:40 +0100 |
commit | 32b8c22828315292857e2cd9909fba620f30ff70 (patch) | |
tree | ac6a2293b95816e4ee24adaf54a468cd92a447cd | |
parent | 32f2ef7c17ac68c43976667612b9b58856ab130a (diff) |
src/entity: rotate entity on keypress immediately
-rw-r--r-- | src/character.cpp | 2 |
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; |