mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[10112] Rename GetObjectSize function to GetObjectBoundingRadius
To reflect better what the function should actually return and also to clarify when used in misc calculations. Signed-off-by: NoFantasy <nofantasy@nf.no>
This commit is contained in:
parent
0757b43929
commit
3eb2d2910e
11 changed files with 46 additions and 46 deletions
|
|
@ -440,7 +440,7 @@ bool ChatHandler::HandleNamegoCommand(const char* args)
|
|||
|
||||
// before GM
|
||||
float x,y,z;
|
||||
m_session->GetPlayer()->GetClosePoint(x,y,z,target->GetObjectSize());
|
||||
m_session->GetPlayer()->GetClosePoint(x, y, z, target->GetObjectBoundingRadius());
|
||||
target->TeleportTo(m_session->GetPlayer()->GetMapId(),x,y,z,target->GetOrientation());
|
||||
}
|
||||
else
|
||||
|
|
@ -2180,7 +2180,7 @@ bool ChatHandler::HandleGroupgoCommand(const char* args)
|
|||
|
||||
// before GM
|
||||
float x,y,z;
|
||||
m_session->GetPlayer()->GetClosePoint(x,y,z,pl->GetObjectSize());
|
||||
m_session->GetPlayer()->GetClosePoint(x, y, z, pl->GetObjectBoundingRadius());
|
||||
pl->TeleportTo(m_session->GetPlayer()->GetMapId(),x,y,z,pl->GetOrientation());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue