mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-05 03:06:38 +00:00
Use local database pointer
This commit is contained in:
@@ -320,7 +320,9 @@ bool WorldContentService::DoesZonePassContentFiltering(const ZoneRepository::Zon
|
||||
return DoesPassContentFiltering(f);
|
||||
}
|
||||
|
||||
void WorldContentService::LoadTargetedRulesets(Database* db)
|
||||
|
||||
|
||||
void WorldContentService::LoadTargetedRulesets()
|
||||
{
|
||||
if (!m_zone_id) {
|
||||
LogError("Zone ID is not set. Cannot load targeted rulesets.");
|
||||
@@ -331,8 +333,8 @@ void WorldContentService::LoadTargetedRulesets(Database* db)
|
||||
|
||||
constexpr int8 EXPANSION_ZERO_VALUE = -2;
|
||||
|
||||
auto rules = RuleValuesRepository::GetWhere(*db, "TRUE ORDER BY ruleset_id, rule_name");
|
||||
auto sets = RuleSetsRepository::GetWhere(*db, "TRUE ORDER BY ruleset_id");
|
||||
auto rules = RuleValuesRepository::GetWhere(*m_database, "TRUE ORDER BY ruleset_id, rule_name");
|
||||
auto sets = RuleSetsRepository::GetWhere(*m_database, "TRUE ORDER BY ruleset_id");
|
||||
for (auto& e : sets) {
|
||||
bool has_filters =
|
||||
!e.zone_ids.empty() ||
|
||||
|
||||
@@ -82,7 +82,7 @@ namespace Expansion {
|
||||
"Empires of Kunark",
|
||||
"Ring of Scale",
|
||||
"The Burning Lands",
|
||||
"Torment of Velious",
|
||||
"Torment of Velious"
|
||||
};
|
||||
}
|
||||
|
||||
@@ -194,7 +194,7 @@ public:
|
||||
bool IsInPublicStaticInstance(uint32 instance_id);
|
||||
|
||||
// targeted rulesets
|
||||
void LoadTargetedRulesets(Database* db);
|
||||
void LoadTargetedRulesets();
|
||||
inline void SetZoneId(int zone_id) { m_zone_id = zone_id; }
|
||||
inline void SetInstanceVersion(int instance_version) { m_instance_version = instance_version; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user