[0031] Improvements and typofixes

Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
This commit is contained in:
Yaki Khadafi 2012-08-09 11:40:19 +03:00 committed by Antz
parent afde27af12
commit 00488d845c
8 changed files with 14 additions and 23 deletions

View file

@ -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;