trackgen: fence only has one side
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8397 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 5316a5b928ff0f238c52919ef0178fa65857b1d9 Former-commit-id: 899824e0740be70900de075aa9e6455b96cfcbbb
This commit is contained in:
parent
05f7a3af74
commit
4048951386
1 changed files with 10 additions and 0 deletions
|
@ -1978,6 +1978,11 @@ int InitScene(tTrack *Track, void *TrackHandle, bool bump, bool raceline, bool b
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
curBarrier = mseg->barrier[0];
|
curBarrier = mseg->barrier[0];
|
||||||
|
|
||||||
|
// fence only has one side (j = 0)
|
||||||
|
if (curBarrier->style == TR_FENCE && j != 0)
|
||||||
|
continue;
|
||||||
|
|
||||||
CHECKDISPLIST(curBarrier->surface->material, sname, i, 0);
|
CHECKDISPLIST(curBarrier->surface->material, sname, i, 0);
|
||||||
if (!curTexLink)
|
if (!curTexLink)
|
||||||
{
|
{
|
||||||
|
@ -2304,6 +2309,11 @@ int InitScene(tTrack *Track, void *TrackHandle, bool bump, bool raceline, bool b
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
curBarrier = mseg->barrier[1];
|
curBarrier = mseg->barrier[1];
|
||||||
|
|
||||||
|
// fence only has one side (j = 0)
|
||||||
|
if (curBarrier->style == TR_FENCE && j != 0)
|
||||||
|
continue;
|
||||||
|
|
||||||
CHECKDISPLIST(curBarrier->surface->material, sname, i, 0);
|
CHECKDISPLIST(curBarrier->surface->material, sname, i, 0);
|
||||||
if (!curTexLink)
|
if (!curTexLink)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue