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
This commit is contained in:
parent
4ff31ab107
commit
cf38ca4e26
1 changed files with 2 additions and 11 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue