From e151343737acd58de8d76cae1a772f02d238753e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 4 Jun 2010 12:03:37 +0200 Subject: [PATCH] proto: Remove parse_character_select. --- src/egs_game.erl | 2 +- src/egs_proto.erl | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) 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) ->