Replace QuestStatus() with IsAvailable() in QuestStruct
This commit is contained in:
parent
286eb7144a
commit
40c804c0ba
10 changed files with 71 additions and 69 deletions
|
|
@ -421,7 +421,7 @@ void InitThemes()
|
|||
if (leveltype == DTYPE_CATACOMBS || leveltype == DTYPE_CAVES || leveltype == DTYPE_HELL) {
|
||||
for (int i = 0; i < themeCount; i++)
|
||||
themes[i].ttype = THEME_NONE;
|
||||
if (QuestStatus(Q_ZHAR)) {
|
||||
if (Quests[Q_ZHAR].IsAvailable()) {
|
||||
for (int j = 0; j < themeCount; j++) {
|
||||
themes[j].ttval = themeLoc[j].ttval;
|
||||
if (SpecialThemeFit(j, THEME_LIBRARY)) {
|
||||
|
|
@ -723,7 +723,7 @@ void Theme_Library(int t)
|
|||
}
|
||||
}
|
||||
|
||||
if (QuestStatus(Q_ZHAR)) {
|
||||
if (Quests[Q_ZHAR].IsAvailable()) {
|
||||
if (t == zharlib) {
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue