Skip to content

Commit 0292f16

Browse files
committed
Change again special character to recognize default include file, to avoid crash
1 parent bdc6668 commit 0292f16

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Source/Documentation/Manual/physics.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4436,7 +4436,7 @@ statement. So, in the case of the example above, instead of::
44364436

44374437
the following can be written::
44384438

4439-
include ( ../>>SameName<< )
4439+
include ( ../[[SameName]] )
44404440
44414441
This way all additional .wag or .eng files referring to similar trainsets would
44424442
have exactly the same contents, drastically reducing editing time.

Source/Orts.Parsers.Msts/STFReader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1828,7 +1828,7 @@ private string ReadItem(bool skip_mode, bool string_mode)
18281828
SkipRestOfBlock();
18291829
}
18301830
var purefilename = Path.GetFileName(filename).ToLower();
1831-
if (purefilename == ">>samename<<")
1831+
if (purefilename == "[[samename]]")
18321832
filename = Path.GetDirectoryName(filename) + @"\" + Path.GetFileName(FileName);
18331833
var includeFileName = Path.GetDirectoryName(FileName) + @"\" + filename;
18341834
if (!File.Exists(includeFileName))

0 commit comments

Comments
 (0)