From 4e7cb7b9005bb347f525050cf96a69e2729b678d Mon Sep 17 00:00:00 2001 From: terencehill Date: Thu, 5 Jan 2017 20:55:40 +0100 Subject: [PATCH] Fix wrong naming style and initialization in 2 macros that luckily didn't cause any trouble as these macros aren't used anywhere --- qcsrc/common/notifications/all.inc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qcsrc/common/notifications/all.inc b/qcsrc/common/notifications/all.inc index 454519e85..f68c302b6 100644 --- a/qcsrc/common/notifications/all.inc +++ b/qcsrc/common/notifications/all.inc @@ -88,14 +88,14 @@ */ #define MULTITEAM_ANNCE2(prefix, default, sound, channel, volume, position) \ - MSG_ANNCE_NOTIF(prefix##RED, default, sprintf(sound, strtolower(STATIC_NAME_TEAM_1)), channel, volume, position) \ - MSG_ANNCE_NOTIF(prefix##BLUE, default, sprintf(sound, strtolower(STATIC_NAME_TEAM_2)), channel, volume, position) + MSG_ANNCE_NOTIF(prefix##_RED, default, sprintf(sound, strtolower(STATIC_NAME_TEAM_1)), channel, volume, position) \ + MSG_ANNCE_NOTIF(prefix##_BLUE, default, sprintf(sound, strtolower(STATIC_NAME_TEAM_2)), channel, volume, position) #define MULTITEAM_ANNCE3(prefix, default, sound, channel, volume, position) \ MULTITEAM_ANNCE2(prefix, default, sound, channel, volume, position) \ - MSG_ANNCE_NOTIF(prefix##YELLOW, default, sprintf(sound, strtolower(STATIC_NAME_TEAM_3)), channel, volume, position) + MSG_ANNCE_NOTIF(prefix##_YELLOW, default, sprintf(sound, strtolower(STATIC_NAME_TEAM_3)), channel, volume, position) #define MULTITEAM_ANNCE4(prefix, default, sound, channel, volume, position) \ MULTITEAM_ANNCE3(prefix, default, sound, channel, volume, position) \ - MSG_ANNCE_NOTIF(prefix##PINK, default, sprintf(sound, strtolower(STATIC_NAME_TEAM_4)), channel, volume, position) + MSG_ANNCE_NOTIF(prefix##_PINK, default, sprintf(sound, strtolower(STATIC_NAME_TEAM_4)), channel, volume, position) #define MULTITEAM_ANNCE(prefix, teams, default, sound, channel, volume, position) \ MULTITEAM_ANNCE##teams(prefix, default, sound, channel, volume, position) @@ -765,7 +765,7 @@ MSG_MULTI_NOTIF(prefix##_BLUE, default, anncepre##_BLUE, infopre##_BLUE, centerpre##_BLUE) #define MULTITEAM_MULTI3(prefix, default, anncepre, infopre, centerpre) \ MULTITEAM_MULTI2(prefix, default, anncepre, infopre, centerpre) \ - MSG_MULTI_NOTIF(default, prefix##_YELLOW, anncepre##YELLOW, infopre##YELLOW, centerpre##YELLOW) + MSG_MULTI_NOTIF(prefix##_YELLOW, default, anncepre##YELLOW, infopre##YELLOW, centerpre##YELLOW) #define MULTITEAM_MULTI4(prefix, default, anncepre, infopre, centerpre) \ MULTITEAM_MULTI3(prefix, default, anncepre, infopre, centerpre) \ MSG_MULTI_NOTIF(prefix##_PINK, default, anncepre##PINK, infopre##PINK, centerpre##PINK) -- 2.39.2