Core/Misc: fixed a scenario when character factionchange create unexpected results, also moved packet generating code into unique methods

This commit is contained in:
joschiwald committed 2014-10-19 15:30:35 +02:00
1 parent 183a0c59e0
commit 1a075f0454
10 files changed
+430 -431

No files matched your search

+4 -3
View File
@@ -510,13 +510,14 @@ public:
handler->PSendSysMessage(LANG_SUMMONING, nameLink.c_str(), handler->GetTrinityString(LANG_OFFLINE));
// in point where GM stay
Player::SavePositionInDB(handler->GetSession()->GetPlayer()->GetMapId(),
SQLTransaction dummy;
Player::SavePositionInDB(WorldLocation(handler->GetSession()->GetPlayer()->GetMapId(),
handler->GetSession()->GetPlayer()->GetPositionX(),
handler->GetSession()->GetPlayer()->GetPositionY(),
handler->GetSession()->GetPlayer()->GetPositionZ(),
handler->GetSession()->GetPlayer()->GetOrientation(),
handler->GetSession()->GetPlayer()->GetOrientation()),
handler->GetSession()->GetPlayer()->GetZoneId(),
targetGuid);
targetGuid, dummy);
}
return true;