Skip to content

Commit

Permalink
attempt to fix weird invasion waves that stop spawning monsters
Browse files Browse the repository at this point in the history
  • Loading branch information
zardoru committed Sep 28, 2024
1 parent 7d083a8 commit c41dfbe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/gamemodes/invasion.c
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,7 @@ void INV_OnBeginWave(edict_t *self, int max_monsters) {

gi.sound(&g_edicts[0], CHAN_VOICE, gi.soundindex("misc/talk1.wav"), 1, ATTN_NONE, 0);
invasion_data.remaining_monsters = max_monsters * WAVE_CLEAR_THRESHOLD;
invasion_data.mspawned = 0;

// check for a boss spawn
INV_BossCheck(self);
Expand Down
4 changes: 4 additions & 0 deletions src/v_shared.h
Original file line number Diff line number Diff line change
Expand Up @@ -361,4 +361,8 @@ void vrx_remove_chat_protect(edict_t* ent);
// ****** curses.c ******
void vrx_curse_heal_all(edict_t* target);

// v_misc.c
void vrx_remove_all_monsters(edict_t* ent);
int vrx_pvm_update_total_owned_monsters(edict_t *monster_owner, qboolean update);

#endif

0 comments on commit c41dfbe

Please sign in to comment.