unitstrategy.cpp: Use std::string::c_str
Former-commit-id: 4728473b0d6e7cffcdc44c51632d2677efb8b70b Former-commit-id: 25db904cdebe501c4db16eaf2bf963631e54e6a4
This commit is contained in:
parent
9af00aa398
commit
70acd3d39d
1 changed files with 4 additions and 4 deletions
|
@ -117,10 +117,10 @@ bool TSimpleStrategy::IsPitFree()
|
||||||
bool IsFree = RtTeamIsPitFree(oDriver->TeamIndex());
|
bool IsFree = RtTeamIsPitFree(oDriver->TeamIndex());
|
||||||
if (IsFree)
|
if (IsFree)
|
||||||
LogSimplix.debug("#%s pit is free (%d)\n",
|
LogSimplix.debug("#%s pit is free (%d)\n",
|
||||||
oDriver->GetDriverName(),oDriver->TeamIndex());
|
oDriver->GetDriverName().c_str(),oDriver->TeamIndex());
|
||||||
else
|
else
|
||||||
LogSimplix.debug("#%s pit is locked (%d)\n",
|
LogSimplix.debug("#%s pit is locked (%d)\n",
|
||||||
oDriver->GetDriverName(),oDriver->TeamIndex());
|
oDriver->GetDriverName().c_str(),oDriver->TeamIndex());
|
||||||
return IsFree;
|
return IsFree;
|
||||||
}
|
}
|
||||||
//==========================================================================*
|
//==========================================================================*
|
||||||
|
@ -150,7 +150,7 @@ bool TSimpleStrategy::NeedPitStop()
|
||||||
if (MIN(TdF,TdR) < 1.5 * oDegradationPerLap) // tyres become critical
|
if (MIN(TdF,TdR) < 1.5 * oDegradationPerLap) // tyres become critical
|
||||||
{
|
{
|
||||||
LogSimplix.warning("Tyre condition D: %.1f%% F: %.1f%% R: %.1f%% (%s)\n",
|
LogSimplix.warning("Tyre condition D: %.1f%% F: %.1f%% R: %.1f%% (%s)\n",
|
||||||
oDegradationPerLap,TdF,TdR,oDriver->GetDriverName());
|
oDegradationPerLap,TdF,TdR,oDriver->GetDriverName().c_str());
|
||||||
|
|
||||||
if ((TdF < 1.1 * oDegradationPerLap)
|
if ((TdF < 1.1 * oDegradationPerLap)
|
||||||
|| (TdR < 1.1 * oDegradationPerLap))
|
|| (TdR < 1.1 * oDegradationPerLap))
|
||||||
|
@ -537,7 +537,7 @@ void TSimpleStrategy::CheckPitState(float /*PitScaleBrake*/)
|
||||||
&& ((Major > NEEDED_MAJOR_VERSION)
|
&& ((Major > NEEDED_MAJOR_VERSION)
|
||||||
|| ((Major = NEEDED_MAJOR_VERSION) && (Minor >= NEEDED_MINOR_VERSION))))
|
|| ((Major = NEEDED_MAJOR_VERSION) && (Minor >= NEEDED_MINOR_VERSION))))
|
||||||
{
|
{
|
||||||
LogSimplix.debug("#Pitting issues %s\n",oDriver->GetDriverName());
|
LogSimplix.debug("#Pitting issues %s\n",oDriver->GetDriverName().c_str());
|
||||||
LogSimplix.debug("#StillToGo : %.2f m\n",TeamDriver->StillToGo);
|
LogSimplix.debug("#StillToGo : %.2f m\n",TeamDriver->StillToGo);
|
||||||
LogSimplix.debug("#MoreOffset: %.2f m\n",TeamDriver->MoreOffset);
|
LogSimplix.debug("#MoreOffset: %.2f m\n",TeamDriver->MoreOffset);
|
||||||
LogSimplix.debug("#TooFastBy : %.2f m/s\n",TeamDriver->TooFastBy);
|
LogSimplix.debug("#TooFastBy : %.2f m/s\n",TeamDriver->TooFastBy);
|
||||||
|
|
Loading…
Reference in a new issue