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

normalize slashes in timetable loading (for linux)

This commit is contained in:
milek7
2017-08-19 19:33:50 +02:00
parent 3a004a0912
commit 417d4a7e9e

View File

@@ -214,6 +214,7 @@ bool TTrainParameters::LoadTTfile(std::string scnpath, int iPlus, double vmax)
ConversionError = 666;
vActual = -1;
s = scnpath + TrainName + ".txt";
std::replace(s.begin(), s.end(), '\\', '/');
// Ra 2014-09: ustalić zasady wyznaczenia pierwotnego pliku przy przesuniętych rozkładach
// (kolejny pociąg dostaje numer +2)
fin.open(s.c_str()); // otwieranie pliku