From 080af12d8baa577d599b7a5684524221b045f740 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 24 May 2008 10:35:15 +0000 Subject: (svn r13229) -Codechange: replace some global variables that are only initialised once and always with the same value with enums. --- src/settings.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/settings.cpp') diff --git a/src/settings.cpp b/src/settings.cpp index c49fdfc0f..a8096a75d 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -1992,7 +1992,7 @@ bool IConsoleSetPatchSetting(const char *name, int32 value) void *ptr; if (sd == NULL) { - IConsolePrintF(_icolour_warn, "'%s' is an unknown patch setting.", name); + IConsolePrintF(CC_WARNING, "'%s' is an unknown patch setting.", name); return true; } @@ -2011,7 +2011,7 @@ void IConsoleGetPatchSetting(const char *name) const void *ptr; if (sd == NULL) { - IConsolePrintF(_icolour_warn, "'%s' is an unknown patch setting.", name); + IConsolePrintF(CC_WARNING, "'%s' is an unknown patch setting.", name); return; } @@ -2023,13 +2023,13 @@ void IConsoleGetPatchSetting(const char *name) snprintf(value, sizeof(value), "%d", (int32)ReadValue(ptr, sd->save.conv)); } - IConsolePrintF(_icolour_warn, "Current value for '%s' is: '%s' (min: %s%d, max: %d)", + IConsolePrintF(CC_WARNING, "Current value for '%s' is: '%s' (min: %s%d, max: %d)", name, value, (sd->desc.flags & SGF_0ISDISABLED) ? "(0) " : "", sd->desc.min, sd->desc.max); } void IConsoleListPatches() { - IConsolePrintF(_icolour_warn, "All patches with their current value:"); + IConsolePrintF(CC_WARNING, "All patches with their current value:"); for (const SettingDesc *sd = _patch_settings; sd->save.cmd != SL_END; sd++) { char value[80]; @@ -2040,10 +2040,10 @@ void IConsoleListPatches() } else { snprintf(value, lengthof(value), "%d", (uint32)ReadValue(ptr, sd->save.conv)); } - IConsolePrintF(_icolour_def, "%s = %s", sd->desc.name, value); + IConsolePrintF(CC_DEFAULT, "%s = %s", sd->desc.name, value); } - IConsolePrintF(_icolour_warn, "Use 'patch' command to change a value"); + IConsolePrintF(CC_WARNING, "Use 'patch' command to change a value"); } /** Save and load handler for patches/settings -- cgit v1.2.3-70-g09d2