From 0a0670268318215191345ad6c94e417a15e955aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 26 Aug 2010 18:08:07 +0200 Subject: [PATCH] psu_proto: Parse and then ignore command 0815. --- src/psu/psu_proto.erl | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/psu/psu_proto.erl b/src/psu/psu_proto.erl index 8ff9f6f..439a304 100644 --- a/src/psu/psu_proto.erl +++ b/src/psu/psu_proto.erl @@ -298,6 +298,22 @@ parse(Size, 16#0813, Channel, Data) -> ?ASSERT_EQ(VarJ, 16#ffffffff), {npc_invite, NPCid}; +%% @doc This command should be safely ignored. Probably indicates that a non-mission area change was successful. +parse(Size, 16#0815, Channel, Data) -> + << _LID:16/little, VarA:16/little, VarB:32/little, VarC:32/little, VarD:32/little, VarE:32/little, VarF:32/little, VarG:32/little, VarH:32/little, VarI:32/little >> = Data, + ?ASSERT_EQ(Size, 44), + ?ASSERT_EQ(Channel, 2), + ?ASSERT_EQ(VarA, 0), + ?ASSERT_EQ(VarB, 0), + ?ASSERT_EQ(VarC, 0), + ?ASSERT_EQ(VarD, 0), + ?ASSERT_EQ(VarE, 0), + ?ASSERT_EQ(VarF, 0), + ?ASSERT_EQ(VarG, 0), + ?ASSERT_EQ(VarH, 0), + ?ASSERT_EQ(VarI, 0), + ignore; + parse(Size, 16#0a10, Channel, Data) -> << _LID:16/little, VarA:16/little, VarB:32/little, VarC:32/little, VarD:32/little, VarE:32/little, VarF:32/little, VarG:32/little, VarH:32/little, VarI:32/little, ItemID:32 >> = Data,