]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Started work on better fraglimit.
authorLyberta <lyberta@lyberta.net>
Mon, 11 Jun 2018 17:39:04 +0000 (20:39 +0300)
committerLyberta <lyberta@lyberta.net>
Mon, 11 Jun 2018 17:39:04 +0000 (20:39 +0300)
qcsrc/server/g_world.qc
qcsrc/server/mutators/events.qh

index 842f5b53c71c4887bb0a50d82cbdc568c2cb2876..85dea37db1a3f8edca3aa90d1cb41751969543b0 100644 (file)
@@ -1894,7 +1894,10 @@ void CheckRules_World()
        if(checkrules_status == WINNING_YES)
                bprint("Hey! Someone ran out of spawns!\n");
        else if(MUTATOR_CALLHOOK(CheckRules_World, checkrules_status, timelimit, fraglimit))
+       {
                checkrules_status = M_ARGV(0, float);
+               fraglimit = M_ARGV(2, float);
+       }
        else
                checkrules_status = WinningCondition_Scores(fraglimit, leadlimit);
 
index cf39f337bb15b48cbe9b8bc527ac5b1e822b1c23..0f7bb44153b7c123f57eb9e30787efbd7b8553ed 100644 (file)
@@ -911,6 +911,7 @@ enum {
     /**/             o(float, MUTATOR_ARGV_0_float) \
     /* time limit */ i(float, MUTATOR_ARGV_1_float) \
     /* frag limit */ i(float, MUTATOR_ARGV_2_float) \
+    /**/             o(float, MUTATOR_ARGV_2_float) \
     /**/
 MUTATOR_HOOKABLE(CheckRules_World, EV_CheckRules_World);