16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 03:09:18 +02:00

completed .fiz file loader; minor parser enhancement, wheel slip and schedule loader bug fixes.

This commit is contained in:
tmj-fstate
2017-02-08 03:13:04 +01:00
parent fdb95d3b63
commit adeaa5fc79
9 changed files with 1460 additions and 1651 deletions

View File

@@ -401,11 +401,14 @@ bool TTrainParameters::LoadTTfile(std::string scnpath, int iPlus, double vmax)
}
while (s.find("|") == std::string::npos)
fin >> s;
fin >> record->StationWare;
do
{
// stationware. added fix for empty entry
fin >> s;
while( false == ( ( s == "1" )
|| ( s == "2" )
|| fin.bad() ) ) {
record->StationWare += s;
fin >> s;
} while (!((s == "1") || (s == "2") || fin.bad()));
}
record->TrackNo = atoi(s.c_str());
fin >> s;
if (s != "|")