diff --git a/src/egs_game.erl b/src/egs_game.erl index 7954d6b..7f455f8 100644 --- a/src/egs_game.erl +++ b/src/egs_game.erl @@ -128,7 +128,7 @@ char_select(CSocket, GID, Version) -> char_select_handle(16#020b, CSocket, GID, Version, Orig) -> log(GID, "character selection"), - [{number, Number}] = egs_proto:parse_character_select(Orig), + << _:352, Number:32/little-unsigned-integer, _/bits >> = Orig, char_select_load(CSocket, GID, Version, Number); %% @doc Character creation handler. diff --git a/src/egs_proto.erl b/src/egs_proto.erl index ca2da46..8866623 100644 --- a/src/egs_proto.erl +++ b/src/egs_proto.erl @@ -119,12 +119,6 @@ packet_split(Packet, Result) -> end end. -%% @doc Parse a character selection command. Return the selected character's number. - -parse_character_select(Packet) -> - << _:352, Number:32/little-unsigned-integer, _/bits >> = Packet, - [{number, Number}]. - %% @doc Parse a chat command. AOTI v2.000 version of the command. parse_chat(0, Packet) ->