#264 SendQuestUpdates does not properly reflect quest flag to client

Lezárt
megnyitva ekkor: 3 éve image által · 1 hozzászólás
image hozzászólt 3 éve
Még nincs tartalom.
image hozzászólt 3 éve
Közreműködő

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 lezárta ekkor: 3 éve
Jelentkezzen be hogy csatlakozhasson a beszélgetéshez.
Töltés...
Mégse
Mentés
Még nincs tartalom.