mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-08 09:12:24 +00:00
check if the gametype allows spectators to allow jump key respawn
This commit is contained in:
parent
9613bdeca6
commit
1d0d404922
1 changed files with 1 additions and 1 deletions
|
@ -9463,7 +9463,7 @@ static void P_DeathThink(player_t *player)
|
||||||
if (cmd->buttons & BT_JUMP)
|
if (cmd->buttons & BT_JUMP)
|
||||||
{
|
{
|
||||||
// You're a spectator, so respawn right away.
|
// You're a spectator, so respawn right away.
|
||||||
if (gametype != GT_COOP && player->spectator)
|
if ((gametyperules & GTR_SPECTATORS) && player->spectator)
|
||||||
player->playerstate = PST_REBORN;
|
player->playerstate = PST_REBORN;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue