mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 02:29:17 +02:00
Remove starts with statement
This commit is contained in:
@@ -11440,11 +11440,7 @@ void TMoverParameters::LoadFIZ_PowerParamsDecode( TPowerParameters &Powerparamet
|
|||||||
extract_value(PantType, "PantType", Line, "");
|
extract_value(PantType, "PantType", Line, "");
|
||||||
if (PantType == "AKP_4E")
|
if (PantType == "AKP_4E")
|
||||||
collectorparameters.PantographType = TPantType::AKP_4E;
|
collectorparameters.PantographType = TPantType::AKP_4E;
|
||||||
#ifdef _WIN32
|
if (PantType.size() >= 3 && PantType.compare(0, 3, "DSA") == 0)
|
||||||
if (PantType._Starts_with("DSA")) // zakladam ze wszystkie pantografy DSA sa takie same
|
|
||||||
#elif __linux__
|
|
||||||
if (PantType.starts_with("DSA"))
|
|
||||||
#endif
|
|
||||||
collectorparameters.PantographType = TPantType::DSAx;
|
collectorparameters.PantographType = TPantType::DSAx;
|
||||||
if (PantType == "EC160" || PantType == "EC200")
|
if (PantType == "EC160" || PantType == "EC200")
|
||||||
collectorparameters.PantographType = TPantType::EC160_200;
|
collectorparameters.PantographType = TPantType::EC160_200;
|
||||||
|
|||||||
Reference in New Issue
Block a user