Fix viewpoint calculations on demo screen (closes #50)

This commit is contained in:
cim 2013-09-27 20:53:17 +01:00
parent 606667229c
commit 1f0345f8d2

View File

@ -3150,6 +3150,10 @@ static GLfloat sBaseMass = 0.0;
- (HPVector) viewpointPosition
{
HPVector viewpoint = position;
if (showDemoShips)
{
viewpoint = kZeroHPVector;
}
Vector offset = [self viewpointOffset];
// FIXME: this ought to be done with matrix or quaternion functions.