Camera paths would hold indeterminate of the level

This commit is contained in:
Edward Richardson 2015-02-05 22:44:51 +13:00
parent cbb066f1fb
commit 5164b78c31

View file

@ -301,14 +301,14 @@ void APathFollower::Tick ()
bJustStepped = false;
if (CurrNode->args[2])
{
HoldTime = gametic + CurrNode->args[2] * TICRATE / 8;
HoldTime = level.time + CurrNode->args[2] * TICRATE / 8;
x = CurrNode->x;
y = CurrNode->y;
z = CurrNode->z;
}
}
if (HoldTime > gametic)
if (HoldTime > level.time)
return;
// Splines must have a previous node.