Switch Inspect Buffs to use the OP code

Client 6.2 is SOL until someone find the op for that client
This commit is contained in:
Michael Cook (mackal)
2014-10-19 22:30:11 -04:00
parent 466eecacc4
commit a6ae2ca635
15 changed files with 73 additions and 20 deletions
+14
View File
@@ -1309,6 +1309,20 @@ namespace RoF
FINISH_ENCODE();
}*/
ENCODE(OP_InspectBuffs)
{
ENCODE_LENGTH_EXACT(InspectBuffs_Struct);
SETUP_DIRECT_ENCODE(InspectBuffs_Struct, structs::InspectBuffs_Struct);
// we go over the internal 25 instead of the packet's since no entry is 0, which it will be already
for (int i = 0; i < BUFF_COUNT; i++) {
OUT(spell_id[i]);
OUT(tics_remaining[i]);
}
FINISH_ENCODE();
}
ENCODE(OP_InspectRequest)
{
ENCODE_LENGTH_EXACT(Inspect_Struct);