Core/Misc: Fix compile and char creation
- Added very basic honor/conquest support, no idea if its works even a little since there's no possibility of testing yet
This commit is contained in:
@@ -154,14 +154,16 @@ void ArenaTeamMgr::DistributeArenaPoints()
|
||||
SQLTransaction trans = CharacterDatabase.BeginTransaction();
|
||||
|
||||
// Cycle that gives points to all players
|
||||
/*
|
||||
for (std::map<uint32, uint32>::iterator playerItr = PlayerPoints.begin(); playerItr != PlayerPoints.end(); ++playerItr)
|
||||
{
|
||||
// Add points to player if online
|
||||
if (Player* player = HashMapHolder<Player>::Find(playerItr->first))
|
||||
player->ModifyArenaPoints(playerItr->second, &trans);
|
||||
player->ModifyConquestPoints(playerItr->second, &trans);
|
||||
else // Update database
|
||||
trans->PAppend("UPDATE characters SET arenaPoints=arenaPoints+%u WHERE guid=%u", playerItr->second, playerItr->first);
|
||||
}
|
||||
*/
|
||||
|
||||
CharacterDatabase.CommitTransaction(trans);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user