Skip to content

Commit

Permalink
Fix bad merge
Browse files Browse the repository at this point in the history
  • Loading branch information
davidonete committed Mar 8, 2024
1 parent dd06e50 commit 5821ff1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions playerbot/strategy/actions/CheatAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ bool CheatAction::Execute(Event& event)
return false;
}

BotCheatMask CheatAction::GetCheatMask(string cheat)
BotCheatMask CheatAction::GetCheatMask(std::string cheat)
{
vector<string> cheatName = { "taxi", "gold", "health", "mana", "power", "item", "cooldown", "repair", "movespeed", "attackspeed", "breath", "maxMask"};
vector<std::string> cheatName = { "taxi", "gold", "health", "mana", "power", "item", "cooldown", "repair", "movespeed", "attackspeed", "breath", "maxMask"};
for (int i = 0; i < log2((uint32)BotCheatMask::maxMask); i++)
{
if (cheatName[i] == cheat)
Expand All @@ -62,13 +62,13 @@ BotCheatMask CheatAction::GetCheatMask(string cheat)

string CheatAction::GetCheatName(BotCheatMask cheatMask)
{
vector<string> cheatName = { "taxi", "gold", "health", "mana", "power", "item", "cooldown", "repair", "movespeed", "attackspeed", "breath", "maxMask" };
vector<std::string> cheatName = { "taxi", "gold", "health", "mana", "power", "item", "cooldown", "repair", "movespeed", "attackspeed", "breath", "maxMask" };
return cheatName[log2(((uint32)cheatMask))];
}

void CheatAction::ListCheats(Player* requester)
{
ostringstream out;
std::ostringstream out;
for (int i = 0; i < log2((uint32)BotCheatMask::maxMask); i++)
{
BotCheatMask cheatMask = BotCheatMask(1 << i);
Expand Down

0 comments on commit 5821ff1

Please sign in to comment.