X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fserver%2Fscores.qc;h=0dc2b2f00b4f2b79586950f95a2e7fc868140615;hp=1537f6752e11f1fea0e3617a5f53836b3d71bf64;hb=61ff03e493f0cdae7d4a7b4332481f1a3971c3c7;hpb=1c3d7f32e19b781dd1485c29fc347d904b4b502a diff --git a/qcsrc/server/scores.qc b/qcsrc/server/scores.qc index 1537f6752..0dc2b2f00 100644 --- a/qcsrc/server/scores.qc +++ b/qcsrc/server/scores.qc @@ -334,7 +334,7 @@ float PlayerScore_Add(entity player, float scorefield, float score) entity s; if(gameover) - if not(g_lms && scorefield == SP_LMS_RANK) // allow writing to this field in intermission as it is needed for newly joining players + if(!(g_lms && scorefield == SP_LMS_RANK)) // allow writing to this field in intermission as it is needed for newly joining players score = 0; if(!scores_initialized) return 0; // FIXME remove this when everything uses this system @@ -742,7 +742,7 @@ entity PlayerScore_Sort(.float field, float teams, float strict, float nospectat pbest.field = j; - if not(pfirst) + if (!pfirst) pfirst = pbest; if(plast) plast.chain = pbest; @@ -765,7 +765,7 @@ float TeamScore_GetCompareValue(float t) } sk = teamscorekeepers[t - 1]; - if not(sk) + if (!sk) return -999999999; s = sk.teamscores_primary; if(teamscores_flags_primary & SFL_ZERO_IS_WORST) @@ -899,9 +899,9 @@ void Score_NicePrint(entity to) t = 0; FOR_EACH_CLIENT(p) - if not(IS_PLAYER(p)) + if (!IS_PLAYER(p)) { - if not(t) + if (!t) Score_NicePrint_Spectators(to); Score_NicePrint_Spectator(to, p); t = 1;