Command changes and code cleanup

This commit is contained in:
KimLS
2017-07-21 20:22:33 -07:00
parent ab33148f81
commit bdc90ac3a7
12 changed files with 253 additions and 2482 deletions
+2 -3
View File
@@ -600,9 +600,8 @@ bool Client::Process() {
EQApplicationPacket *app = nullptr;
if (!eqs->CheckState(CLOSING))
{
while (ret && (app = (EQApplicationPacket *)eqs->PopPacket())) {
if (app)
ret = HandlePacket(app);
while (app = eqs->PopPacket()) {
HandlePacket(app);
safe_delete(app);
}
}