about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/Game.h3
-rw-r--r--src/GameDraw.cpp10
-rw-r--r--src/GameInitDispose.cpp6
3 files changed, 4 insertions, 15 deletions
diff --git a/src/Game.h b/src/Game.h
index 6110aaa..a3b2a8c 100644
--- a/src/Game.h
+++ b/src/Game.h
@@ -97,9 +97,6 @@ struct Game {
 	bool paused;
 	bool menu;
 
-	double eqn[4];
-	float oldrot, oldrot2;
-
 	struct XYZ lastshot[2];
 	bool zoom;
 
diff --git a/src/GameDraw.cpp b/src/GameDraw.cpp
index b131a5b..5a59856 100644
--- a/src/GameDraw.cpp
+++ b/src/GameDraw.cpp
@@ -402,10 +402,7 @@ void Game::DrawGLScene(void)
 		if (thirdperson)
 			glTranslatef(camera.targetoffset.x,
 				camera.targetoffset.y, camera.targetoffset.z);
-		if (thirdperson == 2) {
-			glRotatef(oldrot2, 1, 0, 0);
-			glRotatef(oldrot, 0, 1, 0);
-		} else if (thirdperson == 0 && person[0].skeleton.free) {
+		if (thirdperson == 0 && person[0].skeleton.free) {
 			glRotatef(person[0].skeleton.joints[head].rotate3,
 				0, 1, 0);
 			glRotatef(90 - person[0].skeleton.joints[head].rotate2,
@@ -430,8 +427,9 @@ void Game::DrawGLScene(void)
 			-camera.position.y, -camera.position.z);
 
 		glPushMatrix();
-			glClipPlane(GL_CLIP_PLANE0, eqn);
-			glDisable(GL_CLIP_PLANE0);
+		glClipPlane(GL_CLIP_PLANE0,
+			(const GLdouble []) {0.0, 1.0, 0.0, 0.0});
+		glDisable(GL_CLIP_PLANE0);
 		glPopMatrix();
 
 		alignas(16) GLfloat frustum[6][4];
diff --git a/src/GameInitDispose.cpp b/src/GameInitDispose.cpp
index bd60adf..1e58e77 100644
--- a/src/GameInitDispose.cpp
+++ b/src/GameInitDispose.cpp
@@ -716,13 +716,7 @@ void initGame(Game* game)
 	glLightfv(GL_LIGHT0, GL_DIFFUSE, LightDiffuse);
 	glEnable(GL_LIGHT0);
 
-	// Setup clip plane equation
-	game->eqn[0] = 0;
-	game->eqn[1] = 1;
-	game->eqn[2] = 0;
-	game->eqn[3] = 0;
 	glClearColor(fogcolorr,fogcolorg,fogcolorb,1);
-
 	game->initialized = true;
 
 	decals.len = 0;