You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (HUD_config.main_color < 0 || HUD_config.main_color > HUD_COLOR_SIZE) {
991
+
Warning(LOCATION, "Campaign file has invalid main color selection %i, setting to default.\n", HUD_config.main_color);
992
+
HUD_config.main_color = HUD_COLOR_GREEN;
993
+
}
990
994
991
-
if (HUD_color_alpha < HUD_COLOR_ALPHA_USER_MIN) {
995
+
HUD_color_alpha = cfread_int(cfp);
996
+
if (HUD_color_alpha < HUD_COLOR_ALPHA_USER_MIN || HUD_color_alpha > HUD_COLOR_ALPHA_USER_MAX) {
997
+
Warning(LOCATION, "Campaign file has invalid alpha color %i, setting to default.\n", HUD_color_alpha);
992
998
HUD_color_alpha = HUD_COLOR_ALPHA_DEFAULT;
993
999
}
994
1000
1001
+
if (strikes == 3) {
1002
+
Warning(LOCATION, "Campaign file has too many hud config errors, and is likely corrupted. Please verify and save your settings in the hud config menu.");
if (HUD_color_alpha < HUD_COLOR_ALPHA_USER_MIN || HUD_color_alpha > HUD_COLOR_ALPHA_USER_MAX) {
204
+
Warning(LOCATION, "Player file has invalid alpha color %i, setting to default.\n", HUD_color_alpha);
196
205
HUD_color_alpha = HUD_COLOR_ALPHA_DEFAULT;
206
+
strikes++;
207
+
}
208
+
209
+
if (strikes == 3) {
210
+
Warning(LOCATION, "Player file has too many hud config errors, and is likely corrupted. Please verify and save your settings in the hud config menu.");
0 commit comments