]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Clean up the function slightly (kinda)
authorMario <mario@smbclan.net>
Wed, 28 Oct 2015 10:31:04 +0000 (20:31 +1000)
committerMario <mario@smbclan.net>
Wed, 28 Oct 2015 10:31:04 +0000 (20:31 +1000)
qcsrc/client/announcer.qc

index 2ad1c67c15dbd091785cacff94abed3e9934878b..3ae9f708f9e798206341f31e660cfdcf3a3ee120 100644 (file)
@@ -9,10 +9,10 @@ bool announcer_1min;
 bool announcer_5min;
 string AnnouncerOption()
 {
-       if(MUTATOR_CALLHOOK(AnnouncerOption, ret_string))
-               return ret_string;
-
-       return autocvar_cl_announcer;
+       string ret = autocvar_cl_announcer;
+       MUTATOR_CALLHOOK(AnnouncerOption, ret);
+       ret = ret_string;
+       return ret;
 }
 
 void Announcer_Countdown()