*Moved CanUnload function to header files - by Zor

*Move flycheck under function - by Zor

--HG--
branch : trunk
This commit is contained in:
Blaymoira
2009-01-24 20:04:43 +01:00
parent 3129217dfa
commit 6be2cfeeed
5 changed files with 68 additions and 36 deletions
+9 -1
View File
@@ -133,7 +133,15 @@ class TRINITY_DLL_SPEC Map : public GridRefManager<NGridType>, public Trinity::O
virtual ~Map();
// currently unused for normal maps
virtual bool CanUnload(const uint32& diff);
bool CanUnload(uint32 diff)
{
if(!m_unloadTimer)
return false;
if(m_unloadTimer <= diff)
return true;
m_unloadTimer -= diff;
return false;
}
virtual bool Add(Player *);
virtual void Remove(Player *, bool);