DEADSOFTWARE

fixed some logic errors, but shit's still bugged
[d2df-sdl.git] / src / game / g_nethandler.pas
index f505d62ecc848f9d4812fb6fbfcebea405a38149..b8d7c8040b1cd58cff7f22eb5f45b7d77b550c08 100644 (file)
@@ -108,10 +108,14 @@ begin
       NET_MSG_GEVENT: MC_RECV_GameEvent(B);
       NET_MSG_GSET:   MC_RECV_GameSettings(B);
 
-      NET_MSG_PLR:    if NetState <> NET_STATE_AUTH then MC_RECV_PlayerCreate(B);
-      NET_MSG_PLRDEL: if NetState <> NET_STATE_AUTH then MC_RECV_PlayerDelete(B);
-
-      else RawPos := RawPos + Len;
+      NET_MSG_PLR:
+        if NetState <> NET_STATE_AUTH then MC_RECV_PlayerCreate(B)
+        else RawPos := RawPos + Len-1;
+      NET_MSG_PLRDEL: 
+        if NetState <> NET_STATE_AUTH then MC_RECV_PlayerDelete(B)
+        else RawPos := RawPos + Len-1;
+
+      else RawPos := RawPos + Len-1;
     end;
   end;