mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 03:31:08 +00:00
Fill function calls using magic numbers
This commit is contained in:
+6
-6
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user