Fix flat alignment on Kart maps

This commit is contained in:
GenericHeroGuy 2025-03-28 14:17:56 +01:00
parent d748cf360e
commit 486bb208c2
2 changed files with 3 additions and 2 deletions

View file

@ -4977,7 +4977,7 @@ static void P_ConvertBinaryLinedefTypes(void)
fixed_t yoffs = sides[lines[i].sidenum[0]].rowoffset;
//If no tag is given, apply to front sector
if (lines[i].args[0] == 0)
if (mapnamespace != MNS_SRB2KART && lines[i].args[0] == 0)
P_ApplyFlatAlignment(lines[i].frontsector, flatangle, xoffs, yoffs, lines[i].args[1] != TMP_CEILING, lines[i].args[1] != TMP_FLOOR);
else
{

View file

@ -7004,7 +7004,8 @@ void P_SpawnSpecials(boolean fromnetsave)
fixed_t yoffs = lines[i].v1->y;
//If no tag is given, apply to front sector
if (lines[i].args[0] == 0)
// unless this is kart, in which case congrats, you've aligned every sector without a tag!
if (mapnamespace != MNS_SRB2KART && lines[i].args[0] == 0)
P_ApplyFlatAlignment(lines[i].frontsector, flatangle, xoffs, yoffs, lines[i].args[1] != TMP_CEILING, lines[i].args[1] != TMP_FLOOR);
else
{