Skip to content

Commit 16c7c0f

Browse files
authored
Merge pull request #782 from Roeterdink/NoPhysicsUpdateForAIStatic
Nu full physics update is required for trains in state AIStatic
2 parents a8616f6 + 23c41b5 commit 16c7c0f

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)