]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Give it some arguments
authorMario <mario@smbclan.net>
Wed, 14 Dec 2016 20:29:39 +0000 (06:29 +1000)
committerMario <mario@smbclan.net>
Wed, 14 Dec 2016 20:29:39 +0000 (06:29 +1000)
qcsrc/client/hud/panel/infomessages.qc
qcsrc/client/mutators/events.qh

index ad2886d53c06953214323b0834c73337abff4beb..2d6c952fc0f3764cfced6e99448be1a14628dd47 100644 (file)
@@ -114,7 +114,7 @@ void HUD_InfoMessages()
                                InfoMessage(s);
                        }
 
-                       MUTATOR_CALLHOOK(DrawInfoMessages);
+                       MUTATOR_CALLHOOK(DrawInfoMessages, pos, mySize);
 
                        if(!warmup_stage && gametype == MAPINFO_TYPE_LMS)
                        {
index 12f04fdfbb13383950228f8822b566127c58a1de..edd178199d5c17b0d3eafb191748afc890cb600f 100644 (file)
@@ -159,4 +159,8 @@ MUTATOR_HOOKABLE(DrawCrosshair, EV_NO_ARGS);
 MUTATOR_HOOKABLE(DrawScoreboard, EV_NO_ARGS);
 
 /** Called when drawing info messages, allows adding new info messages */
-MUTATOR_HOOKABLE(DrawInfoMessages, EV_NO_ARGS);
+#define EV_DrawInfoMessages(i, o) \
+       /** pos */                          i(vector, MUTATOR_ARGV_0_vector) \
+       /** mySize */                   i(vector, MUTATOR_ARGV_1_vector) \
+       /**/
+MUTATOR_HOOKABLE(DrawInfoMessages, EV_DrawInfoMessages);