mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
Added placeholders for new battlegrounds, some other stuff.
This commit is contained in:
parent
7df6372458
commit
02bcc56919
43 changed files with 567 additions and 113 deletions
|
|
@ -88,7 +88,7 @@ InstanceSave* InstanceSaveManager::AddInstanceSave(uint32 mapId, uint32 instance
|
|||
{
|
||||
// initialize reset time
|
||||
// for normal instances if no creatures are killed the instance will reset in two hours
|
||||
if(entry->map_type == MAP_RAID || difficulty == DIFFICULTY_HEROIC)
|
||||
if(entry->map_type == MAP_RAID || difficulty == DUNGEON_DIFFICULTY_HEROIC)
|
||||
resetTime = GetResetTimeFor(mapId);
|
||||
else
|
||||
{
|
||||
|
|
@ -175,7 +175,7 @@ time_t InstanceSave::GetResetTimeForDB()
|
|||
{
|
||||
// only save the reset time for normal instances
|
||||
const MapEntry *entry = sMapStore.LookupEntry(GetMapId());
|
||||
if(!entry || entry->map_type == MAP_RAID || GetDifficulty() == DIFFICULTY_HEROIC)
|
||||
if(!entry || entry->map_type == MAP_RAID || GetDifficulty() == DUNGEON_DIFFICULTY_HEROIC)
|
||||
return 0;
|
||||
else
|
||||
return GetResetTime();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue