diff options
author | Spp <none@none> | 2010-04-07 19:14:10 +0200 |
---|---|---|
committer | Spp <none@none> | 2010-04-07 19:14:10 +0200 |
commit | d19e12708001fbef2308be0e8cb5375a2ac7af48 (patch) | |
tree | 09fc8f67a6197802e0512950f0b0a3438a9834e8 /src/game/QuestDef.cpp | |
parent | 2e127f7a30706dc1d40c65de22ff02851732da24 (diff) |
Code style (game + scripts only):
"if(" --> "if ("
--HG--
branch : trunk
Diffstat (limited to 'src/game/QuestDef.cpp')
-rw-r--r-- | src/game/QuestDef.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/QuestDef.cpp b/src/game/QuestDef.cpp index 97ff3024bb5..23222831fc4 100644 --- a/src/game/QuestDef.cpp +++ b/src/game/QuestDef.cpp @@ -176,13 +176,13 @@ Quest::Quest(Field * questRecord) uint32 Quest::XPValue( Player *pPlayer ) const { - if( pPlayer ) + if ( pPlayer ) { const QuestXPEntry *xpentry; int32 quest_level = (QuestLevel == -1 ? pPlayer->getLevel() : QuestLevel); xpentry = sQuestXPStore.LookupEntry(quest_level); - if(!xpentry) + if (!xpentry) return 0; int diffFactor = 2 * (quest_level - pPlayer->getLevel()) + 20; @@ -211,7 +211,7 @@ uint32 Quest::XPValue( Player *pPlayer ) const int32 Quest::GetRewOrReqMoney() const { - if(RewOrReqMoney <= 0) + if (RewOrReqMoney <= 0) return RewOrReqMoney; return int32(RewOrReqMoney * sWorld.getRate(RATE_DROP_MONEY)); |