summary refs log tree commit diff
path: root/src/GameLoop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/GameLoop.cpp')
-rw-r--r--src/GameLoop.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GameLoop.cpp b/src/GameLoop.cpp
index 0cfe3ef..f9eefcc 100644
--- a/src/GameLoop.cpp
+++ b/src/GameLoop.cpp
@@ -141,7 +141,7 @@ void handleKey(Game* game, int key, int action, int mods)
 
 			XYZ towards = player.playercoords - game->bodycoords;
 			if (towards.x || towards.z) {
-				Normalise(&towards);
+				towards = normalize(towards);
 				camera.rotation = asin(towards.x) * 180.0f / M_PI;
 				if (towards.z > 0)
 					camera.rotation = 180 - camera.rotation;