From cf38ca4e262d82ee81ebf519f98a401d084bfc17 Mon Sep 17 00:00:00 2001 From: mungewell Date: Fri, 5 Oct 2012 02:58:37 +0000 Subject: [PATCH] Bug #589 Remove unnessecary code The mirror will not 'span splits' so this is not required git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4979 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 2e029e799f6f373961d03c8c636a94d2c64315e7 Former-commit-id: 12b394dbb50b3cf933be5dfc52d605cc6666aa87 --- src/modules/graphic/ssggraph/grcam.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/modules/graphic/ssggraph/grcam.cpp b/src/modules/graphic/ssggraph/grcam.cpp index 51c88d03a..f09d2a405 100644 --- a/src/modules/graphic/ssggraph/grcam.cpp +++ b/src/modules/graphic/ssggraph/grcam.cpp @@ -526,17 +526,8 @@ void cGrCarCamMirror::update(tCarElt *car, tSituation * /* s */) eye[1] = P[1]; eye[2] = P[2]; - float offset = 0; - - // Compute offset angle and bezel compensation) - if (spansplit && viewOffset) { - offset += (viewOffset - 10 + (int((viewOffset - 10) * 2) * (bezelcomp - 100)/200)) * - atan(screen->getViewRatio() / spanaspect * tan(spanfovy * M_PI / 360.0)) * 2; - fovy = spanfovy; - } - - p[0] = car->_bonnetPos_x + 30.0 * cos(offset); - p[1] = car->_bonnetPos_y + 30.0 * sin(offset); + p[0] = car->_bonnetPos_x + 30.0; + p[1] = car->_bonnetPos_y; p[2] = car->_bonnetPos_z; sgXformPnt3(p, car->_posMat);