Merge branch 'fix-dynslope-sectorspecial' into 'master'

Fix inconsistent sector special detection on dynslopes

See merge request KartKrew/RingRacers!133
This commit is contained in:
Eidolon 2025-08-20 23:35:46 +00:00
commit 6d04f2b83f
3 changed files with 8 additions and 4 deletions

View file

@ -453,7 +453,7 @@ static void M_DrawTickStats(void)
regularcount++;
}
}
else if (i == THINK_DYNSLOPE)
else if (i == THINK_DYNSLOPE || i == THINK_DYNSLOPEDEMO)
dynslopethcount++;
else if (i == THINK_PRECIP)
precipcount++;

View file

@ -64,10 +64,12 @@ extern "C" {
typedef enum
{
THINK_DYNSLOPE,
THINK_POLYOBJ,
THINK_MAIN,
THINK_MOBJ,
THINK_DYNSLOPE,
// This is kept for backwards compat with old demos.
THINK_DYNSLOPEDEMO,
// Lists after this may exist but they do not call an
// action in P_RunThinkers

View file

@ -305,7 +305,8 @@ static inline void P_AddDynLineSlopeThinker (pslope_t* slope, dynplanetype_t typ
th->type = type;
th->sourceline = sourceline;
th->extent = extent;
P_AddThinker(THINK_DYNSLOPE, &th->thinker);
// Handle old demos as well.
P_AddThinker(/*G_CompatLevel(0x000D) ? THINK_DYNSLOPEDEMO :*/ THINK_DYNSLOPE, &th->thinker);
// interpolation
R_CreateInterpolator_DynSlope(&th->thinker, slope);
@ -333,7 +334,8 @@ static inline void P_AddDynVertexSlopeThinker (pslope_t* slope, const INT16 tags
if (lines[l].args[0])
th->relative |= 1<<i;
}
P_AddThinker(THINK_DYNSLOPE, &th->thinker);
// Handle old demos as well.
P_AddThinker(/*G_CompatLevel(0x000D) ? THINK_DYNSLOPEDEMO :*/ THINK_DYNSLOPE, &th->thinker);
}
/// Create a new slope and add it to the slope list.