fix pit buildings end when different from pit end for track type 4
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8151 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 3b0e7c1073e1f867943fb59f5d827c9d181b0e31 Former-commit-id: e9ec34ce9a370f963fbf671360c122604c8526a7
This commit is contained in:
parent
82049a54e2
commit
6fc5cfc4e7
1 changed files with 1 additions and 1 deletions
|
@ -986,7 +986,7 @@ static void AddPitDoors(tTrack *theTrack, void *TrackHandle, bool found) {
|
|||
pits->nPitSeg = (int)((theTrack->length - pitBuildingsStart->lgfromstart
|
||||
+ pitBuildingsEnd->lgfromstart + pitBuildingsEnd->length + pits->len / 2.0) / pits->len);
|
||||
} else {
|
||||
pits->nPitSeg = (int)((pitEnd->lgfromstart + pitBuildingsEnd->length
|
||||
pits->nPitSeg = (int)((pitBuildingsEnd->lgfromstart + pitBuildingsEnd->length
|
||||
- pitBuildingsStart->lgfromstart + pits->len / 2.0) / pits->len);
|
||||
}
|
||||
pits->nMaxPits = MIN(pits->nPitSeg,(int)GfParmGetNum(TrackHandle, path2, TRK_ATT_MAX_PITS, (char*)NULL, (tdble) pits->nPitSeg));
|
||||
|
|
Loading…
Reference in a new issue