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&) {
|
||||
auto l = c->require_lobby();
|
||||
if (l->is_game()) {
|
||||
if (is_ep3(c->version())) {
|
||||
c->channel.send(0xED, 0x00);
|
||||
} else if (l->check_flag(Lobby::Flag::QUEST_IN_PROGRESS) || l->check_flag(Lobby::Flag::JOINABLE_QUEST_IN_PROGRESS)) {
|
||||
if (l->check_flag(Lobby::Flag::QUEST_IN_PROGRESS) || l->check_flag(Lobby::Flag::JOINABLE_QUEST_IN_PROGRESS)) {
|
||||
G_UnusedHeader cmd = {0x73, 0x01, 0x0000};
|
||||
c->channel.send(0x60, 0x00, cmd);
|
||||
c->floor = 0;
|
||||
} else if (is_ep3(c->version())) {
|
||||
c->channel.send(0xED, 0x00);
|
||||
} else {
|
||||
send_text_message(c, "$C6You must return to\nthe lobby first");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user