Skip to content

Commit 4325f35

Browse files
committed
Merge branch 'master' into Freightanims-for-3DCabs
2 parents 254c39d + 373b3aa commit 4325f35

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Build.cmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ IF "%Mode%" == "Stable" (
197197

198198
REM Create binary and source zips.
199199
CALL :delete "OpenRails-%Mode%*.zip" || GOTO :error
200-
PUSHD "Program" && 7za.exe a -r -tzip "..\OpenRails-%Mode%.zip" . && POPD || GOTO :error
200+
PUSHD "Program" && 7za.exe a -r -tzip -x^^!*.xml "..\OpenRails-%Mode%.zip" . && POPD || GOTO :error
201201
7za.exe a -r -tzip -x^^!.* -x^^!obj -x^^!lib -x^^!_build -x^^!*.bak -x^^!Website "OpenRails-%Mode%-Source.zip" "Source" || GOTO :error
202202

203203
ENDLOCAL

Source/Orts.Simulation/Simulation/Physics/Train.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15521,14 +15521,14 @@ public TCRoutePath(AIPath aiPath, int orgDir, float thisTrainLength, Signals org
1552115521
newDir = junctionNode.TrPins[firstpin].Direction;
1552215522
}
1552315523
}
15524-
15525-
currentDir = newDir;
15526-
1552715524
//
1552815525
// find next junction path node
1552915526
//
15530-
1553115527
nextPathNode = thisPathNode.NextMainNode;
15528+
15529+
// if we were on last main node, direction was already set
15530+
if (nextPathNode != null) currentDir = newDir;
15531+
1553215532
}
1553315533
else
1553415534
{

0 commit comments

Comments
 (0)