Single player support

This commit is contained in:
Anton E. Gavrilov 2000-03-19 23:53:52 +00:00
parent 934ace091f
commit cefeaf6ecf

View file

@ -1027,17 +1027,14 @@ void ED_LoadFromFile (char *data)
data = ED_ParseEdict (data, ent); data = ED_ParseEdict (data, ent);
// remove things from different skill levels or deathmatch // remove things from different skill levels or deathmatch
#ifndef QUAKEWORLD
if (deathmatch->value) if (deathmatch->value)
{ {
#endif
if (((int)ent->v.spawnflags & SPAWNFLAG_NOT_DEATHMATCH)) if (((int)ent->v.spawnflags & SPAWNFLAG_NOT_DEATHMATCH))
{ {
ED_Free (ent); ED_Free (ent);
inhibit++; inhibit++;
continue; continue;
} }
#ifndef QUAKEWORLD
} }
else if ((current_skill == 0 && ((int)ent->v.spawnflags & SPAWNFLAG_NOT_EASY)) else if ((current_skill == 0 && ((int)ent->v.spawnflags & SPAWNFLAG_NOT_EASY))
|| (current_skill == 1 && ((int)ent->v.spawnflags & SPAWNFLAG_NOT_MEDIUM)) || (current_skill == 1 && ((int)ent->v.spawnflags & SPAWNFLAG_NOT_MEDIUM))
@ -1047,7 +1044,6 @@ void ED_LoadFromFile (char *data)
inhibit++; inhibit++;
continue; continue;
} }
#endif
// //
// immediately call spawn function // immediately call spawn function