Skip to content

Commit

Permalink
Fixed check on teamplay rounds played
Browse files Browse the repository at this point in the history
  • Loading branch information
darkshade9 committed Aug 23, 2024
1 parent fa975da commit 8e0c776
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/action/tng_stats.c
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,8 @@ void G_RegisterScore(void)
return;
}

if (teamplay->value && game.roundNum > 0){
if (teamplay->value && game.roundNum == 0){
gi.dprintf("No rounds were played, so no highscore will be recorded\n");
return; // No rounds were played, so skip
}

Expand Down

0 comments on commit 8e0c776

Please sign in to comment.