diff --git a/src/egs_game.erl b/src/egs_game.erl index 21a5795..2ccfc88 100644 --- a/src/egs_game.erl +++ b/src/egs_game.erl @@ -659,7 +659,7 @@ handle(16#0d04, CSocket, GID, _, Orig) -> handle(16#0d07, _, GID, _, Orig) -> log(GID, "options changes"), - [{options, Options}] = egs_proto:parse_options_change(Orig), + << _:352, Options/bits >> = Orig, User = egs_db:users_select(GID), file:write_file(io_lib:format("save/~s/~b-character.options", [User#users.folder, User#users.charnumber]), Options); diff --git a/src/egs_proto.erl b/src/egs_proto.erl index 7cec9fe..fe06790 100644 --- a/src/egs_proto.erl +++ b/src/egs_proto.erl @@ -131,12 +131,6 @@ parse_chat(_, Packet) -> << _:384, FromGID:32/unsigned-integer, Modifiers:128/bits, FromName:512/bits, Message/bits >> = Packet, [{gid, FromGID}, {name, FromName}, {modifiers, Modifiers}, {message, Message}]. -%% @doc Parse the options change command. Retrieve the options for saving. - -parse_options_change(Packet) -> - << _:352, Options/bits >> = Packet, - [{options, Options}]. - %% @doc Center the camera on the player, if possible. %% @todo Probably.