Commit c4664551 authored by Christopher Lees's avatar Christopher Lees

Change: Ignore harmless error from RouteBuilder generated content

Reduces log spam a little.
parent a97c74f6
......@@ -3003,7 +3003,11 @@ namespace OpenBve {
double cant = 0.0;
if (Arguments.Length >= 5 && Arguments[4].Length > 0 && !NumberFormats.TryParseDoubleVb6(Arguments[4], out cant))
{
Interface.AddMessage(MessageType.Error, false, "CantInMillimeters is invalid in " + Command + " at line " + Expressions[j].Line.ToString(Culture) + ", column " + Expressions[j].Column.ToString(Culture) + " in file " + Expressions[j].File);
if (Arguments[4] != "id 0") //RouteBuilder inserts these, harmless so let's ignore
{
Interface.AddMessage(MessageType.Error, false, "CantInMillimeters is invalid in " + Command + " at line " + Expressions[j].Line.ToString(Culture) + ", column " + Expressions[j].Column.ToString(Culture) + " in file " + Expressions[j].File);
}
cant = 0.0;
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment