Skip to content

Commit

Permalink
Clear the invulnerable override when loading
Browse files Browse the repository at this point in the history
  • Loading branch information
smallmodel committed Dec 8, 2024
1 parent 333c452 commit c4a1175
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/fgame/level.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1097,6 +1097,12 @@ void Level::SpawnEntities(char *entities, int svsTime)
int start, end;
char name[128];

if (gi.Cvar_Get("g_invulnoverride", "0", 0)->integer == 1) {
// Added in 2.30
// Clear the invulnerable override when loading
gi.cvar_set("g_invulnoverride", "0");
}

Com_Printf("-------------------- Spawning Entities -----------------------\n");

t1 = gi.Milliseconds();
Expand Down

0 comments on commit c4a1175

Please sign in to comment.