Skip to content

Commit

Permalink
Fixing if guard on matchmode
Browse files Browse the repository at this point in the history
  • Loading branch information
darkshade9 committed Sep 7, 2022
1 parent 93ca3ea commit bd92471
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source/g_spawn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1082,11 +1082,15 @@ void SpawnEntities (char *mapname, char *entities, char *spawnpoint)
}

if (teamplay->value)
{
gameSettings |= GS_TEAMPLAY;
}
if (matchmode->value)
{
gameSettings |= GS_MATCHMODE;
gi.dprintf ("Matchmode Enabled - Forcing g_spawn_items off\n");
gi.cvar_forceset(g_spawn_items->name, "0"); // Turn off spawning of items for matchmode games
}
if (use_3teams->value)
{
teamCount = 3;
Expand Down

0 comments on commit bd92471

Please sign in to comment.