PClassActor *P_GetSpawnableType(int spawnnum) { if (spawnnum < 0) { // A named arg from a UDMF map FName spawnname = FName(ENamedName(-spawnnum)); if (spawnname.IsValidName()) { return PClass::FindActor(spawnname); } } else { // A numbered arg from a Hexen or UDMF map PClassActor **type = SpawnableThings.CheckKey(spawnnum); if (type != NULL) { return *type; } } return NULL; }
const PClass *GetStrifeType (int typenum) { const PClass **ptype = StrifeTypes.CheckKey(typenum); if (ptype == NULL) return NULL; else return *ptype; }
PClassActor *GetStrifeType (int typenum) { PClassActor **ptype = StrifeTypes.CheckKey(typenum); if (ptype == NULL) return NULL; else return *ptype; }