mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 19:37:03 +00:00
[0031] Improvements and typofixes
Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
This commit is contained in:
parent
afde27af12
commit
00488d845c
8 changed files with 14 additions and 23 deletions
|
|
@ -2721,8 +2721,8 @@ void ObjectMgr::LoadPlayerInfo()
|
|||
{
|
||||
// Load playercreate
|
||||
{
|
||||
// 0 1 2 3 4 5 6
|
||||
QueryResult* result = WorldDatabase.Query("SELECT race, class, map, zone, position_x, position_y, position_z, orientation FROM playercreateinfo");
|
||||
// 0 1 2 3 4 5 6 7 8
|
||||
QueryResult* result = WorldDatabase.Query("SELECT race, class, map, zone, position_x, position_y, position_z, orientation, phaseMap FROM playercreateinfo");
|
||||
|
||||
uint32 count = 0;
|
||||
|
||||
|
|
@ -2751,6 +2751,7 @@ void ObjectMgr::LoadPlayerInfo()
|
|||
float positionY = fields[5].GetFloat();
|
||||
float positionZ = fields[6].GetFloat();
|
||||
float orientation = fields[7].GetFloat();
|
||||
uint16 phaseMap = fields[8].GetUInt16();
|
||||
|
||||
ChrRacesEntry const* rEntry = sChrRacesStore.LookupEntry(current_race);
|
||||
if (!rEntry || !((1 << (current_race - 1)) & RACEMASK_ALL_PLAYABLE))
|
||||
|
|
@ -2787,6 +2788,7 @@ void ObjectMgr::LoadPlayerInfo()
|
|||
pInfo->positionY = positionY;
|
||||
pInfo->positionZ = positionZ;
|
||||
pInfo->orientation = orientation;
|
||||
pInfo->phaseMap = phaseMap;
|
||||
|
||||
pInfo->displayId_m = rEntry->model_m;
|
||||
pInfo->displayId_f = rEntry->model_f;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue