More spectator tweaks

This commit is contained in:
Jaime Passos 2019-12-18 15:14:24 -03:00
parent d3d91726f5
commit 7768e2c7f9
2 changed files with 24 additions and 18 deletions

View File

@ -11249,8 +11249,12 @@ void P_SpawnPlayer(INT32 playernum)
else
{
p->outofcoop = false;
p->spectator = false;
if (netgame && p->jointime < 1)
p->spectator = true;
{
// Averted by GTR_NOSPECTATORSPAWN.
p->spectator = (gametyperules & GTR_NOSPECTATORSPAWN) ? false : true;
}
else if (multiplayer && !netgame)
{
// If you're in a team game and you don't have a team assigned yet...

View File

@ -2205,8 +2205,9 @@ static void ST_drawTextHUD(void)
textHUDdraw(M_GetText("\x82""Wait for the stage to end..."))
else if (G_PlatformGametype())
{
if (gametype == GT_COOP
&& stplyr->lives <= 0
if (gametype == GT_COOP)
{
if (stplyr->lives <= 0
&& cv_cooplives.value == 2
&& (netgame || multiplayer))
{
@ -2231,6 +2232,7 @@ static void ST_drawTextHUD(void)
else
textHUDdraw(M_GetText("Wait to respawn..."))
}
}
else if (G_GametypeHasSpectators())
textHUDdraw(M_GetText("\x82""FIRE:""\x80 Enter game"))
}