Merge branch 'master' of https://github.com/azerothcore/azerothcore-wotlk
This commit is contained in:
@@ -23,7 +23,7 @@ We also believe in [software modularity](https://en.wikipedia.org/wiki/Modular_p
|
|||||||
## Learning project
|
## Learning project
|
||||||
|
|
||||||
AzerothCore is a learning project.
|
AzerothCore is a learning project.
|
||||||
If you want to learn how to use C++, SQL, git, etc... you came to the right place! We will gladly to help you: **programming is our passion**.
|
If you want to learn how to use C++, SQL, git, etc... you came to the right place! We will gladly help you: **programming is our passion**.
|
||||||
|
|
||||||
If you want to contribute, in [our wiki](https://github.com/azerothcore/azerothcore-wotlk/wiki) you fill find a lot of resources that will guide you. Also you can poke us in [our discord chat server](https://discord.gg/gkt4y2x).
|
If you want to contribute, in [our wiki](https://github.com/azerothcore/azerothcore-wotlk/wiki) you fill find a lot of resources that will guide you. Also you can poke us in [our discord chat server](https://discord.gg/gkt4y2x).
|
||||||
|
|
||||||
|
|||||||
@@ -403,9 +403,13 @@ void TransportMgr::SpawnContinentTransports()
|
|||||||
if (_transportTemplates.empty())
|
if (_transportTemplates.empty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
uint32 oldMSTime = getMSTime();
|
uint32 oldMSTime, count = 0;
|
||||||
QueryResult result = WorldDatabase.Query("SELECT guid, entry FROM transports");
|
oldMSTime = getMSTime();
|
||||||
uint32 count = 0;
|
QueryResult result;
|
||||||
|
|
||||||
|
if (sWorld->getBoolConfig(CONFIG_ENABLE_CONTINENT_TRANSPORT))
|
||||||
|
{
|
||||||
|
result = WorldDatabase.Query("SELECT guid, entry FROM transports");
|
||||||
if (result)
|
if (result)
|
||||||
{
|
{
|
||||||
do
|
do
|
||||||
@@ -424,6 +428,8 @@ void TransportMgr::SpawnContinentTransports()
|
|||||||
|
|
||||||
sLog->outString(">> Spawned %u continent motion transports in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
|
sLog->outString(">> Spawned %u continent motion transports in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
|
||||||
|
|
||||||
|
if (sWorld->getBoolConfig(CONFIG_ENABLE_CONTINENT_TRANSPORT_PRELOADING))
|
||||||
|
{
|
||||||
// pussywizard: preload grids for continent static transports
|
// pussywizard: preload grids for continent static transports
|
||||||
oldMSTime = getMSTime();
|
oldMSTime = getMSTime();
|
||||||
result = WorldDatabase.Query("SELECT map, position_x, position_y FROM gameobject g JOIN gameobject_template t ON g.id = t.entry WHERE t.type = 11");
|
result = WorldDatabase.Query("SELECT map, position_x, position_y FROM gameobject g JOIN gameobject_template t ON g.id = t.entry WHERE t.type = 11");
|
||||||
@@ -449,6 +455,8 @@ void TransportMgr::SpawnContinentTransports()
|
|||||||
}
|
}
|
||||||
|
|
||||||
sLog->outString(">> Preloaded grids for %u continent static transports in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
|
sLog->outString(">> Preloaded grids for %u continent static transports in %u ms", count, GetMSTimeDiffToNow(oldMSTime));
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TransportMgr::CreateInstanceTransports(Map* map)
|
void TransportMgr::CreateInstanceTransports(Map* map)
|
||||||
|
|||||||
@@ -1300,6 +1300,9 @@ void World::LoadConfigSettings(bool reload)
|
|||||||
m_int_configs[CONFIG_BIRTHDAY_TIME] = sConfigMgr->GetIntDefault("BirthdayTime", 1222964635);
|
m_int_configs[CONFIG_BIRTHDAY_TIME] = sConfigMgr->GetIntDefault("BirthdayTime", 1222964635);
|
||||||
m_bool_configs[CONFIG_MINIGOB_MANABONK] = sConfigMgr->GetBoolDefault("Minigob.Manabonk.Enable", true);
|
m_bool_configs[CONFIG_MINIGOB_MANABONK] = sConfigMgr->GetBoolDefault("Minigob.Manabonk.Enable", true);
|
||||||
|
|
||||||
|
m_bool_configs[CONFIG_ENABLE_CONTINENT_TRANSPORT] = sConfigMgr->GetBoolDefault("IsContinentTransport.Enabled", true);
|
||||||
|
m_bool_configs[CONFIG_ENABLE_CONTINENT_TRANSPORT_PRELOADING] = sConfigMgr->GetBoolDefault("IsPreloadedContinentTransport.Enabled", false);
|
||||||
|
|
||||||
// call ScriptMgr if we're reloading the configuration
|
// call ScriptMgr if we're reloading the configuration
|
||||||
sScriptMgr->OnAfterConfigLoad(reload);
|
sScriptMgr->OnAfterConfigLoad(reload);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -158,6 +158,8 @@ enum WorldBoolConfigs
|
|||||||
CONFIG_QUEST_IGNORE_AUTO_ACCEPT,
|
CONFIG_QUEST_IGNORE_AUTO_ACCEPT,
|
||||||
CONFIG_QUEST_IGNORE_AUTO_COMPLETE,
|
CONFIG_QUEST_IGNORE_AUTO_COMPLETE,
|
||||||
CONFIG_WARDEN_ENABLED,
|
CONFIG_WARDEN_ENABLED,
|
||||||
|
CONFIG_ENABLE_CONTINENT_TRANSPORT,
|
||||||
|
CONFIG_ENABLE_CONTINENT_TRANSPORT_PRELOADING,
|
||||||
BOOL_CONFIG_VALUE_COUNT
|
BOOL_CONFIG_VALUE_COUNT
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -1450,6 +1450,27 @@ AccountInstancesPerHour = 5
|
|||||||
|
|
||||||
BirthdayTime = 1222964635
|
BirthdayTime = 1222964635
|
||||||
|
|
||||||
|
#
|
||||||
|
# IsContinentTransport.Enabled
|
||||||
|
# Description: Controls the continent transport (ships, zeppelins etc..)
|
||||||
|
# Default: 1 - (Enabled)
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
|
IsContinentTransport.Enabled = 1
|
||||||
|
|
||||||
|
#
|
||||||
|
# IsPreloadedContinentTransport.Enabled
|
||||||
|
# Description: Should we preload the transport?
|
||||||
|
# (Not recommended on low-end servers as it consumes 100% more ram)
|
||||||
|
# and it's not really necessary to be enabled.
|
||||||
|
#
|
||||||
|
# Default: 0 - (Disabled)
|
||||||
|
#
|
||||||
|
#
|
||||||
|
|
||||||
|
IsPreloadedContinentTransport.Enabled = 0
|
||||||
|
|
||||||
#
|
#
|
||||||
###################################################################################################
|
###################################################################################################
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user