From 486bb208c27f16bcfb6eb5c08de0d3c0980bb0e4 Mon Sep 17 00:00:00 2001 From: GenericHeroGuy Date: Fri, 28 Mar 2025 14:17:56 +0100 Subject: [PATCH] Fix flat alignment on Kart maps --- src/p_setup.c | 2 +- src/p_spec.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/p_setup.c b/src/p_setup.c index 9977e7bf2..e363f74b2 100644 --- a/src/p_setup.c +++ b/src/p_setup.c @@ -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 { diff --git a/src/p_spec.c b/src/p_spec.c index f4bce7b19..5e8757ba4 100644 --- a/src/p_spec.c +++ b/src/p_spec.c @@ -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 {