psu_game: The 021b command must be sent everytime char_load is called.

This commit is contained in:
Loïc Hoguin 2010-09-05 00:46:38 +02:00
parent 0d7147b842
commit c43d069620

View File

@ -198,7 +198,6 @@ char_select_load(Number) ->
prev_area={psu_area, 0, 0, 0}, prev_entryid=0, pos=#pos{x=0.0, y=0.0, z=0.0, dir=0.0}, setid=0}, prev_area={psu_area, 0, 0, 0}, prev_entryid=0, pos=#pos{x=0.0, y=0.0, z=0.0, dir=0.0}, setid=0},
egs_user_model:write(User), egs_user_model:write(User),
char_load(User), char_load(User),
send_021b(),
event({area_change, 1100000, 0, 4, 5}), event({area_change, 1100000, 0, 4, 5}),
ssl:setopts(get(socket), [{active, true}]), ssl:setopts(get(socket), [{active, true}]),
?MODULE:loop(<< >>). ?MODULE:loop(<< >>).
@ -215,6 +214,7 @@ data_load(Folder, Number) ->
end. end.
%% @doc Load and send the character information to the client. %% @doc Load and send the character information to the client.
%% @todo Should wait for the 021c reply before doing area_change.
char_load(User) -> char_load(User) ->
send_0d01(User), send_0d01(User),
% 0246 % 0246
@ -228,7 +228,8 @@ char_load(User) ->
send_1501(), send_1501(),
send_1512(), send_1512(),
% 0303 % 0303
send_1602(). send_1602(),
send_021b().
%% @doc Return the current season information. %% @doc Return the current season information.
area_get_season(QuestID) -> area_get_season(QuestID) ->