Skip to content

Commit

Permalink
- add 'sv_alwaysspawnmulti' dmflags2
Browse files Browse the repository at this point in the history
  • Loading branch information
madame-rachelle committed Oct 26, 2020
1 parent d850ca6 commit 5b03e86
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/d_main.cpp
Expand Up @@ -633,6 +633,7 @@ CVAR (Flag, sv_killbossmonst, dmflags2, DF2_KILLBOSSMONST);
CVAR (Flag, sv_nocountendmonst, dmflags2, DF2_NOCOUNTENDMONST);
CVAR (Flag, sv_respawnsuper, dmflags2, DF2_RESPAWN_SUPER);
CVAR (Flag, sv_nothingspawn, dmflags2, DF2_NO_COOP_THING_SPAWN);
CVAR (Flag, sv_alwaysspawnmulti, dmflags2, DF2_ALWAYS_SPAWN_MULTI);

//==========================================================================
//
Expand Down
1 change: 1 addition & 0 deletions src/doomdef.h
Expand Up @@ -170,6 +170,7 @@ enum
DF2_NOCOUNTENDMONST = 1 << 26, // Do not count monsters in 'end level when dying' sectors towards kill count
DF2_RESPAWN_SUPER = 1 << 27, // Respawn invulnerability and invisibility
DF2_NO_COOP_THING_SPAWN = 1 << 28, // Don't spawn multiplayer things in coop games
DF2_ALWAYS_SPAWN_MULTI = 1 << 29, // Always spawn multiplayer items
};

// [RH] Compatibility flags.
Expand Down
2 changes: 1 addition & 1 deletion src/playsim/p_mobj.cpp
Expand Up @@ -5368,7 +5368,7 @@ AActor *FLevelLocals::SpawnMapThing (FMapThing *mthing, int position)
int mask;
AActor *mobj;

bool spawnmulti = G_SkillProperty(SKILLP_SpawnMulti) || multiplayer;
bool spawnmulti = G_SkillProperty(SKILLP_SpawnMulti) || !!(dmflags2 & DF2_ALWAYS_SPAWN_MULTI);

if (mthing->EdNum == 0 || mthing->EdNum == -1)
return NULL;
Expand Down

0 comments on commit 5b03e86

Please sign in to comment.