]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/server/round_handler.qc
micro-optimization chore: in for-loops change all post-{in,de}crements to pre-{in...
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / round_handler.qc
index bb890e980a628738d1cf96ec9d74a81bf84089c8..d47aad441ec4add47fcbd7cba5eb8c39b5b0dc75 100644 (file)
@@ -5,6 +5,7 @@
 #include <common/util.qh>
 #include <server/campaign.qh>
 #include <server/command/vote.qh>
+#include <server/scores.qh>
 #include <server/world.qh>
 
 void round_handler_Think(entity this)
@@ -109,6 +110,8 @@ void round_handler_Spawn(bool() canRoundStart_func, bool() canRoundEnd_func, voi
        this.wait = false;
        round_handler_Init(5, 5, 180);
        this.nextthink = time;
+
+       ScoreInfo_SetLabel_PlayerScore(SP_ROUNDS_PL, "rounds_pl", 0);
 }
 
 void round_handler_Reset(float next_think)