*Better support for negatives.

--HG--
branch : trunk
This commit is contained in:
maximius
2009-09-30 04:18:07 -07:00
parent 5737077371
commit 3c43ef7157
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1833,7 +1833,7 @@ void BattleGroundMgr::DistributeArenaPoints()
{
CharacterDatabase.PExecute("UPDATE characters SET arena_pending_points = 0 WHERE guid = '%u'", plr_itr->first);
CharacterDatabase._UpdateDataBlobValue(plr_itr->first, PLAYER_FIELD_ARENA_CURRENCY,
std::max(std::min(int32(plr_itr->second),int32(sWorld.getConfig(CONFIG_MAX_ARENA_POINTS))),0));
std::min(int32(plr_itr->second),int32(sWorld.getConfig(CONFIG_MAX_ARENA_POINTS))));
}
}