Skip to content

Commit 23c41b5

Browse files
committed
Nu full physics update is required for trains in state AIStatic
1 parent 3ffb9bc commit 23c41b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Orts.Simulation/Simulation/AIs/AITrain.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,7 @@ public void AIUpdate(float elapsedClockSeconds, double clockTime, bool preUpdate
684684

685685
if (MovementState == AI_MOVEMENT_STATE.AI_STATIC)
686686
{
687-
physicsUpdate(0); //required to make train visible ; set elapsed time to zero to avoid actual movement
687+
CalculatePositionOfCars(0, 0); //required to make train visible ; set elapsed time to zero to avoid actual movement
688688
}
689689
else
690690
{

0 commit comments

Comments
 (0)