Fix pfn_spawn metamod return to follow engine behavior (bug 5807, r=me)

This commit is contained in:
Vincent Herbet 2013-07-27 20:36:33 +02:00
parent 2af8a27164
commit efe3bda51b

View File

@ -49,7 +49,7 @@ int Spawn(edict_t *pEntity)
int id = ENTINDEX(pEntity);
retVal = MF_ExecuteForward(SpawnForward, (cell)id);
if (retVal)
RETURN_META_VALUE(MRES_SUPERCEDE, 0);
RETURN_META_VALUE(MRES_SUPERCEDE, -1);
}
RETURN_META_VALUE(MRES_IGNORED, 0);
}