From bdc6668a62ee4ea4a16c31daeba97dbc711e84f3 Mon Sep 17 00:00:00 2001 From: Csantucci Date: Sat, 12 Nov 2022 12:19:16 +0100 Subject: [PATCH] Change special character as suggested by James Ross --- Source/Documentation/Manual/physics.rst | 2 +- Source/Orts.Parsers.Msts/STFReader.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Documentation/Manual/physics.rst b/Source/Documentation/Manual/physics.rst index fee70bc8e0..56f571d985 100644 --- a/Source/Documentation/Manual/physics.rst +++ b/Source/Documentation/Manual/physics.rst @@ -4436,7 +4436,7 @@ statement. So, in the case of the example above, instead of:: the following can be written:: - include ( ../##SameName## ) + include ( ../>>SameName<< ) This way all additional .wag or .eng files referring to similar trainsets would have exactly the same contents, drastically reducing editing time. diff --git a/Source/Orts.Parsers.Msts/STFReader.cs b/Source/Orts.Parsers.Msts/STFReader.cs index 7dfb78092e..9257ace772 100644 --- a/Source/Orts.Parsers.Msts/STFReader.cs +++ b/Source/Orts.Parsers.Msts/STFReader.cs @@ -1828,7 +1828,7 @@ private string ReadItem(bool skip_mode, bool string_mode) SkipRestOfBlock(); } var purefilename = Path.GetFileName(filename).ToLower(); - if (purefilename == "##samename##") + if (purefilename == ">>samename<<") filename = Path.GetDirectoryName(filename) + @"\" + Path.GetFileName(FileName); var includeFileName = Path.GetDirectoryName(FileName) + @"\" + filename; if (!File.Exists(includeFileName))