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:
iobyte 2022-08-14 22:36:19 +00:00
parent 05f7a3af74
commit 4048951386

View file

@ -1978,6 +1978,11 @@ int InitScene(tTrack *Track, void *TrackHandle, bool bump, bool raceline, bool b
else
{
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);
if (!curTexLink)
{
@ -2304,6 +2309,11 @@ int InitScene(tTrack *Track, void *TrackHandle, bool bump, bool raceline, bool b
else
{
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);
if (!curTexLink)
{