Server: Prevent the engine from handling spawnflags or else it'll remove

entities depending on mode/difficulty
This commit is contained in:
Marco Cawthorne 2021-06-16 11:52:36 +02:00
parent ff39eda49d
commit ef66642c7f
1 changed files with 10 additions and 1 deletions

View File

@ -744,4 +744,13 @@ SV_PerformSave(float fh, float numents)
}
}
fclose(fh);
};
}
void
CheckSpawn(void() spawnfunc)
{
if (spawnfunc)
spawnfunc();
else
remove();
}