Replace QuestStatus() with IsAvailable() in QuestStruct

This commit is contained in:
BC Ko 2021-08-17 22:29:59 -07:00 committed by Anders Jenbo
commit 40c804c0ba
10 changed files with 71 additions and 69 deletions

View file

@ -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;
}