Remove hardcoded Quake difficulty spawnflags

This commit is contained in:
cypress 2023-12-16 12:33:04 -05:00 committed by GitHub
parent c96644e1b0
commit 6399b49edc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -974,25 +974,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
// //