void Map_v2::findNearestToDest(Mult::Mult_Object *obj) { int16 wayPoint = findNearestWayPoint(obj->destX, obj->destY); if (wayPoint != -1) obj->nearestDest = wayPoint; }
void Map_v1::findNearestToDest(Mult::Mult_Object *obj) { int16 wayPoint = findNearestWayPoint(_destX, _destY); if (wayPoint != -1) _nearestDest = wayPoint; }
void Map_v2::findNearestToGob(Mult::Mult_Object *obj) { int16 wayPoint = findNearestWayPoint(obj->goblinX, obj->goblinY); if (wayPoint != -1) obj->nearestWayPoint = wayPoint; }
void Map_v1::findNearestToGob(Mult::Mult_Object *obj) { int16 wayPoint = findNearestWayPoint(_curGoblinX, _curGoblinY); if (wayPoint != -1) _nearestWayPoint = wayPoint; }