diff options
| author | Nguyễn Gia Phong <cnx@loang.net> | 2023-11-26 02:58:48 +0900 |
|---|---|---|
| committer | Nguyễn Gia Phong <cnx@loang.net> | 2023-11-26 02:58:48 +0900 |
| commit | 2f4cbb53f4936680dd75325feda17ce74b77567d (patch) | |
| tree | eec3973415e78eabe202062587dfd4c78f95e4a2 /src/GameDraw.cpp | |
| parent | 54dd99f9df13974201c7a9eee694e17676d2302e (diff) | |
| download | blackshades-2f4cbb53f4936680dd75325feda17ce74b77567d.tar.gz | |
Remove unused fields
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]; |
