Remove hardcoded Quake difficulty spawnflags

This commit is contained in:
cypress 2023-12-16 12:33:01 -05:00 committed by GitHub
parent 92a22d99df
commit 0e57df6eaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 19 deletions

View File

@ -961,25 +961,6 @@ void ED_LoadFromFile (char *data)
ent = ED_Alloc (); ent = ED_Alloc ();
data = ED_ParseEdict (data, ent); data = ED_ParseEdict (data, ent);
// remove things from different skill levels or deathmatch
if (deathmatch.value)
{
if (((int)ent->v.spawnflags & SPAWNFLAG_NOT_DEATHMATCH))
{
ED_Free (ent);
inhibit++;
continue;
}
}
else if ((current_skill == 0 && ((int)ent->v.spawnflags & SPAWNFLAG_NOT_EASY))
|| (current_skill == 1 && ((int)ent->v.spawnflags & SPAWNFLAG_NOT_MEDIUM))
|| (current_skill >= 2 && ((int)ent->v.spawnflags & SPAWNFLAG_NOT_HARD)) )
{
ED_Free (ent);
inhibit++;
continue;
}
// //
// immediately call spawn function // immediately call spawn function
// //