| 745 | } |
| 746 | |
| 747 | void 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 | |
| 772 | void LoadLighting(int i) |
| 773 | { |