aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/mp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-10-16 01:27:00 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-10-16 01:27:00 +0100
commit6b07fb30fb7380b1d61af6a620ec72c9066753e2 (patch)
tree3a877d6ea21346166d3fd4c51de3860539e91a87 /Northstar.CustomServers/mod/scripts/vscripts/mp
parent9a2778eabc7ba968968e41dda9f03525d6c5383d (diff)
downloadNorthstarMods-6b07fb30fb7380b1d61af6a620ec72c9066753e2.tar.gz
NorthstarMods-6b07fb30fb7380b1d61af6a620ec72c9066753e2.zip
add burncard support
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts/mp')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut2
1 files changed, 1 insertions, 1 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut b/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut
index 38803e04c..c42899e3f 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/mp/_base_gametype_mp.gnut
@@ -286,7 +286,7 @@ void function PostDeathThread_MP( entity player, var damageInfo ) // based on ga
// do some pre-replay stuff if we're gonna do a replay
float replayLength = CalculateLengthOfKillReplay( player, methodOfDeath )
- bool shouldDoReplay = Replay_IsEnabled() && KillcamsEnabled() && ShouldDoReplay( player, attacker, replayLength, methodOfDeath )
+ bool shouldDoReplay = Replay_IsEnabled() && KillcamsEnabled() && IsValid( attacker ) && ShouldDoReplay( player, attacker, replayLength, methodOfDeath )
table replayTracker = { validTime = null }
if ( shouldDoReplay )
thread TrackDestroyTimeForReplay( attacker, replayTracker )