- Update Shadow's driver

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@6070 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: e75e35bd8470add689d466525369b63944e80e73
Former-commit-id: 816c67a32ac3a8f6ce1f21d3c2eba78e8e059cea
This commit is contained in:
torcs-ng 2015-08-12 22:12:55 +00:00
parent c91116454f
commit 0a3556496e
3 changed files with 4 additions and 5 deletions

View file

@ -497,7 +497,7 @@ void TDriver::InitTrack( tTrack* pTrack, void* pCarHandle, void** ppCarParmHandl
LogSHADOW.debug("Load track settings ....\n"); LogSHADOW.debug("Load track settings ....\n");
// get the private parameters now. // get the private parameters now.
m_ScaleMuRain = GfParmGetNum(hCarParm, SECT_PRIV, PRV_RAIN_MU, NULL, m_ScaleMuRain); m_ScaleMuRain = (double)(GfParmGetNum(hCarParm, SECT_PRIV, PRV_RAIN_MU, NULL, m_ScaleMuRain));
LogSHADOW.info("#Scale Mu Rain: %g\n", m_ScaleMuRain); LogSHADOW.info("#Scale Mu Rain: %g\n", m_ScaleMuRain);
m_cm.AERO = (int)GfParmGetNum(hCarParm, SECT_PRIV, PRV_AERO_MOD, 0, 0); m_cm.AERO = (int)GfParmGetNum(hCarParm, SECT_PRIV, PRV_AERO_MOD, 0, 0);
@ -510,8 +510,8 @@ void TDriver::InitTrack( tTrack* pTrack, void* pCarHandle, void** ppCarParmHandl
m_cm.KZ_SCALE = GfParmGetNum(hCarParm, SECT_PRIV, PRV_KZ_SCALE, NULL, 0.43f); m_cm.KZ_SCALE = GfParmGetNum(hCarParm, SECT_PRIV, PRV_KZ_SCALE, NULL, 0.43f);
m_cm.BUMP_FACTOR = GfParmGetNum(hCarParm, SECT_PRIV, PRV_BUMP_FACTOR, NULL, 1.0); m_cm.BUMP_FACTOR = GfParmGetNum(hCarParm, SECT_PRIV, PRV_BUMP_FACTOR, NULL, 1.0);
m_cm.NEEDSINLONG = GfParmGetNum(hCarParm, SECT_PRIV, PRV_NEED_SIN, NULL, 0); m_cm.NEEDSINLONG = (bool)(GfParmGetNum(hCarParm, SECT_PRIV, PRV_NEED_SIN, NULL, 0));
m_cm.USEDACCEXIT = GfParmGetNum(hCarParm, SECT_PRIV, PRV_USED_ACC, NULL, 0); m_cm.USEDACCEXIT = (bool)(GfParmGetNum(hCarParm, SECT_PRIV, PRV_USED_ACC, NULL, 0));
m_cm.BRAKESCALE = GfParmGetNum(hCarParm, SECT_PRIV, PRV_BRAKESCALE, NULL, 1.0); m_cm.BRAKESCALE = GfParmGetNum(hCarParm, SECT_PRIV, PRV_BRAKESCALE, NULL, 1.0);
FACTORS.RemoveAll(); FACTORS.RemoveAll();

View file

@ -431,7 +431,6 @@ private:
double m_FuelNeeded; double m_FuelNeeded;
double m_RepairNeeded; double m_RepairNeeded;
//LinearAttractor m_avoidX; //LinearAttractor m_avoidX;
//LinearAttractor m_avoidY; //LinearAttractor m_avoidY;

View file

@ -54,7 +54,7 @@ bool Span::Overlaps( const Span& span ) const
double newA = MX(a, span.a); double newA = MX(a, span.a);
double newB = MN(b, span.b); double newB = MN(b, span.b);
return a < b; return newA < newB;
} }
bool Span::Contains( const Span& span ) const bool Span::Contains( const Span& span ) const