From: Mario Date: Wed, 28 Oct 2015 10:31:04 +0000 (+1000) Subject: Clean up the function slightly (kinda) X-Git-Tag: xonotic-v0.8.2~1761 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d0273d1721d85e1df504f26c36239743b2d80409;p=xonotic%2Fxonotic-data.pk3dir.git Clean up the function slightly (kinda) --- diff --git a/qcsrc/client/announcer.qc b/qcsrc/client/announcer.qc index 2ad1c67c1..3ae9f708f 100644 --- a/qcsrc/client/announcer.qc +++ b/qcsrc/client/announcer.qc @@ -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()