aboutsummaryrefslogtreecommitdiff
path: root/src/game/Map.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/Map.h')
-rw-r--r--src/game/Map.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/game/Map.h b/src/game/Map.h
index 9c06ac3fa47..bcdf3ec8f6a 100644
--- a/src/game/Map.h
+++ b/src/game/Map.h
@@ -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);