Merge branch 'master' into jgrpp
Remove 'byte' typedef
This commit is contained in:
@@ -111,7 +111,7 @@ static ConsoleFileList _console_file_list_scenario{FT_SCENARIO, false}; ///< Fil
|
||||
static ConsoleFileList _console_file_list_heightmap{FT_HEIGHTMAP, false}; ///< File storage cache for heightmaps.
|
||||
|
||||
/* console command defines */
|
||||
#define DEF_CONSOLE_CMD(function) static bool function([[maybe_unused]] byte argc, [[maybe_unused]] char *argv[])
|
||||
#define DEF_CONSOLE_CMD(function) static bool function([[maybe_unused]] uint8_t argc, [[maybe_unused]] char *argv[])
|
||||
#define DEF_CONSOLE_HOOK(function) static ConsoleHookResult function(bool echo)
|
||||
|
||||
/****************
|
||||
@@ -2367,7 +2367,7 @@ DEF_CONSOLE_CMD(ConFont)
|
||||
uint size = setting->size;
|
||||
bool aa = setting->aa;
|
||||
|
||||
byte arg_index = 2;
|
||||
uint8_t arg_index = 2;
|
||||
/* We may encounter "aa" or "noaa" but it must be the last argument. */
|
||||
if (StrEqualsIgnoreCase(argv[arg_index], "aa") || StrEqualsIgnoreCase(argv[arg_index], "noaa")) {
|
||||
aa = !StrStartsWithIgnoreCase(argv[arg_index++], "no");
|
||||
@@ -3810,7 +3810,7 @@ DEF_CONSOLE_CMD(ConSwitchBaseset)
|
||||
return 1;
|
||||
}
|
||||
|
||||
static bool ConConditionalCommon(byte argc, char *argv[], int value, const char *value_name, const char *name)
|
||||
static bool ConConditionalCommon(uint8_t argc, char *argv[], int value, const char *value_name, const char *name)
|
||||
{
|
||||
if (argc < 4) {
|
||||
IConsolePrintF(CC_WARNING, "- Execute command if %s is within the specified range. Usage: '%s <minimum> <maximum> <command...>'", value_name, name);
|
||||
|
Reference in New Issue
Block a user