diff --git a/src/debugsprite.cpp b/src/debugsprite.cpp index 4ebdf504..fe094853 100644 --- a/src/debugsprite.cpp +++ b/src/debugsprite.cpp @@ -8,6 +8,7 @@ #endif #include +#include #include "core.h" #include "debugsprite.h" @@ -50,7 +51,7 @@ void DebugSprite::TickGame(float deltams) Entity::TickGame(deltams); Float2 axis = Input::GetAxis(0); - data->x += 0.1f * deltams * axis.x; + data->x += 0.1f * sqrtf(2.0f) * deltams * axis.x; data->y += 0.1f * deltams * axis.y; }