summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-16 14:17:32 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-17 23:23:11 +0100
commit299f054956f3193988e07d9fdfb7521207e8c966 (patch)
tree3f5eac5319767c97144733c56d10b1b85a7c483d
parent489db3043caa82942ef7dc5a6d4b1ee30fd56b9d (diff)
fix msvc warning
-rw-r--r--src/character.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/character.cpp b/src/character.cpp
index e99ce183..b4e42a4f 100644
--- a/src/character.cpp
+++ b/src/character.cpp
@@ -72,7 +72,7 @@ int character::allocate_frame_time(float dt)
Vector2 character::move_vec(int left_right, int top_bottom)
{
constexpr auto c = move_speed * frame_time;
- return c * Vector2(sgn(left_right), sgn(top_bottom)).normalized();
+ return c * Vector2((float)sgn(left_right), (float)sgn(top_bottom)).normalized();
}
void character::set_keys(bool L, bool R, bool U, bool D)