MCPcopy Create free account
hub / github.com/diasurgical/devilution / StartQuestlog

Function StartQuestlog

Source/quests.cpp:748–769  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

746}
747
748void StartQuestlog()
749{
750 DWORD i;
751
752 numqlines = 0;
753 for (i = 0; i < MAXQUESTS; i++) {
754 if (quests[i]._qactive == 2 && quests[i]._qlog) {
755 qlist[numqlines] = i;
756 numqlines++;
757 }
758 }
759 if (numqlines > 5) {
760 qtopline = 5 - (numqlines >> 1);
761 } else {
762 qtopline = 8;
763 }
764 qline = 22;
765 if (numqlines != 0)
766 qline = qtopline;
767 questlog = TRUE;
768 PentSpn2Frame = 1;
769}
770
771void QuestlogUp()
772{

Callers 3

PeekMessageAFunction · 0.85
PressCharFunction · 0.85
CheckBtnUpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected