Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: src/ChannelServer/Pets.cpp
- ===================================================================
- --- src/ChannelServer/Pets.cpp (revision 1355)
- +++ src/ChannelServer/Pets.cpp (working copy)
- @@ -204,7 +204,7 @@
- if (player->getPets()->getSummoned(i) != 0) {
- Pet *pet = player->getPets()->getPet(player->getPets()->getSummoned(i));
- if (pet->isSummoned()) {
- - PetsPacket::petSummoned(player, pet);
- + PetsPacket::petSummoned(player, pet, false, false);
- PetsPacket::showPet(player, pet);
- }
- else {
- @@ -212,7 +212,7 @@
- pet->startTimer();
- }
- pet->setSummoned(true);
- - PetsPacket::petSummoned(player, pet);
- + PetsPacket::petSummoned(player, pet, false, false);
- }
- }
- }
- Index: src/ChannelServer/PetsPacket.cpp
- ===================================================================
- --- src/ChannelServer/PetsPacket.cpp (revision 1355)
- +++ src/ChannelServer/PetsPacket.cpp (working copy)
- @@ -45,7 +45,7 @@
- Maps::maps[player->getMap()]->sendPacket(packet, player);
- }
- -void PetsPacket::petSummoned(Player *player, Pet *pet, bool kick) {
- +void PetsPacket::petSummoned(Player *player, Pet *pet, bool kick, bool show) {
- PacketCreator packet;
- packet.addShort(SEND_PET_SUMMONED);
- packet.addInt(player->getId());
- @@ -62,7 +62,10 @@
- packet.addByte(pet->getStance());
- packet.addInt(pet->getFH());
- }
- - Maps::maps[player->getMap()]->sendPacket(packet);
- + if (show)
- + Maps::maps[player->getMap()]->sendPacket(packet);
- + else
- + player->getSession()->send(packet);
- }
- void PetsPacket::showAnimation(Player *player, Pet *pet, int8_t animation, bool success) {
- Index: src/ChannelServer/PetsPacket.h
- ===================================================================
- --- src/ChannelServer/PetsPacket.h (revision 1355)
- +++ src/ChannelServer/PetsPacket.h (working copy)
- @@ -32,7 +32,7 @@
- namespace PetsPacket {
- void showChat(Player *player, Pet *pet, const string &message, int8_t act);
- void movePet(Player *player, Pet *pet, unsigned char *buf, int32_t buflen);
- - void petSummoned(Player *player, Pet *pet, bool kick = false);
- + void petSummoned(Player *player, Pet *pet, bool kick = false, bool show = true);
- void showAnimation(Player *player, Pet *pet, int8_t animation, bool success = false);
- void updatePet(Player *player, Pet *pet);
- void levelUp(Player *player, Pet *pet);
Add Comment
Please, Sign In to add comment