From 63b3b0a7b990609bf9f0bdbc42b6d3d6cde74cac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 2 Sep 2010 17:16:15 +0200 Subject: [PATCH] psu_game: Small fix to 0402 command handling based on research. --- src/psu/psu_game.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/psu/psu_game.erl b/src/psu/psu_game.erl index 04bb495..52d104c 100644 --- a/src/psu/psu_game.erl +++ b/src/psu/psu_game.erl @@ -1004,7 +1004,7 @@ event({unicube_select, Selection, EntryID}) -> %% @todo Handle this packet properly. %% @todo Spawn cleared response event shouldn't be handled following this packet but when we see the spawn actually dead HP-wise. handle(16#0402, Data) -> - << SpawnID:32/little-unsigned-integer, _:64, Type:32/little-unsigned-integer, _:64 >> = Data, + << SpawnID:32/little-unsigned-integer, _:64, Type:16/little-unsigned-integer, _:80 >> = Data, case Type of 7 -> % spawn cleared @todo 1201 sent back with same values apparently, but not always log("cleared spawn ~b", [SpawnID]),