mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
Simplify code.
This commit is contained in:
parent
df457c3ff5
commit
1aa6c8eac9
1 changed files with 2 additions and 10 deletions
|
|
@ -6064,16 +6064,8 @@ void Player::RewardReputation(Quest const *pQuest)
|
|||
}
|
||||
else
|
||||
{
|
||||
uint32 row = 1;
|
||||
int32 field = 0;
|
||||
|
||||
if (pQuest->RewRepValueId[i] < 0)
|
||||
{
|
||||
++row;
|
||||
field = abs(pQuest->RewRepValueId[i]);
|
||||
}
|
||||
else
|
||||
field = pQuest->RewRepValueId[i];
|
||||
uint32 row = ((pQuest->RewRepValueId[i] < 0) ? 1 : 0) + 1;
|
||||
uint32 field = abs(pQuest->RewRepValueId[i]);
|
||||
|
||||
if (const QuestFactionRewardEntry *pRow = sQuestFactionRewardStore.LookupEntry(row))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue