mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-16 21:20:01 -04:00
Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
Conflicts: src/server/game/Globals/ObjectMgr.cpp
This commit is contained in:
@@ -1196,13 +1196,6 @@ void GameObject::Use(Unit* user)
|
||||
// calculate the distance between the player and this slot
|
||||
float thisDistance = player->GetDistance2d(x_i, y_i);
|
||||
|
||||
/* debug code. It will spawn a npc on each slot to visualize them.
|
||||
Creature* helper = player->SummonCreature(14496, x_i, y_i, GetPositionZ(), GetOrientation(), TEMPSUMMON_TIMED_OR_DEAD_DESPAWN, 10000);
|
||||
std::ostringstream output;
|
||||
output << i << ": thisDist: " << thisDistance;
|
||||
helper->MonsterSay(output.str().c_str(), LANG_UNIVERSAL, 0);
|
||||
*/
|
||||
|
||||
if (thisDistance <= lowestDist)
|
||||
{
|
||||
nearest_slot = itr->first;
|
||||
@@ -1223,8 +1216,6 @@ void GameObject::Use(Unit* user)
|
||||
return;
|
||||
}
|
||||
}
|
||||
//else
|
||||
//player->GetSession()->SendNotification("There's nowhere left for you to sit.");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user