From 1db610f42e542a67a36395d12cf22604acc47f3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 4 Jun 2010 11:23:15 +0200 Subject: [PATCH] proto: Remove parse_uni_select. --- src/egs_game.erl | 7 ++++--- src/egs_proto.erl | 6 ------ 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/egs_game.erl b/src/egs_game.erl index 15255cf..7fad855 100644 --- a/src/egs_game.erl +++ b/src/egs_game.erl @@ -548,10 +548,11 @@ handle(16#021d, CSocket, _, _, _) -> %% @todo Load 'Your room' correctly. handle(16#021f, CSocket, GID, _, Orig) -> - case egs_proto:parse_uni_select(Orig) of - [{uni, 0}] -> % cancelled uni selection + << _:352, Uni:32/little-unsigned-integer, _/bits >> = Orig, + case Uni of + 0 -> % cancelled uni selection ignore; - [{uni, 16#ffffffff}] -> + 16#ffffffff -> log(GID, "uni selection (my room)"), % 0230 0220 myroom_load(CSocket, GID, 1120000, 0, 423, 0); diff --git a/src/egs_proto.erl b/src/egs_proto.erl index 1e27f4f..ad8da03 100644 --- a/src/egs_proto.erl +++ b/src/egs_proto.erl @@ -168,12 +168,6 @@ parse_platform_info(Packet) -> << _:416, Version:32/little-unsigned-integer, _/bits >> = Packet, [{version, Version}]. -%% @doc Parse the uni selection command. - -parse_uni_select(Packet) -> - << _:352, Uni:32/little-unsigned-integer, _/bits >> = Packet, - [{uni, Uni}]. - %% @doc Center the camera on the player, if possible. %% @todo Probably.