mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-29 05:41:02 +00:00
gr_correcttricks fix: don't check if top/bottom textures are missing for sloped sectors, just ignore and cancel the hack
This fixes GFZ2's mysterious flying flats at the ramp to the big room
This commit is contained in:
parent
67a2922558
commit
787d5b598d
1 changed files with 16 additions and 0 deletions
|
@ -507,6 +507,14 @@ static boolean areToptexturesMissing(sector_t *thisSector)
|
||||||
if (!frontSector || !backSector)
|
if (!frontSector || !backSector)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
#ifdef ESLOPE
|
||||||
|
if (frontSector->c_slope || backSector->c_slope) // the slope's height can be completely different from original ceiling height
|
||||||
|
{
|
||||||
|
nomiss++;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
sider = &sides[thisElem->line->sidenum[0]];
|
sider = &sides[thisElem->line->sidenum[0]];
|
||||||
sidel = &sides[thisElem->line->sidenum[1]];
|
sidel = &sides[thisElem->line->sidenum[1]];
|
||||||
|
|
||||||
|
@ -555,6 +563,14 @@ static boolean areBottomtexturesMissing(sector_t *thisSector)
|
||||||
if (frontSector == NULL || backSector == NULL)
|
if (frontSector == NULL || backSector == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
#ifdef ESLOPE
|
||||||
|
if (frontSector->f_slope || backSector->f_slope) // the slope's height can be completely different from original floor height
|
||||||
|
{
|
||||||
|
nomiss++;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
sider = &sides[thisElem->line->sidenum[0]];
|
sider = &sides[thisElem->line->sidenum[0]];
|
||||||
sidel = &sides[thisElem->line->sidenum[1]];
|
sidel = &sides[thisElem->line->sidenum[1]];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue