[mr3210] Fix distance calculation issues. Part I
[mr3210] Part II. Fix melee attack distance when players moving (PvP). Close #281, #1389

* Works fine about three months on live servers. All old problems with PvP gone.