mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
parent
30f60585be
commit
70e55a0911
3 changed files with 9 additions and 25 deletions
|
|
@ -4369,8 +4369,6 @@ boolean P_LoadLevel(boolean fromnetsave, boolean reloadinggamestate)
|
|||
|
||||
P_SpawnSlopes(fromnetsave);
|
||||
|
||||
P_SpawnSpecialsAfterSlopes();
|
||||
|
||||
P_SpawnMapThings(!fromnetsave);
|
||||
|
||||
for (numcoopstarts = 0; numcoopstarts < MAXPLAYERS; numcoopstarts++)
|
||||
|
|
|
|||
31
src/p_spec.c
31
src/p_spec.c
|
|
@ -6955,6 +6955,12 @@ void P_SpawnSpecialsThatRequireObjects(boolean fromnetsave)
|
|||
|
||||
for (i = 0; i < numlines; i++)
|
||||
{
|
||||
if (P_IsLineDisabled(&lines[i]))
|
||||
{
|
||||
/* remove the special so it can't even be found during the level */
|
||||
lines[i].special = 0;
|
||||
}
|
||||
|
||||
switch (lines[i].special)
|
||||
{
|
||||
case 30: // Polyobj_Flag
|
||||
|
|
@ -6968,29 +6974,7 @@ void P_SpawnSpecialsThatRequireObjects(boolean fromnetsave)
|
|||
case 32: // Polyobj_RotDisplace
|
||||
PolyRotDisplace(&lines[i]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!fromnetsave)
|
||||
P_RunLevelLoadExecutors();
|
||||
}
|
||||
|
||||
/** Fuck ML_NONET
|
||||
*/
|
||||
void P_SpawnSpecialsAfterSlopes(void)
|
||||
{
|
||||
size_t i;
|
||||
|
||||
for (i = 0; i < numlines; ++i)
|
||||
{
|
||||
if (P_IsLineDisabled(&lines[i]))
|
||||
{
|
||||
/* remove the special so it can't even be found during the level */
|
||||
lines[i].special = 0;
|
||||
}
|
||||
|
||||
switch (lines[i].special)
|
||||
{
|
||||
case 80: // Raise tagged things by type to this FOF
|
||||
{
|
||||
mtag_t tag = Tag_FGet(&lines[i].tags);
|
||||
|
|
@ -7003,6 +6987,9 @@ void P_SpawnSpecialsAfterSlopes(void)
|
|||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (!fromnetsave)
|
||||
P_RunLevelLoadExecutors();
|
||||
}
|
||||
|
||||
/** Adds 3Dfloors as appropriate based on a common control linedef.
|
||||
|
|
|
|||
|
|
@ -42,7 +42,6 @@ void P_SetupLevelFlatAnims(void);
|
|||
// at map load
|
||||
void P_InitSpecials(void);
|
||||
void P_SpawnSpecials(boolean fromnetsave);
|
||||
void P_SpawnSpecialsAfterSlopes(void);
|
||||
void P_SpawnSpecialsThatRequireObjects(boolean fromnetsave);
|
||||
|
||||
// every tic
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue