mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 15:58:36 +00:00
Got rid of rules global (ugh) and gonna start work on items loading next
This commit is contained in:
+2
-3
@@ -115,7 +115,6 @@ QueryServConnection QSLink;
|
||||
LauncherList launcher_list;
|
||||
AdventureManager adventure_manager;
|
||||
DBAsync *dbasync = NULL;
|
||||
RuleManager *rules = new RuleManager();
|
||||
volatile bool RunLoops = true;
|
||||
uint32 numclients = 0;
|
||||
uint32 numzones = 0;
|
||||
@@ -302,11 +301,11 @@ int main(int argc, char** argv) {
|
||||
char tmp[64];
|
||||
if (database.GetVariable("RuleSet", tmp, sizeof(tmp)-1)) {
|
||||
_log(WORLD__INIT, "Loading rule set '%s'", tmp);
|
||||
if(!rules->LoadRules(&database, tmp)) {
|
||||
if(!RuleManager::Instance()->LoadRules(&database, tmp)) {
|
||||
_log(WORLD__INIT_ERR, "Failed to load ruleset '%s', falling back to defaults.", tmp);
|
||||
}
|
||||
} else {
|
||||
if(!rules->LoadRules(&database, "default")) {
|
||||
if(!RuleManager::Instance()->LoadRules(&database, "default")) {
|
||||
_log(WORLD__INIT, "No rule set configured, using default rules");
|
||||
} else {
|
||||
_log(WORLD__INIT, "Loaded default rule set 'default'", tmp);
|
||||
|
||||
Reference in New Issue
Block a user