Temporarily remove sanity check for egg pickup distance

This commit is contained in:
Gent S 2020-11-17 13:51:35 -05:00
parent 12baece1b2
commit 0075457f81

View File

@ -879,10 +879,12 @@ void NPCManager::eggPickup(CNSocket* sock, CNPacketData* data) {
return; return;
} }
/* this has some issues with position desync, leaving it out for now
if (abs(egg->appearanceData.iX - plr->x)>500 || abs(egg->appearanceData.iY - plr->y) > 500) { if (abs(egg->appearanceData.iX - plr->x)>500 || abs(egg->appearanceData.iY - plr->y) > 500) {
std::cout << "[WARN] Player tried to open an egg from the other chunk?!" << std::endl; std::cout << "[WARN] Player tried to open an egg from the other chunk?!" << std::endl;
return; return;
} }
*/
int typeId = egg->appearanceData.iNPCType; int typeId = egg->appearanceData.iNPCType;
if (EggTypes.find(typeId) == EggTypes.end()) { if (EggTypes.find(typeId) == EggTypes.end()) {