mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-29 16:58:02 +00:00
code cleanup 3
This commit is contained in:
@@ -82,12 +82,12 @@ void bot_command_behind_mob(Client* c, const Seperator* sep)
|
||||
|
||||
int ab_arg = 1;
|
||||
bool current_check = false;
|
||||
uint32 typeValue = 0;
|
||||
uint32 type_value = 0;
|
||||
|
||||
if (sep->IsNumber(1)) {
|
||||
typeValue = atoi(sep->arg[1]);
|
||||
type_value = atoi(sep->arg[1]);
|
||||
++ab_arg;
|
||||
if (typeValue < 0 || typeValue > 1) {
|
||||
if (type_value < 0 || type_value > 1) {
|
||||
c->Message(Chat::Yellow, "You must enter either 0 for disabled or 1 for enabled.");
|
||||
|
||||
return;
|
||||
@@ -147,7 +147,7 @@ void bot_command_behind_mob(Client* c, const Seperator* sep)
|
||||
);
|
||||
}
|
||||
else {
|
||||
my_bot->SetBehindMob(typeValue);
|
||||
my_bot->SetBehindMob(type_value);
|
||||
++success_count;
|
||||
}
|
||||
}
|
||||
@@ -168,7 +168,7 @@ void bot_command_behind_mob(Client* c, const Seperator* sep)
|
||||
fmt::format(
|
||||
"{} of your bots {} stay behind mobs.",
|
||||
success_count,
|
||||
typeValue ? "will now" : "will no longer"
|
||||
type_value ? "will now" : "will no longer"
|
||||
).c_str()
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user