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:
11
mtable.cpp
11
mtable.cpp
@@ -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 != "|")
|
||||
|
||||
Reference in New Issue
Block a user