X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fserver%2Fscores_rules.qc;h=aefb1754b5ceaab137e2e4d1bb13fa4fa2a3374f;hb=777dc5e23d7512c3e33576884d8d200f244d3006;hp=6343625c0fd0e8f1c2e79f0b03b1fd6eb54711ba;hpb=4f533c7987a0e841b03ff81a85a9eabb55a6bc1f;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/server/scores_rules.qc b/qcsrc/server/scores_rules.qc index 6343625c0f..aefb1754b5 100644 --- a/qcsrc/server/scores_rules.qc +++ b/qcsrc/server/scores_rules.qc @@ -1,4 +1,9 @@ -float c1, c2, c3, c4; +#include "scores_rules.qh" +#include "_all.qh" + +#include "cl_client.qh" +#include "scores.qh" + void CheckAllowedTeams (entity for_whom); // NOTE: SP_ constants may not be >= MAX_SCORE; ST_constants may not be >= MAX_TEAMSCORE @@ -37,10 +42,9 @@ void ScoreRules_generic() if(teamplay) { CheckAllowedTeams(world); - ScoreRules_basics(((c4>=0) ? 4 : (c3>=0) ? 3 : 2), SFL_SORT_PRIO_PRIMARY, SFL_SORT_PRIO_PRIMARY, TRUE); + ScoreRules_basics(((c4>=0) ? 4 : (c3>=0) ? 3 : 2), SFL_SORT_PRIO_PRIMARY, SFL_SORT_PRIO_PRIMARY, true); } else - ScoreRules_basics(0, SFL_SORT_PRIO_PRIMARY, SFL_SORT_PRIO_PRIMARY, TRUE); + ScoreRules_basics(0, SFL_SORT_PRIO_PRIMARY, SFL_SORT_PRIO_PRIMARY, true); ScoreRules_basics_end(); } -