#264 SendQuestUpdates does not properly reflect quest flag to client

بسته‌شده
3 سال پیش باز شده توسط image · 1 دیدگاه
هنوز محتوایی ایجاد نشده.
image نظر 3 سال پیش
همكار

Fixed code replaces the else statement to only call SendAllSpawnsForVisChange instead of iterating entire spawn list and doing some sanity checks that didn't work to update spawns correctly.

void ZoneServer::SendQuestUpdates(Client* client, Spawn* spawn){
    if(!client)
        return;

    if(spawn){
        if(client->GetPlayer()->WasSentSpawn(spawn->GetID()) && !client->GetPlayer()->WasSpawnRemoved(spawn))
            SendSpawnChanges(spawn, client, false, true);
    }
    else{
        client->GetCurrentZone()->SendAllSpawnsForVisChange(client);
    }
}
Fixed code replaces the else statement to only call SendAllSpawnsForVisChange instead of iterating entire spawn list and doing some sanity checks that didn't work to update spawns correctly. ``` void ZoneServer::SendQuestUpdates(Client* client, Spawn* spawn){ if(!client) return; if(spawn){ if(client->GetPlayer()->WasSentSpawn(spawn->GetID()) && !client->GetPlayer()->WasSpawnRemoved(spawn)) SendSpawnChanges(spawn, client, false, true); } else{ client->GetCurrentZone()->SendAllSpawnsForVisChange(client); } } ```
image 3 سال پیش بسته شد
برای پیوستن به گفتگو، وارد شودید.
بدون نقطه عطف
بدون مسئول رسیدگی
1 مشارکت کننده
درحال بارگذاری...
لغو
ذخيره
هنوز محتوایی ایجاد نشده.