aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack <66967891+ASpoonPlaysGames@users.noreply.github.com>2023-04-16 00:57:31 +0100
committerGitHub <noreply@github.com>2023-04-16 01:57:31 +0200
commitf7b0e6ffeced13190eb58a65ac9b88af1b4127ba (patch)
tree1aa290552ed8ba60a85a5a4de5c86ed52f84048e
parent16656ea022f943e1ab4848a83578f4f75afce676 (diff)
downloadNorthstarMods-f7b0e6ffeced13190eb58a65ac9b88af1b4127ba.tar.gz
NorthstarMods-f7b0e6ffeced13190eb58a65ac9b88af1b4127ba.zip
Fix Fastball respawning spectating player (#616)
-rw-r--r--Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_fastball.gnut2
1 files changed, 1 insertions, 1 deletions
diff --git a/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_fastball.gnut b/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_fastball.gnut
index 5ce11eb3..409d5ec0 100644
--- a/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_fastball.gnut
+++ b/Northstar.Custom/mod/scripts/vscripts/gamemodes/_gamemode_fastball.gnut
@@ -283,7 +283,7 @@ function FastballOnPanelHacked( panel, player )
// respawn dead players
foreach ( entity deadPlayer in GetPlayerArrayOfTeam( player.GetTeam() ) )
{
- if ( !IsAlive( deadPlayer ) && !IsPrivateMatchSpectator( player ) )
+ if ( !IsAlive( deadPlayer ) && !IsPrivateMatchSpectator( deadPlayer ) )
{
deadPlayer.SetOrigin( panel.s.startOrigin )
deadPlayer.RespawnPlayer( null )