From c0ff7100fb3ebb4922dda2c626314316e83e620f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sun, 5 Sep 2010 15:38:58 +0200 Subject: [PATCH] psu_game: Fix send_0222 based on research. This fixes the EXP TNL issue. --- src/psu/psu_game.erl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/psu/psu_game.erl b/src/psu/psu_game.erl index 7276085..df414a1 100644 --- a/src/psu/psu_game.erl +++ b/src/psu/psu_game.erl @@ -1283,11 +1283,14 @@ send_021e_build([{ID, Align, Name, Pop}|Tail], Acc) -> %% @doc Send the current universe name and number. %% @todo Currently only have universe number 2, named EGS Test. +%% @todo We must have a parameter indicating whether this is a room or a normal universe. send_0222() -> UCS2Name = << << X:8, 0:8 >> || X <- "EGS Test" >>, + Padding = 8 * (44 - byte_size(UCS2Name)), + UniID = 2, GID = get(gid), - send(<< 16#02220300:32, 0:32, 16#00001200:32, GID:32/little-unsigned-integer, 0:64, 16#00011300:32, GID:32/little-unsigned-integer, 0:64, - 2:32/little-unsigned-integer, 0:32, UCS2Name/binary, 0:16 >>). + send(<< 16#02220300:32, 16#ffff:16, 0:16, 16#00001200:32, GID:32/little, 0:64, 16#00011300:32, GID:32/little, 0:64, + UniID:32/little, 16#01009e02:32, UCS2Name/binary, 0:Padding, 16#aa000000:32 >>). %% @todo No idea! send_022c(A, B) ->