Skip to content

Commit

Permalink
Bugfix: Celia Infostring displaying after quest
Browse files Browse the repository at this point in the history
  • Loading branch information
kphoenix137 committed Mar 7, 2024
1 parent bc4f434 commit 600369e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Source/controls/plrctrls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,8 @@ void CheckTownersNearby()
int distance = GetDistance(Towners[i].position, 2);
if (distance == 0)
continue;
if (!IsTownerPresent(Towners[i]._ttype))
continue;
pcursmonst = i;
}
}
Expand Down
3 changes: 2 additions & 1 deletion Source/towners.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ struct Towner {
};

extern Towner Towners[NUM_TOWNERS];
/**
bool IsTownerPresent(_talker_id npc);
/**
* @brief Maps from a _talker_id value to a pointer to the Towner object, if they have been initialised
* @param type enum constant identifying the towner
* @return Pointer to the Towner or nullptr if they are not available
Expand Down

0 comments on commit 600369e

Please sign in to comment.