add SpawnMultiCoopOnly mapinfo flag to spawn **only** coop spawns in single-player
This commit is contained in:
parent
5895f9b1b1
commit
afcd38907c
4 changed files with 17 additions and 3 deletions
|
|
@ -5757,6 +5757,7 @@ AActor *FLevelLocals::SpawnMapThing (FMapThing *mthing, int position)
|
|||
AActor *mobj;
|
||||
|
||||
bool spawnmulti = G_SkillProperty(SKILLP_SpawnMulti) || !!(dmflags2 & DF2_ALWAYS_SPAWN_MULTI);
|
||||
bool spawnmulti_cooponly = G_SkillProperty(SKILLP_SpawnMultiCoopOnly);
|
||||
|
||||
if (mthing->EdNum == 0 || mthing->EdNum == -1)
|
||||
return NULL;
|
||||
|
|
@ -5837,9 +5838,9 @@ AActor *FLevelLocals::SpawnMapThing (FMapThing *mthing, int position)
|
|||
{
|
||||
mask = MTF_COOPERATIVE;
|
||||
}
|
||||
else if (spawnmulti)
|
||||
else if (spawnmulti || spawnmulti_cooponly)
|
||||
{
|
||||
mask = MTF_COOPERATIVE|MTF_SINGLE;
|
||||
mask = spawnmulti_cooponly ? MTF_COOPERATIVE : (MTF_COOPERATIVE|MTF_SINGLE);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue