Temporarily disable spawn check for mob pathing

This commit is contained in:
gsemaj 2021-05-01 20:43:17 -04:00 committed by Gent Semaj
parent 0c05fc4add
commit b2a8b86e4c

View File

@ -350,11 +350,13 @@ static void loadPaths(json& pathData, int32_t* nextId) {
std::cout << "[INFO] Using static path for mob " << mob->appearanceData.iNPCType << " with ID " << pair.first << std::endl; std::cout << "[INFO] Using static path for mob " << mob->appearanceData.iNPCType << " with ID " << pair.first << std::endl;
auto firstPoint = npcPath.value()["points"][0]; auto firstPoint = npcPath.value()["points"][0];
/*
if (firstPoint["iX"] != mob->spawnX || firstPoint["iY"] != mob->spawnY) { if (firstPoint["iX"] != mob->spawnX || firstPoint["iY"] != mob->spawnY) {
std::cout << "[FATAL] The first point of the route for mob " << pair.first << std::cout << "[FATAL] The first point of the route for mob " << pair.first <<
" (type " << mob->appearanceData.iNPCType << ") does not correspond with its spawn point." << std::endl; " (type " << mob->appearanceData.iNPCType << ") does not correspond with its spawn point." << std::endl;
exit(1); exit(1);
} }
*/
constructPathNPC(*npcPath, pair.first); constructPathNPC(*npcPath, pair.first);
mob->staticPath = true; mob->staticPath = true;