mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 23:01:30 +00:00
opcode_map.cpp readability
This commit is contained in:
parent
c1e5d8b7dc
commit
ffe447859a
@ -7,9 +7,9 @@ std::map<unsigned long, std::string> opcode_map;
|
||||
std::string get_opcode_name(unsigned long opcode)
|
||||
{
|
||||
std::map<unsigned long, std::string>::iterator itr;;
|
||||
|
||||
return (itr = opcode_map.find(opcode)) != opcode_map.end() ? itr->second : "OP_Unknown";
|
||||
}
|
||||
|
||||
void load_opcode_names()
|
||||
{
|
||||
opcode_map[0x0176] = "LiveOP_Heartbeat";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user