diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/game/ArenaTeam.cpp | 4 | ||||
-rw-r--r-- | src/game/ArenaTeam.h | 3 | ||||
-rw-r--r-- | src/game/World.cpp | 12 |
3 files changed, 14 insertions, 5 deletions
diff --git a/src/game/ArenaTeam.cpp b/src/game/ArenaTeam.cpp index 00e0f088227..3c3fc160f74 100644 --- a/src/game/ArenaTeam.cpp +++ b/src/game/ArenaTeam.cpp @@ -35,7 +35,7 @@ ArenaTeam::ArenaTeam() stats.games_week = 0; stats.games_season = 0; stats.rank = 0; - stats.rating = 1500; + stats.rating = ARENA_NEW_TEAM_RATING; stats.wins_week = 0; stats.wins_season = 0; } @@ -131,7 +131,7 @@ bool ArenaTeam::AddMember(const uint64& PlayerGuid) newmember.games_week = 0; newmember.wins_season = 0; newmember.wins_week = 0; - newmember.personal_rating = 1500; + newmember.personal_rating = AREAN_NEW_PERSONAL_RATING; members.push_back(newmember); CharacterDatabase.PExecute("INSERT INTO arena_team_member (arenateamid, guid, personal_rating) VALUES ('%u', '%u', '%u')", Id, GUID_LOPART(newmember.guid), newmember.personal_rating ); diff --git a/src/game/ArenaTeam.h b/src/game/ArenaTeam.h index 60c80f972d2..e31fa328bfb 100644 --- a/src/game/ArenaTeam.h +++ b/src/game/ArenaTeam.h @@ -85,6 +85,9 @@ enum ArenaTeamTypes ARENA_TEAM_5v5 = 5 }; +#define ARENA_NEW_TEAM_RATING 0 +#define AREAN_NEW_PERSONAL_RATING 0 + struct ArenaTeamMember { uint64 guid; 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" ); |