| 587 | } |
| 588 | |
| 589 | void ResyncMPQuests() |
| 590 | { |
| 591 | #ifndef SPAWN |
| 592 | if (quests[QTYPE_KING]._qactive == 1 |
| 593 | && currlevel >= quests[QTYPE_KING]._qlevel - 1 |
| 594 | && currlevel <= quests[QTYPE_KING]._qlevel + 1) { |
| 595 | quests[QTYPE_KING]._qactive = 2; |
| 596 | NetSendCmdQuest(TRUE, QTYPE_KING); |
| 597 | } |
| 598 | if (quests[QTYPE_BUTCH]._qactive == 1 |
| 599 | && currlevel >= quests[QTYPE_BUTCH]._qlevel - 1 |
| 600 | && currlevel <= quests[QTYPE_BUTCH]._qlevel + 1) { |
| 601 | quests[QTYPE_BUTCH]._qactive = 2; |
| 602 | NetSendCmdQuest(TRUE, QTYPE_BUTCH); |
| 603 | } |
| 604 | if (quests[QTYPE_VB]._qactive == 1 && currlevel == quests[QTYPE_VB]._qlevel - 1) { |
| 605 | quests[QTYPE_VB]._qactive = 2; |
| 606 | NetSendCmdQuest(TRUE, QTYPE_VB); |
| 607 | } |
| 608 | if (QuestStatus(QTYPE_VB)) |
| 609 | AddObject(OBJ_ALTBOY, 2 * setpc_x + 20, 2 * setpc_y + 22); |
| 610 | #endif |
| 611 | } |
| 612 | |
| 613 | void ResyncQuests() |
| 614 | { |
no test coverage detected