X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=qcsrc%2Fserver%2Fscores.qc;h=12175bb764f036435c1f745c0ac2ddc12fe74777;hb=c9c6d2a7a420a9bdfea7a17e5c326ce568b6ba6b;hp=0680d6a491730df2bfedbc252f870bd5c651ee02;hpb=b609dc6347c6214dfb20d6e86c16d0cad38c1ee3;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/scores.qc b/qcsrc/server/scores.qc index 0680d6a49..12175bb76 100644 --- a/qcsrc/server/scores.qc +++ b/qcsrc/server/scores.qc @@ -5,6 +5,7 @@ #include #include #include +#include #include #include "../common/playerstats.qh" #include "../common/teams.qh" @@ -107,8 +108,7 @@ float TeamScore_AddToTeam(int t, float scorefield, float score) { entity s; - if(game_stopped || time < game_starttime - || (round_handler_IsActive() && !round_handler_IsRoundStarted())) + if(game_stopped) { score = 0; } @@ -337,8 +337,7 @@ float PlayerScore_Add(entity player, PlayerScoreField scorefield, float score) bool mutator_returnvalue = MUTATOR_CALLHOOK(AddPlayerScore, scorefield, score, player); score = M_ARGV(1, float); - if((!mutator_returnvalue && game_stopped) || time < game_starttime - || (round_handler_IsActive() && !round_handler_IsRoundStarted())) + if(!mutator_returnvalue && game_stopped) { score = 0; }