mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-17 18:41:29 +00:00
[Tasks] Make #task reloadall not quit shared tasks (#2351)
This was causing #task reloadall to desync state for shared tasks. Characters were removed from the shared task but remained in the character_tasks table. This CancelTask is cosmetic only to reload the client window.
This commit is contained in:
parent
b0da836f5a
commit
c7a3e88b81
@ -2073,7 +2073,9 @@ void ClientTaskState::CancelAllTasks(Client *client)
|
|||||||
m_active_task.task_id = TASKSLOTEMPTY;
|
m_active_task.task_id = TASKSLOTEMPTY;
|
||||||
|
|
||||||
// shared task
|
// shared task
|
||||||
|
client->m_requested_shared_task_removal = true;
|
||||||
CancelTask(client, TASKSLOTSHAREDTASK, TaskType::Shared, false);
|
CancelTask(client, TASKSLOTSHAREDTASK, TaskType::Shared, false);
|
||||||
|
client->m_requested_shared_task_removal = false;
|
||||||
m_active_shared_task.task_id = TASKSLOTEMPTY;
|
m_active_shared_task.task_id = TASKSLOTEMPTY;
|
||||||
|
|
||||||
// "quests"
|
// "quests"
|
||||||
@ -2082,8 +2084,6 @@ void ClientTaskState::CancelAllTasks(Client *client)
|
|||||||
CancelTask(client, task_index, TaskType::Quest, false);
|
CancelTask(client, task_index, TaskType::Quest, false);
|
||||||
m_active_quests[task_index].task_id = TASKSLOTEMPTY;
|
m_active_quests[task_index].task_id = TASKSLOTEMPTY;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: shared
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void ClientTaskState::CancelTask(Client *c, int sequence_number, TaskType task_type, bool remove_from_db)
|
void ClientTaskState::CancelTask(Client *c, int sequence_number, TaskType task_type, bool remove_from_db)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user