*Now new arena team has both team rating and personal rating = 0. According to the change in 3.1

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-17 18:19:08 -05:00
parent 9676c5eddf
commit 7e4fcb1793
3 changed files with 14 additions and 5 deletions
+2 -2
View File
@@ -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 );
+3
View File
@@ -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;
+9 -3
View File
@@ -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" );