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

Function LoadQuest

Source/loadsave.cpp:747–770  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

745}
746
747void LoadQuest(int i)
748{
749 QuestStruct *pQuest = &quests[i];
750
751 CopyChar(tbuff, &pQuest->_qlevel);
752 CopyChar(tbuff, &pQuest->_qtype);
753 CopyChar(tbuff, &pQuest->_qactive);
754 CopyChar(tbuff, &pQuest->_qlvltype);
755 CopyInt(tbuff, &pQuest->_qtx);
756 CopyInt(tbuff, &pQuest->_qty);
757 CopyChar(tbuff, &pQuest->_qslvl);
758 CopyChar(tbuff, &pQuest->_qidx);
759 CopyChar(tbuff, &pQuest->_qmsg);
760 CopyChar(tbuff, &pQuest->_qvar1);
761 CopyChar(tbuff, &pQuest->_qvar2);
762 tbuff += 3; // Alignment
763 CopyInt(tbuff, &pQuest->_qlog);
764
765 ReturnLvlX = WLoad();
766 ReturnLvlY = WLoad();
767 ReturnLvl = WLoad();
768 ReturnLvlT = WLoad();
769 DoomQuestState = WLoad();
770}
771
772void LoadLighting(int i)
773{

Callers 1

LoadGameFunction · 0.85

Calls 3

CopyCharFunction · 0.85
CopyIntFunction · 0.85
WLoadFunction · 0.85

Tested by

no test coverage detected