X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fclient%2Fannouncer.qc;h=ae04b5be15e5b866fda2a185ac58397727cd5101;hp=0195db43a432e17e1e472155995451a8f703160d;hb=7069dc3f41678554d089db582ccf16da1f8874a5;hpb=62d736d8c3a51baf5fa3a4265e39a2b773704a91 diff --git a/qcsrc/client/announcer.qc b/qcsrc/client/announcer.qc index 0195db43a4..ae04b5be15 100644 --- a/qcsrc/client/announcer.qc +++ b/qcsrc/client/announcer.qc @@ -4,6 +4,7 @@ #include #include +#include "hud/panel/centerprint.qh" bool announcer_1min; bool announcer_5min; @@ -84,7 +85,7 @@ void Announcer_Gamestart() { if(announcer_countdown) { - centerprint_kill(ORDINAL(CPID_ROUND)); + centerprint_Kill(ORDINAL(CPID_ROUND)); if(announcer_countdown) { delete(announcer_countdown); @@ -115,7 +116,7 @@ void Announcer_Gamestart() previous_game_starttime = startTime; } -#define ANNOUNCER_CHECKMINUTE(minute) MACRO_BEGIN { \ +#define ANNOUNCER_CHECKMINUTE(minute) MACRO_BEGIN \ if(announcer_##minute##min) { \ if(timeleft > minute * 60) \ announcer_##minute##min = false; \ @@ -125,7 +126,7 @@ void Announcer_Gamestart() Local_Notification(MSG_ANNCE, ANNCE_REMAINING_MIN_##minute); \ } \ } \ -} MACRO_END +MACRO_END void Announcer_Time() {