Commit 9debe0f4cb82b81c695aaf4c6c485ab82e6c7900
1 parent
8f72f595
Small code tweak
Showing
1 changed file
with
4 additions
and
7 deletions
d2quest.c
... | ... | @@ -100,14 +100,11 @@ int getSpecialQuestStatus(D2QuestData* d, unsigned int specialQuestState, unsign |
100 | 100 | void setSpecialQuestStatus(D2QuestData* d, unsigned int specialQuestState, unsigned int difficulty, int bool) { |
101 | 101 | switch(specialQuestState) { |
102 | 102 | case D2S_SPECIALQUEST_AKARA_RESPEC: |
103 | - if(bool) { | |
104 | - // This operation only makes sense if the quest is actually completed, otherwise ignore request | |
105 | - if(isQuestCompleted(d,D2S_QUEST_DEN_OF_EVIL,difficulty)) { | |
103 | + // This operation only makes sense if the quest is actually completed, otherwise ignore request | |
104 | + if(isQuestCompleted(d,D2S_QUEST_DEN_OF_EVIL,difficulty)) { | |
105 | + if(bool) { | |
106 | 106 | d->quests[difficulty].akaraRespecData = 0x8001; |
107 | - } | |
108 | - } else { | |
109 | - // See above comment | |
110 | - if(isQuestCompleted(d,D2S_QUEST_DEN_OF_EVIL,difficulty)) { | |
107 | + } else { | |
111 | 108 | d->quests[difficulty].akaraRespecData = 0x2002; |
112 | 109 | } |
113 | 110 | } | ... | ... |