Run line 80 (raise things to FOF) after things spawn

Blame 3cad7398f0
This commit is contained in:
James R 2022-06-07 00:56:56 -07:00
parent 30f60585be
commit 70e55a0911
3 changed files with 9 additions and 25 deletions

View file

@ -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++)

View file

@ -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.

View file

@ -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