[9246] Move more values from data to own fields.

Now possible (need recheck) glyphs still used form `data`.

Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
hunuza 2010-01-24 00:29:52 +03:00 committed by VladimirMangos
parent 0ff9250de2
commit aa14f45e60
8 changed files with 168 additions and 32 deletions

View file

@ -1800,7 +1800,7 @@ void BattleGroundMgr::DistributeArenaPoints()
for (std::map<uint32, uint32>::iterator plr_itr = PlayerPoints.begin(); plr_itr != PlayerPoints.end(); ++plr_itr)
{
//update to database
CharacterDatabase.PExecute("UPDATE characters SET arena_pending_points = '%u' WHERE guid = '%u'", plr_itr->second, plr_itr->first);
CharacterDatabase.PExecute("UPDATE characters SET arenaPoints = arenaPoints + '%u' WHERE guid = '%u'", plr_itr->second, plr_itr->first);
//add points if player is online
Player* pl = sObjectMgr.GetPlayer(plr_itr->first);
if (pl)