Merge branch 'fixes'

feature/prepare-cross-merge
Nuno 4 years ago committed by kaetemi
parent 17d84c5925
commit 000fdfb5d7
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -7789,15 +7789,12 @@ void CCharacter::setAnimalName(uint8 petIndex, ucstring customName)
animal.setCustomName(customName); animal.setCustomName(customName);
sendPetCustomNameToClient(petIndex); sendPetCustomNameToClient(petIndex);
if (!customName.empty())
{
TDataSetRow row = animal.SpawnedPets; TDataSetRow row = animal.SpawnedPets;
NLNET::CMessage msgout("CHARACTER_NAME"); NLNET::CMessage msgout("CHARACTER_NAME");
msgout.serial(row); msgout.serial(row);
msgout.serial(customName); msgout.serial(customName);
sendMessageViaMirror("IOS", msgout); sendMessageViaMirror("IOS", msgout);
} }
}
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void CCharacter::sendPetCustomNameToClient(uint8 petIndex) void CCharacter::sendPetCustomNameToClient(uint8 petIndex)

Loading…
Cancel
Save