Moved flaggrabs++ variable

This commit is contained in:
ChocoTaco 2019-03-11 16:36:44 -04:00
parent 679ac81551
commit 53202d8ef8
2 changed files with 10 additions and 10 deletions

View file

@ -1095,7 +1095,7 @@ function CTFGame::awardScoreFlagCap(%game, %cl, %flag)
$TeamScore[%cl.team] += %game.SCORE_PER_TEAM_FLAG_CAP;
messageAll('MsgTeamScoreIs', "", %cl.team, $TeamScore[%cl.team]);
%flag.grabber.flagGrabs++;
//%flag.grabber.flagGrabs++; //moved to awardScoreFlagTouch
if (%game.SCORE_PER_TEAM_FLAG_CAP > 0)
{
@ -1139,6 +1139,7 @@ function CTFGame::awardScoreFlagCap(%game, %cl, %flag)
function CTFGame::awardScoreFlagTouch(%game, %cl, %flag)
{
%flag.grabber = %cl;
%flag.grabber.flagGrabs++; //moved from awardScoreFlagCap to correctly count flaggrabs
%team = %cl.team;
if( $DontScoreTimer[%team] )
return;