mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 13:37:05 +00:00
[10811] Use ObjectGuids in chat commands.
Still exist 15 GUID_LOPART uses in code.
This commit is contained in:
parent
c6d3c5e0d6
commit
b305f203b9
15 changed files with 151 additions and 146 deletions
|
|
@ -15035,7 +15035,7 @@ void Player::_LoadBGData(QueryResult* result)
|
|||
delete result;
|
||||
}
|
||||
|
||||
bool Player::LoadPositionFromDB(uint32& mapid, float& x,float& y,float& z,float& o, bool& in_flight, ObjectGuid guid)
|
||||
bool Player::LoadPositionFromDB(ObjectGuid guid, uint32& mapid, float& x, float& y, float& z, float& o, bool& in_flight)
|
||||
{
|
||||
QueryResult *result = CharacterDatabase.PQuery("SELECT position_x,position_y,position_z,orientation,map,taxi_path FROM characters WHERE guid = '%u'", guid.GetCounter());
|
||||
if(!result)
|
||||
|
|
@ -17572,7 +17572,7 @@ void Player::SendAttackSwingNotInRange()
|
|||
GetSession()->SendPacket( &data );
|
||||
}
|
||||
|
||||
void Player::SavePositionInDB(uint32 mapid, float x, float y, float z, float o, uint32 zone, ObjectGuid guid)
|
||||
void Player::SavePositionInDB(ObjectGuid guid, uint32 mapid, float x, float y, float z, float o, uint32 zone)
|
||||
{
|
||||
std::ostringstream ss;
|
||||
ss << "UPDATE characters SET position_x='"<<x<<"',position_y='"<<y
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue