Remove vertical movement while strafing.

This commit is contained in:
2017-11-23 16:30:40 +01:00
parent d69e2771fc
commit f4c8574519

View File

@@ -34,9 +34,9 @@ static void move(unsigned char key)
dir[1] = -sin(pitch);
dir[2] = -cos(yaw) * cos(pitch);
} else {
dir[0] = -cos(yaw) * cos(pitch);
dir[1] = -sin(pitch);
dir[2] = sin(yaw) * cos(pitch);
dir[0] = -cos(yaw);
dir[1] = 0;
dir[2] = -sin(yaw);
}
if (key == 's' || key == 'd') {