fix download quest info message
This commit is contained in:
@@ -593,15 +593,15 @@ void process_menu_item_info_request(shared_ptr<ServerState> s, shared_ptr<Client
|
|||||||
|
|
||||||
case QUEST_MENU_ID: {
|
case QUEST_MENU_ID: {
|
||||||
if (!s->quest_index) {
|
if (!s->quest_index) {
|
||||||
send_quest_info(c, u"$C6Quests are not available.");
|
send_quest_info(c, u"$C6Quests are not available.", !c->lobby_id);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
auto q = s->quest_index->get(c->version, cmd.item_id);
|
auto q = s->quest_index->get(c->version, cmd.item_id);
|
||||||
if (!q) {
|
if (!q) {
|
||||||
send_quest_info(c, u"$C6Quest does not exist.");
|
send_quest_info(c, u"$C6Quest does not exist.", !c->lobby_id);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
send_quest_info(c, q->long_description.c_str());
|
send_quest_info(c, q->long_description.c_str(), !c->lobby_id);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-2
@@ -494,8 +494,9 @@ void send_lobby_name(shared_ptr<Client> c, const u16string& text) {
|
|||||||
send_text(c, 0x8A, text);
|
send_text(c, 0x8A, text);
|
||||||
}
|
}
|
||||||
|
|
||||||
void send_quest_info(shared_ptr<Client> c, const u16string& text) {
|
void send_quest_info(shared_ptr<Client> c, const u16string& text,
|
||||||
send_text(c, 0xA3, text);
|
bool is_download_quest) {
|
||||||
|
send_text(c, is_download_quest ? 0xA5 : 0xA3, text);
|
||||||
}
|
}
|
||||||
|
|
||||||
void send_lobby_message_box(shared_ptr<Client> c, const u16string& text) {
|
void send_lobby_message_box(shared_ptr<Client> c, const u16string& text) {
|
||||||
|
|||||||
+2
-1
@@ -121,7 +121,8 @@ void send_enter_directory_patch(std::shared_ptr<Client> c, const std::string& di
|
|||||||
|
|
||||||
void send_message_box(std::shared_ptr<Client> c, const std::u16string& text);
|
void send_message_box(std::shared_ptr<Client> c, const std::u16string& text);
|
||||||
void send_lobby_name(std::shared_ptr<Client> c, const std::u16string& text);
|
void send_lobby_name(std::shared_ptr<Client> c, const std::u16string& text);
|
||||||
void send_quest_info(std::shared_ptr<Client> c, const std::u16string& text);
|
void send_quest_info(std::shared_ptr<Client> c, const std::u16string& text,
|
||||||
|
bool is_download_quest);
|
||||||
void send_lobby_message_box(std::shared_ptr<Client> c, const std::u16string& text);
|
void send_lobby_message_box(std::shared_ptr<Client> c, const std::u16string& text);
|
||||||
void send_ship_info(std::shared_ptr<Client> c, const std::u16string& text);
|
void send_ship_info(std::shared_ptr<Client> c, const std::u16string& text);
|
||||||
void send_text_message(std::shared_ptr<Client> c, const std::u16string& text);
|
void send_text_message(std::shared_ptr<Client> c, const std::u16string& text);
|
||||||
|
|||||||
Reference in New Issue
Block a user