From 3ac49e431ea3cea62149f5a7941a8e58b0a72cc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 17 Jun 2010 01:57:11 +0200 Subject: [PATCH] game: Don't validate 0503 so tightly, prevent wrongful disconnects. --- src/egs_game.erl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/egs_game.erl b/src/egs_game.erl index fcc39d5..a970a9f 100644 --- a/src/egs_game.erl +++ b/src/egs_game.erl @@ -453,9 +453,7 @@ dispatch(CSocket, GID, Version, Orig) -> %% @doc Position change broadcast handler. Save the position and then dispatch it. broadcast(16#0503, GID, Orig) -> - LID = 0, % TODO: handle the LID correctly - << 100:32/little-unsigned-integer, 16#050301:24/unsigned-integer, _:72, GID:32/little-unsigned-integer, _:192, - GID:32/little-unsigned-integer, LID:32/little-unsigned-integer, Direction:32/bits, Coords:96/bits, _:96, + << 100:32/little-unsigned-integer, 16#050301:24/unsigned-integer, _:360, Direction:32/bits, Coords:96/bits, _:96, QuestID:32/little-unsigned-integer, ZoneID:32/little-unsigned-integer, MapID:32/little-unsigned-integer, EntryID:32/little-unsigned-integer, _:32 >> = Orig, User = egs_db:users_select(GID),