fix v2/v3 crossplay quest loading

This commit is contained in:
Martin Michelsen
2025-01-05 10:43:58 -08:00
parent a7b5ea5562
commit d51f7a0fe7
+6 -4
View File
@@ -3967,10 +3967,12 @@ bool send_quest_barrier_if_all_clients_ready(shared_ptr<Lobby> l) {
return false; return false;
} }
send_command(l, 0xAC, 0x00); for (auto& lc : l->clients) {
for (x = 0; x < l->max_clients; x++) { if (lc) {
if (l->clients[x]) { if (!is_v1_or_v2(lc->version())) {
l->clients[x]->disconnect_hooks.erase(QUEST_BARRIER_DISCONNECT_HOOK_NAME); send_command(lc, 0xAC, 0x00);
}
lc->disconnect_hooks.erase(QUEST_BARRIER_DISCONNECT_HOOK_NAME);
} }
} }
return true; return true;