mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[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:
parent
0ff9250de2
commit
aa14f45e60
8 changed files with 168 additions and 32 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue