From 7e4fcb17934bfd37a771334e36131ea402559d9b Mon Sep 17 00:00:00 2001 From: megamage Date: Wed, 17 Jun 2009 18:19:08 -0500 Subject: *Now new arena team has both team rating and personal rating = 0. According to the change in 3.1 --HG-- branch : trunk --- src/game/World.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/game/World.cpp') diff --git a/src/game/World.cpp b/src/game/World.cpp index 1db8b7c0478..150b2285191 100644 --- a/src/game/World.cpp +++ b/src/game/World.cpp @@ -1487,11 +1487,17 @@ void World::SetInitialWorldSettings() exit(1); /// Check db - if(m_configs[CONFIG_CHECK_DB] && (!objmgr.CheckDB() || !spellmgr.CheckDB())) + if(m_configs[CONFIG_CHECK_DB]) { - sLog.outError("Your world DB is outdated. Please reapply sqls in sql\\FULL folder, or disable CheckDB option in config file (not recommended)."); - exit(1); + sLog.outString( "Checking DB..." ); + if(!objmgr.CheckDB() || !spellmgr.CheckDB()) + { + sLog.outError("Your world DB is outdated. Please reapply sqls in sql\\FULL folder, or disable CheckDB option in config file (not recommended)."); + exit(1); + } } + else + sLog.outError("You have disabled DB check. We strongly recommend you to enable it to prevent unpredictable bugs and crashes."); ///- Initialize game time and timers sLog.outDebug( "DEBUG:: Initialize game time and timers" ); -- cgit v1.2.3