diff options
Diffstat (limited to 'src/GameDraw.cpp')
-rw-r--r-- | src/GameDraw.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
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]; |