Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Fix: Battle list vocations #1690

Merged
merged 2 commits into from
Aug 27, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions src/protocolgame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3638,9 +3638,14 @@ void ProtocolGame::AddCreature(NetworkMessage& msg, const Creature* creature, bo
}
}

if (creatureType == CREATURETYPE_PLAYER) {
msg.addByte(0);
}
if (creatureType == CREATURETYPE_PLAYER) {
const Player* otherCreature = creature->getPlayer();
if (otherCreature) {
msg.addByte(otherCreature->getVocation()->getClientId());
} else {
msg.addByte(0);
}
}

msg.addByte(creature->getSpeechBubble());
msg.addByte(0xFF); // MARK_UNMARKED
Expand Down