world/source/Quests.cpp
// Mark a quest as completed by moving it from the in-progress map into
// the completed map.
Mark a quest as completed by moving it from the in-progress map into
the completed map.
Mark a quest as completed by moving it from the in - progress map into the completed map .
void Quests::set_quest_completed(const string& quest_id)
{
  map<string, Quest>::iterator q_it = in_progress_quest_map.find(quest_id);
  if (q_it != in_progress_quest_map.end())
  {
    Quest quest = q_it->second;
    in_progress_quest_map.erase(q_it);
    completed_quest_map[quest_id] = quest;
  }
}
void Quests :: set_quest_completed ( const string & quest_id ) { map < string , Quest > :: iterator q_it = in_progress_quest_map . find ( quest_id ) ; if ( q_it != in_progress_quest_map . end ( ) ) { Quest quest = q_it -> second ; in_progress_quest_map . erase ( q_it ) ; completed_quest_map [ quest_id ] = quest ; } }
Mark a quest as completed by moving it from the in-progress map into
the completed map.
Mark a quest as completed by moving it from the in - progress map into the completed map .