]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Make for_whom accessible to the CheckAllowedTeams mutator hook
authorMario <mario@smbclan.net>
Mon, 6 Mar 2017 10:00:05 +0000 (20:00 +1000)
committerMario <mario@smbclan.net>
Mon, 6 Mar 2017 10:00:05 +0000 (20:00 +1000)
qcsrc/server/mutators/events.qh
qcsrc/server/teamplay.qc

index 729106057644511f3795a42906ce0486c1b7530e..7523b3aac6ca26a3b54daaec7d2ad1de09a89f1d 100644 (file)
@@ -128,6 +128,7 @@ MUTATOR_HOOKABLE(MatchEnd, EV_NO_ARGS);
     /**/                      o(float, MUTATOR_ARGV_0_float) \
     /** team entity name   */ i(string, MUTATOR_ARGV_1_string) \
     /**/                      o(string, MUTATOR_ARGV_1_string) \
+    /** player checked     */ i(entity, MUTATOR_ARGV_2_entity) \
     /**/
 MUTATOR_HOOKABLE(CheckAllowedTeams, EV_CheckAllowedTeams);
 
index 7023768219e15fe6fc108ec8e702084e51e8a62d..d8bf72cd6b2a87bc27cc3700053716840c3bd8b3 100644 (file)
@@ -224,7 +224,7 @@ void CheckAllowedTeams (entity for_whom)
 
        string teament_name = string_null;
 
-       bool mutator_returnvalue = MUTATOR_CALLHOOK(CheckAllowedTeams, teams_mask, teament_name);
+       bool mutator_returnvalue = MUTATOR_CALLHOOK(CheckAllowedTeams, teams_mask, teament_name, for_whom);
        teams_mask = M_ARGV(0, float);
        teament_name = M_ARGV(1, string);