- fixed copy/paste coordinate screwup in moving camera code.

This commit is contained in:
Christoph Oelckers 2016-03-27 14:11:46 +02:00
parent 23d311dd04
commit 6ab95da2fc

View file

@ -374,8 +374,8 @@ bool APathFollower::Interpolate ()
if (CurrNode->Next->Next==NULL) return false; if (CurrNode->Next->Next==NULL) return false;
newpos.X = Splerp(PrevNode->X(), CurrNode->X(), CurrNode->Next->X(), CurrNode->Next->Next->X()); newpos.X = Splerp(PrevNode->X(), CurrNode->X(), CurrNode->Next->X(), CurrNode->Next->Next->X());
newpos.X = Splerp(PrevNode->Y(), CurrNode->Y(), CurrNode->Next->Y(), CurrNode->Next->Next->Y()); newpos.Y = Splerp(PrevNode->Y(), CurrNode->Y(), CurrNode->Next->Y(), CurrNode->Next->Next->Y());
newpos.X = Splerp(PrevNode->Z(), CurrNode->Z(), CurrNode->Next->Z(), CurrNode->Next->Next->Z()); newpos.Z = Splerp(PrevNode->Z(), CurrNode->Z(), CurrNode->Next->Z(), CurrNode->Next->Next->Z());
} }
SetXYZ(newpos); SetXYZ(newpos);
LinkToWorld (); LinkToWorld ();