Fixed horse refresh when change seal
This commit is contained in:
@ -12,6 +12,48 @@
|
|||||||
dwMountVnum = pMountItem->GetValue(1);
|
dwMountVnum = pMountItem->GetValue(1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// then search:
|
||||||
|
|
||||||
|
if (m_chHorse)
|
||||||
|
{
|
||||||
|
...
|
||||||
|
}
|
||||||
|
|
||||||
|
// and replace with this:
|
||||||
|
|
||||||
|
if (m_chHorse)
|
||||||
|
{
|
||||||
|
#ifdef ENABLE_MOUNT_LIKE_HORSE
|
||||||
|
if (GetMountVnum() != dwVnum) {
|
||||||
|
HorseSummon(false);
|
||||||
|
HorseSummon(true);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*Example
|
||||||
|
void CHARACTER::HorseSummon(bool bSummon, bool bFromFar, DWORD dwVnum, const char* pPetName)
|
||||||
|
{
|
||||||
|
#ifdef ENABLE_MOUNT_LIKE_HORSE
|
||||||
|
if (const LPITEM pMountItem = GetWear(WEAR_COSTUME_MOUNT))
|
||||||
|
dwVnum = pMountItem->GetValue(1);
|
||||||
|
#endif
|
||||||
|
if (bSummon)
|
||||||
|
{
|
||||||
|
// NOTE: If you summon and there is already a horse, it will do nothing.
|
||||||
|
if (m_chHorse)
|
||||||
|
{
|
||||||
|
#ifdef ENABLE_MOUNT_LIKE_HORSE // try fix
|
||||||
|
if (GetMountVnum() != dwVnum) {
|
||||||
|
HorseSummon(false);
|
||||||
|
HorseSummon(true);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// then search:
|
// then search:
|
||||||
|
|
||||||
UpdatePacket();
|
UpdatePacket();
|
||||||
|
|||||||
Reference in New Issue
Block a user