mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
Dalsze poprawki do AnsiString w różnych plikach.
This commit is contained in:
22
Driver.cpp
22
Driver.cpp
@@ -828,9 +828,9 @@ TCommandType TController::TableUpdate(double &fVelDes, double &fDist, double &fN
|
||||
{ // zaliczamy posterunek w pewnej odleg<65>o<EFBFBD>ci przed (cho<68> W4 nie zas<61>ania
|
||||
// ju<6A> semafora)
|
||||
#if LOGSTOPS
|
||||
WriteLog(pVehicle->asName + " as " + TrainParams->TrainName.c_str() + ": at " +
|
||||
AnsiString(GlobalTime->hh) + ":" + AnsiString(GlobalTime->mm) +
|
||||
" skipped " + AnsiString(asNextStop.c_str())); // informacja
|
||||
WriteLog(pVehicle->asName + " as " + TrainParams->TrainName + ": at " +
|
||||
to_string(GlobalTime->hh) + ":" + to_string(GlobalTime->mm) +
|
||||
" skipped " + asNextStop.); // informacja
|
||||
#endif
|
||||
fLastStopExpDist = mvOccupied->DistCounter + 0.250 +
|
||||
0.001 * fLength; // przy jakim dystansie (stanie
|
||||
@@ -999,10 +999,10 @@ TCommandType TController::TableUpdate(double &fVelDes, double &fDist, double &fN
|
||||
asNextStop = TrainParams->NextStop(); // pobranie kolejnego miejsca zatrzymania
|
||||
// TableClear(); //aby od nowa sprawdzi<7A>o W4 z inn<6E> nazw<7A> ju<6A> - to nie jest dobry pomys<79>
|
||||
#if LOGSTOPS
|
||||
WriteLog(pVehicle->asName + " as " + AnsiString(TrainParams->TrainName.c_str()) +
|
||||
": at " + AnsiString(GlobalTime->hh) + ":" +
|
||||
AnsiString(GlobalTime->mm) + " next " +
|
||||
AnsiString(asNextStop.c_str())); // informacja
|
||||
WriteLog(pVehicle->asName + " as " + TrainParams->TrainName +
|
||||
": at " + to_string(GlobalTime->hh) + ":" +
|
||||
to_string(GlobalTime->mm) + " next " +
|
||||
asNextStop); // informacja
|
||||
#endif
|
||||
if (int(floor(sSpeedTable[i].evEvent->ValueGet(1))) & 1)
|
||||
iDrivigFlags |= moveStopHere; // nie podje<6A>d<EFBFBD>a<EFBFBD> do semafora,
|
||||
@@ -1026,9 +1026,9 @@ TCommandType TController::TableUpdate(double &fVelDes, double &fDist, double &fN
|
||||
else
|
||||
{ // je<6A>li dojechali<6C>my do ko<6B>ca rozk<7A>adu
|
||||
#if LOGSTOPS
|
||||
WriteLog(pVehicle->asName + " as " + AnsiString(TrainParams->TrainName.c_str()) +
|
||||
": at " + AnsiString(GlobalTime->hh) + ":" +
|
||||
AnsiString(GlobalTime->mm) +
|
||||
WriteLog(pVehicle->asName + " as " + TrainParams->TrainName) +
|
||||
": at " + to_string(GlobalTime->hh) + ":" +
|
||||
to_string(GlobalTime->mm) +
|
||||
" end of route."); // informacja
|
||||
#endif
|
||||
asNextStop = TrainParams->NextStop(); // informacja o ko<6B>cu trasy
|
||||
@@ -1486,7 +1486,7 @@ TController::TController(bool AI, TDynamicObject *NewControll, bool InitPsyche,
|
||||
if (WriteLogFlag)
|
||||
{
|
||||
mkdir("physicslog\\");
|
||||
LogFile.open(AnsiString("physicslog\\" + VehicleName + ".dat").c_str(),
|
||||
LogFile.open("physicslog\\" + VehicleName.c_str() + ".dat",
|
||||
std::ios::in | std::ios::out | std::ios::trunc);
|
||||
#if LOGPRESS == 0
|
||||
LogFile << AnsiString(" Time [s] Velocity [m/s] Acceleration [m/ss] Coupler.Dist[m] "
|
||||
|
||||
Reference in New Issue
Block a user