mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 11:25:42 +00:00
Refactoring part 2 [W.I.P]
This commit is contained in:
11
src/game/Misc/DynamicVisibility.cpp
Normal file
11
src/game/Misc/DynamicVisibility.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#include "DynamicVisibility.h"
|
||||
|
||||
uint8 DynamicVisibilityMgr::visibilitySettingsIndex = 0;
|
||||
|
||||
void DynamicVisibilityMgr::Update(uint32 sessionCount)
|
||||
{
|
||||
if (sessionCount >= (visibilitySettingsIndex+1)*((uint32)VISIBILITY_SETTINGS_PLAYER_INTERVAL) && visibilitySettingsIndex < VISIBILITY_SETTINGS_MAX_INTERVAL_NUM-1)
|
||||
++visibilitySettingsIndex;
|
||||
else if (visibilitySettingsIndex && sessionCount < visibilitySettingsIndex*((uint32)VISIBILITY_SETTINGS_PLAYER_INTERVAL)-100)
|
||||
--visibilitySettingsIndex;
|
||||
}
|
||||
Reference in New Issue
Block a user