proto: Remove parse_uni_select.

This commit is contained in:
Loïc Hoguin 2010-06-04 11:23:15 +02:00
parent 2afaa28c05
commit 1db610f42e
2 changed files with 4 additions and 9 deletions

View File

@ -548,10 +548,11 @@ handle(16#021d, CSocket, _, _, _) ->
%% @todo Load 'Your room' correctly. %% @todo Load 'Your room' correctly.
handle(16#021f, CSocket, GID, _, Orig) -> handle(16#021f, CSocket, GID, _, Orig) ->
case egs_proto:parse_uni_select(Orig) of << _:352, Uni:32/little-unsigned-integer, _/bits >> = Orig,
[{uni, 0}] -> % cancelled uni selection case Uni of
0 -> % cancelled uni selection
ignore; ignore;
[{uni, 16#ffffffff}] -> 16#ffffffff ->
log(GID, "uni selection (my room)"), log(GID, "uni selection (my room)"),
% 0230 0220 % 0230 0220
myroom_load(CSocket, GID, 1120000, 0, 423, 0); myroom_load(CSocket, GID, 1120000, 0, 423, 0);

View File

@ -168,12 +168,6 @@ parse_platform_info(Packet) ->
<< _:416, Version:32/little-unsigned-integer, _/bits >> = Packet, << _:416, Version:32/little-unsigned-integer, _/bits >> = Packet,
[{version, Version}]. [{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. %% @doc Center the camera on the player, if possible.
%% @todo Probably. %% @todo Probably.