Most of the code cleaup patch from Matthew (unused variables)
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7837 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: f757f8b26d0b71349dce25f54281d7707a263894 Former-commit-id: 2df226aa4b0bae15f2d1f4b5028aef0cee8d0c1d
This commit is contained in:
parent
6f6707b252
commit
6ea9cf4c33
3 changed files with 0 additions and 12 deletions
|
@ -227,10 +227,6 @@ void MyTrack::NewTrack( tTrack* pNewTrack, const vector<double>* pInnerMod, bool
|
||||||
{
|
{
|
||||||
double w = pSide->startWidth +
|
double w = pSide->startWidth +
|
||||||
(pSide->endWidth - pSide->startWidth) * t;
|
(pSide->endWidth - pSide->startWidth) * t;
|
||||||
float slope = pSide->height/pSide->width;
|
|
||||||
bool outer = ((s == TR_SIDE_LFT) && (pseg->type == TR_RGT))
|
|
||||||
|| ((s == TR_SIDE_RGT) && (pseg->type == TR_LFT));
|
|
||||||
|
|
||||||
if (pSide->style == TR_CURB)
|
if (pSide->style == TR_CURB)
|
||||||
{
|
{
|
||||||
if( s == m_sideMod.side &&
|
if( s == m_sideMod.side &&
|
||||||
|
|
|
@ -54,8 +54,6 @@ static int TexSizeIndex = 0;
|
||||||
static int QualityIndex = 0;
|
static int QualityIndex = 0;
|
||||||
static int ShadersIndex = 0;
|
static int ShadersIndex = 0;
|
||||||
|
|
||||||
static char buf[512];
|
|
||||||
|
|
||||||
// Options IO functions ===================================================================
|
// Options IO functions ===================================================================
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -334,15 +334,9 @@ InitScene(tTrack *Track, void *TrackHandle, int bump, int raceline)
|
||||||
width = Track->width;
|
width = Track->width;
|
||||||
//wi2 = width / 2.0; // Never used.
|
//wi2 = width / 2.0; // Never used.
|
||||||
|
|
||||||
double rlWidthScale = 1.0;
|
|
||||||
double rlOffset = 0.0;
|
|
||||||
|
|
||||||
if (raceline) {
|
if (raceline) {
|
||||||
double SideDistExt = GfParmGetNum(TrackHandle, TRK_SECT_MAIN, TRK_ATT_RLEXT, (char*)NULL, 2.0);
|
double SideDistExt = GfParmGetNum(TrackHandle, TRK_SECT_MAIN, TRK_ATT_RLEXT, (char*)NULL, 2.0);
|
||||||
double SideDistInt = GfParmGetNum(TrackHandle, TRK_SECT_MAIN, TRK_ATT_RLINT, (char*)NULL, 2.0);
|
double SideDistInt = GfParmGetNum(TrackHandle, TRK_SECT_MAIN, TRK_ATT_RLINT, (char*)NULL, 2.0);
|
||||||
rlWidthScale = GfParmGetNum(TrackHandle, TRK_SECT_MAIN, TRK_ATT_RLWIDTHSCALE, (char*)NULL, 1.0);
|
|
||||||
rlOffset = (1.0 - 1.0 / rlWidthScale) / 2.0;
|
|
||||||
|
|
||||||
generateRaceLine(Track, SideDistExt, SideDistInt);
|
generateRaceLine(Track, SideDistExt, SideDistInt);
|
||||||
}
|
}
|
||||||
trkpos.type = TR_LPOS_MAIN;
|
trkpos.type = TR_LPOS_MAIN;
|
||||||
|
|
Loading…
Reference in a new issue