No more hacked light loading
This commit is contained in:
parent
da750f16f9
commit
e345d80f23
1 changed files with 3 additions and 7 deletions
10
pr_edict.c
10
pr_edict.c
|
@ -940,13 +940,9 @@ void ED_LoadFromFile (char *data)
|
|||
{
|
||||
if (((int)ent->v.spawnflags & SPAWNFLAG_NOT_DEATHMATCH))
|
||||
{
|
||||
//PENTA: HACK reuse deathmatch spawn flag as "keep light"
|
||||
if (strcmp (pr_strings + ent->v.classname, "light") &&
|
||||
strcmp (pr_strings + ent->v.classname, "light_lev") ) { //not a light? do it like you always did
|
||||
ED_Free (ent);
|
||||
inhibit++;
|
||||
continue;
|
||||
} else Con_Printf("kept light");
|
||||
ED_Free (ent);
|
||||
inhibit++;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
else if ((current_skill == 0 && ((int)ent->v.spawnflags & SPAWNFLAG_NOT_EASY))
|
||||
|
|
Loading…
Reference in a new issue