mirror of https://github.com/ZDoom/gzdoom-gles.git
Camera paths would hold indeterminate of the level
This commit is contained in:
parent
cbb066f1fb
commit
5164b78c31
|
@ -301,14 +301,14 @@ void APathFollower::Tick ()
|
||||||
bJustStepped = false;
|
bJustStepped = false;
|
||||||
if (CurrNode->args[2])
|
if (CurrNode->args[2])
|
||||||
{
|
{
|
||||||
HoldTime = gametic + CurrNode->args[2] * TICRATE / 8;
|
HoldTime = level.time + CurrNode->args[2] * TICRATE / 8;
|
||||||
x = CurrNode->x;
|
x = CurrNode->x;
|
||||||
y = CurrNode->y;
|
y = CurrNode->y;
|
||||||
z = CurrNode->z;
|
z = CurrNode->z;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (HoldTime > gametic)
|
if (HoldTime > level.time)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Splines must have a previous node.
|
// Splines must have a previous node.
|
||||||
|
|
Loading…
Reference in New Issue