@@ -1689,7 +1689,7 @@ void ProtocolGame::parseSetOutfit(NetworkMessage &msg) {
1689
1689
g_logger ().debug (" Bool isMounted: {}" , isMounted);
1690
1690
}
1691
1691
1692
- uint8_t isMountRandomized = msg.getByte ();
1692
+ uint8_t isMountRandomized = !oldProtocol ? msg.getByte () : 0 ;
1693
1693
g_game ().playerChangeOutfit (player->getID (), newOutfit, isMountRandomized);
1694
1694
} else if (outfitType == 1 ) {
1695
1695
// This value probably has something to do with try outfit variable inside outfit window dialog
@@ -3247,12 +3247,6 @@ void ProtocolGame::sendCreatureOutfit(const std::shared_ptr<Creature> &creature,
3247
3247
msg.add <uint32_t >(creature->getID ());
3248
3248
AddOutfit (msg, newOutfit);
3249
3249
3250
- if (!oldProtocol && newOutfit.lookMount != 0 ) {
3251
- msg.addByte (newOutfit.lookMountHead );
3252
- msg.addByte (newOutfit.lookMountBody );
3253
- msg.addByte (newOutfit.lookMountLegs );
3254
- msg.addByte (newOutfit.lookMountFeet );
3255
- }
3256
3250
writeToOutputBuffer (msg);
3257
3251
}
3258
3252
@@ -7184,10 +7178,12 @@ void ProtocolGame::sendOutfitWindow() {
7184
7178
return ;
7185
7179
}
7186
7180
7187
- msg.addByte (isSupportOutfit ? 0 : currentOutfit.lookMountHead );
7188
- msg.addByte (isSupportOutfit ? 0 : currentOutfit.lookMountBody );
7189
- msg.addByte (isSupportOutfit ? 0 : currentOutfit.lookMountLegs );
7190
- msg.addByte (isSupportOutfit ? 0 : currentOutfit.lookMountFeet );
7181
+ if (currentOutfit.lookMount == 0 ) {
7182
+ msg.addByte (isSupportOutfit ? 0 : currentOutfit.lookMountHead );
7183
+ msg.addByte (isSupportOutfit ? 0 : currentOutfit.lookMountBody );
7184
+ msg.addByte (isSupportOutfit ? 0 : currentOutfit.lookMountLegs );
7185
+ msg.addByte (isSupportOutfit ? 0 : currentOutfit.lookMountFeet );
7186
+ }
7191
7187
msg.add <uint16_t >(currentOutfit.lookFamiliarsType );
7192
7188
7193
7189
auto startOutfits = msg.getBufferPosition ();
@@ -7750,12 +7746,6 @@ void ProtocolGame::AddCreature(NetworkMessage &msg, const std::shared_ptr<Creatu
7750
7746
if (!creature->isInGhostMode () && !creature->isInvisible ()) {
7751
7747
const Outfit_t &outfit = creature->getCurrentOutfit ();
7752
7748
AddOutfit (msg, outfit);
7753
- if (!oldProtocol && outfit.lookMount != 0 ) {
7754
- msg.addByte (outfit.lookMountHead );
7755
- msg.addByte (outfit.lookMountBody );
7756
- msg.addByte (outfit.lookMountLegs );
7757
- msg.addByte (outfit.lookMountFeet );
7758
- }
7759
7749
} else {
7760
7750
static Outfit_t outfit;
7761
7751
AddOutfit (msg, outfit);
@@ -7945,6 +7935,12 @@ void ProtocolGame::AddOutfit(NetworkMessage &msg, const Outfit_t &outfit, bool a
7945
7935
7946
7936
if (addMount) {
7947
7937
msg.add <uint16_t >(outfit.lookMount );
7938
+ if (!oldProtocol && outfit.lookMount != 0 ) {
7939
+ msg.addByte (outfit.lookMountHead );
7940
+ msg.addByte (outfit.lookMountBody );
7941
+ msg.addByte (outfit.lookMountLegs );
7942
+ msg.addByte (outfit.lookMountFeet );
7943
+ }
7948
7944
}
7949
7945
}
7950
7946
0 commit comments