From 066500f7cf4a372972de2da50beeffdcf7b68367 Mon Sep 17 00:00:00 2001 From: ChocoTaco1 Date: Fri, 20 Nov 2020 15:29:07 -0500 Subject: [PATCH] Before matchStart exception --- Classic/scripts/autoexec/zDarkTigerStats.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classic/scripts/autoexec/zDarkTigerStats.cs b/Classic/scripts/autoexec/zDarkTigerStats.cs index e516021..51ac130 100644 --- a/Classic/scripts/autoexec/zDarkTigerStats.cs +++ b/Classic/scripts/autoexec/zDarkTigerStats.cs @@ -1791,8 +1791,8 @@ package dtStats{ } function DefaultGame::clientChangeTeam(%game, %client, %team, %fromObs, %respawned){ // z0dd - ZOD, 6/06/02. Don't send a message if player used respawn feature. Added %respawned parent::clientChangeTeam(%game, %client, %team, %fromObs, %respawned); - if($dtStats::Enable) - %client.dtStats.switchteamCount++; + if($dtStats::Enable && isGameRun()) + %client.dtStats.switchteamCount++; } function RepairPack::onThrow(%data,%obj,%shape){ parent::onThrow(%data,%obj,%shape);