Core/GameObject: fixed interaction distance with questgiver and door gameobjects by using the scaling size of the gobject

This commit is contained in:
Ovahlord
2018-04-16 19:34:40 +02:00
parent 8f9e46c6f1
commit 95e10ea1b1

View File

@@ -2479,6 +2479,9 @@ float GameObject::GetInteractionDistance() const
case GAMEOBJECT_TYPE_FISHINGHOLE:
case GAMEOBJECT_TYPE_FISHINGNODE:
return 20.0f + CONTACT_DISTANCE; // max spell range
case GAMEOBJECT_TYPE_DOOR:
case GAMEOBJECT_TYPE_QUESTGIVER:
return INTERACTION_DISTANCE + GetFloatValue(OBJECT_FIELD_SCALE_X);
default:
return INTERACTION_DISTANCE;
}