From 0fdf9b68747c2f0cc9f17a7965d111bcd05e065f Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sun, 22 Aug 2010 00:55:37 +0000 Subject: [PATCH] Apply correct projection to the debug sprite movement. --- src/debugsprite.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }