1
0

Fixed style.

This commit is contained in:
Mattes D 2014-10-13 10:34:33 +02:00
parent 120b347fb5
commit 1eae7d0ece
3 changed files with 7 additions and 4 deletions

View File

@ -127,7 +127,7 @@ public:
ContentsWidth = 9,
};
const cItem & GetSlot(int a_Idx) const { return m_Contents.GetSlot(a_Idx); }
const cItem & GetSlot(int a_Idx) const { return m_Contents.GetSlot(a_Idx); }
void SetSlot(size_t a_Idx, const cItem & a_Item) { m_Contents.SetSlot(a_Idx, a_Item); }
protected:

View File

@ -1073,8 +1073,10 @@ void cWorld::TickScheduledTasks(void)
std::find_if(
m_ScheduledTasks.begin(),
m_ScheduledTasks.end(),
[WorldAge] (std::unique_ptr<cScheduledTask> & Task) { return Task->m_TargetTick < WorldAge;}),
std::back_inserter(Tasks));
[WorldAge] (cScheduledTaskPtr & Task) { return (Task->m_TargetTick < WorldAge);}
),
std::back_inserter(Tasks)
);
}
// Execute and delete each task:

View File

@ -861,7 +861,8 @@ private:
}
};
typedef std::list<std::unique_ptr<cScheduledTask>> cScheduledTasks;
typedef std::unique_ptr<cScheduledTask> cScheduledTaskPtr;
typedef std::list<cScheduledTaskPtr> cScheduledTasks;
AString m_WorldName;