From f41935dae2d445caaf7e028d52dbf91d5ae0725d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 4 Jun 2010 11:26:22 +0200 Subject: [PATCH] proto: Remove parse_platform_info. --- src/egs_game.erl | 4 ++-- src/egs_proto.erl | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/egs_game.erl b/src/egs_game.erl index 7fad855..4f44745 100644 --- a/src/egs_game.erl +++ b/src/egs_game.erl @@ -98,8 +98,8 @@ process_handle(16#020d, CSocket, Version, Orig) -> %% @doc Platform information handler. Obtain the game version. process_handle(16#080e, CSocket, _, Orig) -> - [{version, RealVersion}] = egs_proto:parse_platform_info(Orig), - ?MODULE:process(CSocket, RealVersion); + << _:416, Version:32/little-unsigned-integer, _/bits >> = Orig, + ?MODULE:process(CSocket, Version); %% @doc Unknown command handler. Do nothing. diff --git a/src/egs_proto.erl b/src/egs_proto.erl index ad8da03..473257c 100644 --- a/src/egs_proto.erl +++ b/src/egs_proto.erl @@ -162,12 +162,6 @@ parse_options_change(Packet) -> << _:352, Options/bits >> = Packet, [{options, Options}]. -%% @doc Parse the platform information command. Retrieve the game version for later use. - -parse_platform_info(Packet) -> - << _:416, Version:32/little-unsigned-integer, _/bits >> = Packet, - [{version, Version}]. - %% @doc Center the camera on the player, if possible. %% @todo Probably.