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.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/GameLoop.cpp b/src/GameLoop.cpp
index c3eefad..ccf99ac 100644
--- a/src/GameLoop.cpp
+++ b/src/GameLoop.cpp
@@ -171,8 +171,8 @@ void handleKey(Game* game, int key, int action, int mods)
 		alSourcef(gSourceID[shootsong], AL_PITCH, pitch);
 		alSourcef(gSourceID[zombiesong], AL_PITCH, pitch);
 	} else if (key == keymap.force) {
-		auto facing = DoRotation({0, 0, -1}, -camera.rotation2, 0, 0);
-		facing = DoRotation(facing, 0, 0 - camera.rotation, 0);
+		auto facing = rotate({0, 0, -1}, -camera.rotation2, 0, 0);
+		facing = rotate(facing, 0, 0 - camera.rotation, 0);
 		alSourcePlay(gSourceID[souloutsound]);
 
 		for (int i = 1; i < game->numpeople; i++) {
@@ -184,11 +184,11 @@ void handleKey(Game* game, int key, int action, int mods)
 			person.longdead = 1;
 
 			for (auto& joint : person.skeleton.joints) {
-				joint.position = DoRotation(joint.position,
+				joint.position = rotate(joint.position,
 					0, person.playerrotation, 0);
 				joint.position += person.playercoords;
 				joint.realoldposition = joint.position;
-				joint.velocity = DoRotation(joint.velocity,
+				joint.velocity = rotate(joint.velocity,
 					0, person.playerrotation, 0);
 				joint.velocity += person.velocity;
 				joint.velocity += facing * 50;