Skip to content

Commit

Permalink
Remove hardcoded Quake difficulty spawnflags
Browse files Browse the repository at this point in the history
  • Loading branch information
MotoLegacy committed Dec 16, 2023
1 parent c96644e commit 6399b49
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions source/pr_edict.c
Original file line number Diff line number Diff line change
Expand Up @@ -974,25 +974,6 @@ void ED_LoadFromFile (char *data)
ent = ED_Alloc ();
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
//
Expand Down

0 comments on commit 6399b49

Please sign in to comment.