Skip to content

Commit

Permalink
fix: trade between players in canary 13.40 (#965)
Browse files Browse the repository at this point in the history
  • Loading branch information
kokekanon authored Nov 13, 2024
1 parent 8005fc3 commit c3aace1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/client/protocolcodes.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ namespace Proto
GameServerMissleEffect = 133, // Anthem on 13.x
GameServerItemClasses = 134,
GameServerTrappers = 135,
GameServerCloseForgeWindow = 137,
GameServerCreatureData = 139,
GameServerCreatureHealth = 140,
GameServerCreatureLight = 141,
Expand Down
1 change: 1 addition & 0 deletions src/client/protocolgame.h
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ class ProtocolGame : public Protocol
void parseCreatureMark(const InputMessagePtr& msg);
void parseTrappers(const InputMessagePtr& msg);
void addCreatureIcon(const InputMessagePtr& msg);
void parseCloseForgeWindow(const InputMessagePtr& msg);
void parseCreatureData(const InputMessagePtr& msg);
void parseCreatureHealth(const InputMessagePtr& msg);
void parseCreatureLight(const InputMessagePtr& msg);
Expand Down
8 changes: 8 additions & 0 deletions src/client/protocolgameparse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,9 @@ void ProtocolGame::parseMessage(const InputMessagePtr& msg)
case Proto::GameServerTrappers:
parseTrappers(msg);
break;
case Proto::GameServerCloseForgeWindow:
parseCloseForgeWindow(msg);
break;
case Proto::GameServerCreatureData:
parseCreatureData(msg);
break;
Expand Down Expand Up @@ -1844,6 +1847,11 @@ void ProtocolGame::addCreatureIcon(const InputMessagePtr& msg)
// TODO: implement creature icons usage
}

void ProtocolGame::parseCloseForgeWindow(const InputMessagePtr& /*msg*/)
{
g_lua.callGlobalField("g_game", "onCloseForgeCloseWindows");
}

void ProtocolGame::parseCreatureData(const InputMessagePtr& msg)
{
const uint32_t creatureId = msg->getU32();
Expand Down

0 comments on commit c3aace1

Please sign in to comment.