aboutsummaryrefslogtreecommitdiff
path: root/src/game/World.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-17 18:19:08 -0500
committermegamage <none@none>2009-06-17 18:19:08 -0500
commit7e4fcb17934bfd37a771334e36131ea402559d9b (patch)
tree70482925f3517d3229a620db2fe97e976574cb64 /src/game/World.cpp
parent9676c5eddf8aee8665e3faa3918492aeaf816a8d (diff)
*Now new arena team has both team rating and personal rating = 0. According to the change in 3.1
--HG-- branch : trunk
Diffstat (limited to 'src/game/World.cpp')
-rw-r--r--src/game/World.cpp12
1 files changed, 9 insertions, 3 deletions
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" );