mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Merge branch 'copy-slope-thing-spawning-backport' into 'master'
Copy slope thing spawning fix backport See merge request KartKrew/Kart!160
This commit is contained in:
commit
ad034a083b
2 changed files with 14 additions and 13 deletions
|
|
@ -625,8 +625,7 @@ void P_ResetDynamicSlopes(void) {
|
||||||
slopelist = NULL;
|
slopelist = NULL;
|
||||||
slopecount = 0;
|
slopecount = 0;
|
||||||
|
|
||||||
// We'll handle copy slopes later, after all the tag lists have been made.
|
/// Generates line special-defined slopes.
|
||||||
// Yes, this means copied slopes won't affect things' spawning heights. Too bad for you.
|
|
||||||
for (i = 0; i < numlines; i++)
|
for (i = 0; i < numlines; i++)
|
||||||
{
|
{
|
||||||
switch (lines[i].special)
|
switch (lines[i].special)
|
||||||
|
|
@ -725,11 +724,21 @@ void P_ResetDynamicSlopes(void) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Copies slopes from tagged sectors via line specials.
|
||||||
|
/// \note Doesn't actually copy, but instead they share the same pointers.
|
||||||
|
for (i = 0; i < numlines; i++)
|
||||||
|
switch (lines[i].special)
|
||||||
|
{
|
||||||
|
case 720:
|
||||||
|
case 721:
|
||||||
|
case 722:
|
||||||
|
P_CopySectorSlope(&lines[i]);
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// ============================================================================
|
// ============================================================================
|
||||||
//
|
//
|
||||||
// Various utilities related to slopes
|
// Various utilities related to slopes
|
||||||
|
|
|
||||||
|
|
@ -6693,14 +6693,6 @@ void P_SpawnSpecials(INT32 fromnetsave)
|
||||||
sectors[s].midmap = lines[i].frontsector->midmap;
|
sectors[s].midmap = lines[i].frontsector->midmap;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
#ifdef ESLOPE // Slope copy specials. Handled here for sanity.
|
|
||||||
case 720:
|
|
||||||
case 721:
|
|
||||||
case 722:
|
|
||||||
P_CopySectorSlope(&lines[i]);
|
|
||||||
break;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue