mirror of
https://github.com/ChocoTaco1/TacoServer.git
synced 2026-01-20 00:24:49 +00:00
Vote Stat Bug
This commit is contained in:
parent
df06f0efcb
commit
815fd0ac31
|
|
@ -2206,7 +2206,7 @@ package dtStatsGame{
|
||||||
}
|
}
|
||||||
function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %teamSpecific, %msg){
|
function serverCmdStartNewVote(%client, %typeName, %arg1, %arg2, %arg3, %arg4, %teamSpecific, %msg){
|
||||||
parent::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++;
|
%client.dtStats.voteCount++;
|
||||||
if(%typeName $= "VoteChangeMission"){
|
if(%typeName $= "VoteChangeMission"){
|
||||||
%mission = $HostMissionFile[%arg3];
|
%mission = $HostMissionFile[%arg3];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue