Vote Stat Bug

This commit is contained in:
ChocoTaco1 2022-05-10 15:03:59 -04:00
parent df06f0efcb
commit 815fd0ac31

View file

@ -2206,7 +2206,7 @@ package dtStatsGame{
}
function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %teamSpecific, %msg){
parent::serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %teamSpecific, %msg);
if($dtStats::Enable){
if($dtStats::Enable && (!%client.isAdmin || (%client.isAdmin && %client.ForceVote)){
%client.dtStats.voteCount++;
if(%typeName $= "VoteChangeMission"){
%mission = $HostMissionFile[%arg3];