fix $exit when v3 quests are loaded in ep3 games
This commit is contained in:
+3
-3
@@ -491,12 +491,12 @@ static void server_command_persist(shared_ptr<Client> c, const std::string&) {
|
|||||||
static void server_command_exit(shared_ptr<Client> c, const std::string&) {
|
static void server_command_exit(shared_ptr<Client> c, const std::string&) {
|
||||||
auto l = c->require_lobby();
|
auto l = c->require_lobby();
|
||||||
if (l->is_game()) {
|
if (l->is_game()) {
|
||||||
if (is_ep3(c->version())) {
|
if (l->check_flag(Lobby::Flag::QUEST_IN_PROGRESS) || l->check_flag(Lobby::Flag::JOINABLE_QUEST_IN_PROGRESS)) {
|
||||||
c->channel.send(0xED, 0x00);
|
|
||||||
} else if (l->check_flag(Lobby::Flag::QUEST_IN_PROGRESS) || l->check_flag(Lobby::Flag::JOINABLE_QUEST_IN_PROGRESS)) {
|
|
||||||
G_UnusedHeader cmd = {0x73, 0x01, 0x0000};
|
G_UnusedHeader cmd = {0x73, 0x01, 0x0000};
|
||||||
c->channel.send(0x60, 0x00, cmd);
|
c->channel.send(0x60, 0x00, cmd);
|
||||||
c->floor = 0;
|
c->floor = 0;
|
||||||
|
} else if (is_ep3(c->version())) {
|
||||||
|
c->channel.send(0xED, 0x00);
|
||||||
} else {
|
} else {
|
||||||
send_text_message(c, "$C6You must return to\nthe lobby first");
|
send_text_message(c, "$C6You must return to\nthe lobby first");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user