#264 SendQuestUpdates does not properly reflect quest flag to client

クローズ
3 年 前image によって開かれました · 1 コメント
image3 年 前 にコメントしました
まだコンテンツがありません
image3 年 前 にコメントしました
共同編集者

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 年 前 に閉じられました
会話に参加するには サインイン してください。
読み込み中…
キャンセル
保存
まだコンテンツがありません