mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-09-05 14:58:27 +00:00
fix: playing an emote not showing on all clients (#1800)
* Fix emote broadcast failure with adding new GameMsg * Remove PlayAnimation ()function in place of EmotePlayed() Co-authored-by: David Markowitz <39972741+EmosewaMC@users.noreply.github.com> * Change int casting methodology to explicit int32_t for consistency * Set default behavior for EmotePlayed struct This is to avoid undefined behavior when using method --------- Co-authored-by: David Markowitz <39972741+EmosewaMC@users.noreply.github.com>
This commit is contained in:
@@ -833,6 +833,15 @@ namespace GameMessages {
|
||||
struct ResetModelToDefaults : public GameMsg {
|
||||
ResetModelToDefaults() : GameMsg(MessageType::Game::RESET_MODEL_TO_DEFAULTS) {}
|
||||
};
|
||||
};
|
||||
|
||||
struct EmotePlayed : public GameMsg {
|
||||
EmotePlayed() : GameMsg(MessageType::Game::EMOTE_PLAYED), emoteID(0), targetID(0) {}
|
||||
|
||||
void Serialize(RakNet::BitStream& stream) const override;
|
||||
|
||||
int32_t emoteID;
|
||||
LWOOBJID targetID;
|
||||
};
|
||||
|
||||
};
|
||||
#endif // GAMEMESSAGES_H
|
||||
|
Reference in New Issue
Block a user