Some fixes to guild/arenateam events. Big thx to TOM_RUS.

--HG--
branch : trunk
This commit is contained in:
n0n4m3
2010-04-11 11:06:51 +04:00
parent 1dc4f7c745
commit 93f7e2796c
11 changed files with 218 additions and 255 deletions
+2 -9
View File
@@ -6334,16 +6334,9 @@ void Player::RewardReputation(Quest const *pQuest)
}
else
{
uint32 row = 1;
int32 field = 0;
uint32 row = ((pQuest->RewRepValueId[i] < 0) ? 1 : 0) + 1;
uint32 field = abs(pQuest->RewRepValueId[i]);
if (pQuest->RewRepValueId[i] < 0)
{
++row;
field = abs(pQuest->RewRepValueId[i]);
}
else
field = pQuest->RewRepValueId[i];
if (const QuestFactionRewEntry *pRow = sQuestFactionRewardStore.LookupEntry(row))
{
int32 repPoints = pRow->QuestRewFactionValue[field];