From f814bc49fb4d8eb599e9281e9beab150fb4372d4 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Tue, 9 Apr 2019 20:55:37 +0200 Subject: [PATCH] Clean up multi_process_tmsgs --- Source/multi.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Source/multi.cpp b/Source/multi.cpp index 7bd5a47ec..770484887 100644 --- a/Source/multi.cpp +++ b/Source/multi.cpp @@ -541,14 +541,11 @@ void multi_handle_all_packets(int players, TPkt *packet, int a3) void multi_process_tmsgs() { - int v0; // eax - TPkt pkt; // [esp+0h] [ebp-200h] + int cnt; + TPkt pkt; - while (1) { - v0 = tmsg_get((BYTE *)&pkt, 512); - if (!v0) - break; - multi_handle_all_packets(myplr, &pkt, v0); + while (cnt = tmsg_get((BYTE *)&pkt, 512)) { + multi_handle_all_packets(myplr, &pkt, cnt); } }