Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead

This commit is contained in:
Arthur Ice 2015-01-17 18:32:41 -08:00
parent 1303a297c0
commit 78eb852ed3

View File

@ -2540,7 +2540,7 @@ bool Client::BindWound(Mob* bindmob, bool start, bool fail){
} }
else { else {
if (!GetFeigned() && (bindmob->DistNoRoot(*this) <= 400)) { if (!GetFeigned() && (ComparativeDistance(bindmob->GetPosition(), m_Position) <= 400)) {
// send bindmob bind done // send bindmob bind done
if(!bindmob->IsAIControlled() && bindmob != this ) { if(!bindmob->IsAIControlled() && bindmob != this ) {