Battle: activate director after dying to Overtime Barrier

This commit is contained in:
James R 2023-02-27 20:56:12 -08:00
parent d56be63249
commit ccd933556d

View file

@ -58,6 +58,7 @@
#include "k_terrain.h" // K_SpawnSplashForMobj
#include "k_color.h"
#include "k_follower.h"
#include "k_director.h"
#ifdef HW3SOUND
#include "hardware/hw3sound.h"
@ -2783,6 +2784,13 @@ static void P_DeathThink(player_t *player)
player->playerstate = PST_REBORN;
}
// TODO: support splitscreen
// Spectate another player after 2 seconds
if (player == &players[consoleplayer] && playerGone == true && (gametyperules & GTR_BUMPERS) && player->deadtimer == 2*TICRATE)
{
K_ToggleDirector(true);
}
// Keep time rolling
if (!(player->exiting || mapreset) && !(player->pflags & PF_NOCONTEST) && !stoppedclock)
{