don't send media updates to Ep3 NTE clients
This commit is contained in:
@@ -2323,7 +2323,7 @@ CardIndex::CardIndex(
|
||||
this->compressed_card_definitions = prs_compress(decompressed_data);
|
||||
uint64_t diff = now() - start;
|
||||
static_game_data_log.info(
|
||||
"Compressed card definitions (%zu bytes -> %zu bytes) in %" PRIu64 "ms",
|
||||
"Compressed card definitions (%zu bytes -> %zu bytes) in %" PRIu64 "us",
|
||||
decompressed_data.size(), this->compressed_card_definitions.size(), diff);
|
||||
}
|
||||
|
||||
@@ -2341,7 +2341,7 @@ CardIndex::CardIndex(
|
||||
this->compressed_card_definitions = prs_compress_optimal(decompressed_data.data(), decompressed_data.size());
|
||||
uint64_t diff = now() - start;
|
||||
static_game_data_log.info(
|
||||
"Compressed card definitions (0x%zX bytes -> 0x%zX bytes) in %" PRIu64 "ms",
|
||||
"Compressed card definitions (0x%zX bytes -> 0x%zX bytes) in %" PRIu64 "us",
|
||||
decompressed_data.size(), this->compressed_card_definitions.size(), diff);
|
||||
}
|
||||
|
||||
|
||||
@@ -3091,7 +3091,7 @@ static void on_61_98(shared_ptr<Client> c, uint16_t command, uint32_t flag, stri
|
||||
send_ep3_card_list_update(c);
|
||||
c->config.set_flag(Client::Flag::HAS_EP3_CARD_DEFS);
|
||||
}
|
||||
if (!c->config.check_flag(Client::Flag::HAS_EP3_MEDIA_UPDATES)) {
|
||||
if ((c->version() != Version::GC_EP3_NTE) && !c->config.check_flag(Client::Flag::HAS_EP3_MEDIA_UPDATES)) {
|
||||
for (const auto& banner : s->ep3_lobby_banners) {
|
||||
send_ep3_media_update(c, banner.type, banner.which, banner.data);
|
||||
c->config.set_flag(Client::Flag::HAS_EP3_MEDIA_UPDATES);
|
||||
|
||||
Reference in New Issue
Block a user