Script/Commands: Codestyle and cleanups
This commit is contained in:
1 parent
3b4b6a2d9a
commit
fd76ef3cd0
7 files changed
+825
-798
No files matched your search
@@ -45,7 +45,7 @@ public:
|
||||
return commandTable;
|
||||
}
|
||||
|
||||
static bool HandleAchievementAddCommand(ChatHandler* handler, const char *args)
|
||||
static bool HandleAchievementAddCommand(ChatHandler* handler, char const* args)
|
||||
{
|
||||
if (!*args)
|
||||
return false;
|
||||
@@ -53,8 +53,8 @@ public:
|
||||
uint32 achievementId = atoi((char*)args);
|
||||
if (!achievementId)
|
||||
{
|
||||
if (char* cId = handler->extractKeyFromLink((char*)args, "Hachievement"))
|
||||
achievementId = atoi(cId);
|
||||
if (char* id = handler->extractKeyFromLink((char*)args, "Hachievement"))
|
||||
achievementId = atoi(id);
|
||||
if (!achievementId)
|
||||
return false;
|
||||
}
|
||||
@@ -67,8 +67,8 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
if (AchievementEntry const* pAE = GetAchievementStore()->LookupEntry(achievementId))
|
||||
target->CompletedAchievement(pAE);
|
||||
if (AchievementEntry const* achievementEntry = GetAchievementStore()->LookupEntry(achievementId))
|
||||
target->CompletedAchievement(achievementEntry);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user