Fill function calls using magic numbers

This commit is contained in:
Akkadius
2019-08-11 00:27:04 -05:00
parent a28ea6419f
commit 665efe09f3
30 changed files with 1572 additions and 1572 deletions
+6 -6
View File
@@ -2902,15 +2902,15 @@ void EntityList::ListNPCCorpses(Client *client)
uint32 x = 0;
auto it = corpse_list.begin();
client->Message(0, "NPC Corpses in the zone:");
client->Message(Chat::White, "NPC Corpses in the zone:");
while (it != corpse_list.end()) {
if (it->second->IsNPCCorpse()) {
client->Message(0, " %5d: %s", it->first, it->second->GetName());
client->Message(Chat::White, " %5d: %s", it->first, it->second->GetName());
x++;
}
++it;
}
client->Message(0, "%d npc corpses listed.", x);
client->Message(Chat::White, "%d npc corpses listed.", x);
}
void EntityList::ListPlayerCorpses(Client *client)
@@ -2918,15 +2918,15 @@ void EntityList::ListPlayerCorpses(Client *client)
uint32 x = 0;
auto it = corpse_list.begin();
client->Message(0, "Player Corpses in the zone:");
client->Message(Chat::White, "Player Corpses in the zone:");
while (it != corpse_list.end()) {
if (it->second->IsPlayerCorpse()) {
client->Message(0, " %5d: %s", it->first, it->second->GetName());
client->Message(Chat::White, " %5d: %s", it->first, it->second->GetName());
x++;
}
++it;
}
client->Message(0, "%d player corpses listed.", x);
client->Message(Chat::White, "%d player corpses listed.", x);
}
// returns the number of corpses deleted. A negative number indicates an error code.