mangosR2/mangos — comment on commit 0d692b02a38eaa3a7186bc205315bb9ac819d509
File: src/game/Unit.cpp line 4064
By tst12:

IsWithinDistInMap(unit, INTERACTION_DISTANCE)
возможно будет достаточно?