Skip to content
This repository has been archived by the owner on Jan 3, 2019. It is now read-only.

Commit

Permalink
better be sure
Browse files Browse the repository at this point in the history
  • Loading branch information
Teelevision committed May 11, 2016
1 parent 0c55c61 commit 9adb5b0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/game/server/gamemodes/zcatch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,11 +377,10 @@ void CGameController_zCatch::RewardWinner(int winnerId) {
++winner->m_RankCache.m_NumWins;

/* abort if no points */
if (points == 0) // logical opposite would be <= 0, but left it as is
if (points <= 0)
{
return;
}
// you don't need to increment anything if there is nothing to be incremented
winner->m_RankCache.m_Points += points;

/* saving is done in EndRound() */
Expand Down

0 comments on commit 9adb5b0

Please sign in to comment.