diff --git a/world/shared_tasks.cpp b/world/shared_tasks.cpp index 264f7fb2c..243c84d4f 100644 --- a/world/shared_tasks.cpp +++ b/world/shared_tasks.cpp @@ -160,6 +160,13 @@ void SharedTaskManager::HandleTaskRequest(ServerPacket *pack) return; } +/* + * Loads in the tasks and task_activity tables + * We limit to shared to save some memory + * This can be called while reloading tasks (because deving etc) + * This data is loaded into the task_information map + */ + bool SharedTaskManager::LoadSharedTasks(int single_task) { std::string query; @@ -320,10 +327,15 @@ bool SharedTaskManager::LoadSharedTaskState() // Load existing tasks. We may not want to actually do this here and wait for a client to log in // But the crash case may actually dictate we should :P - // set next_id to highest used ID + 1 + // set next_id to highest used ID return true; } +/* + * Return the next unused ID + * Hopefully this does not grow too large. + */ + int SharedTaskManager::GetNextID() { next_id++;