*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:
@@ -35,7 +35,7 @@ ArenaTeam::ArenaTeam()
|
|||||||
stats.games_week = 0;
|
stats.games_week = 0;
|
||||||
stats.games_season = 0;
|
stats.games_season = 0;
|
||||||
stats.rank = 0;
|
stats.rank = 0;
|
||||||
stats.rating = 1500;
|
stats.rating = ARENA_NEW_TEAM_RATING;
|
||||||
stats.wins_week = 0;
|
stats.wins_week = 0;
|
||||||
stats.wins_season = 0;
|
stats.wins_season = 0;
|
||||||
}
|
}
|
||||||
@@ -131,7 +131,7 @@ bool ArenaTeam::AddMember(const uint64& PlayerGuid)
|
|||||||
newmember.games_week = 0;
|
newmember.games_week = 0;
|
||||||
newmember.wins_season = 0;
|
newmember.wins_season = 0;
|
||||||
newmember.wins_week = 0;
|
newmember.wins_week = 0;
|
||||||
newmember.personal_rating = 1500;
|
newmember.personal_rating = AREAN_NEW_PERSONAL_RATING;
|
||||||
members.push_back(newmember);
|
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 );
|
CharacterDatabase.PExecute("INSERT INTO arena_team_member (arenateamid, guid, personal_rating) VALUES ('%u', '%u', '%u')", Id, GUID_LOPART(newmember.guid), newmember.personal_rating );
|
||||||
|
|||||||
@@ -85,6 +85,9 @@ enum ArenaTeamTypes
|
|||||||
ARENA_TEAM_5v5 = 5
|
ARENA_TEAM_5v5 = 5
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define ARENA_NEW_TEAM_RATING 0
|
||||||
|
#define AREAN_NEW_PERSONAL_RATING 0
|
||||||
|
|
||||||
struct ArenaTeamMember
|
struct ArenaTeamMember
|
||||||
{
|
{
|
||||||
uint64 guid;
|
uint64 guid;
|
||||||
|
|||||||
+9
-3
@@ -1487,11 +1487,17 @@ void World::SetInitialWorldSettings()
|
|||||||
exit(1);
|
exit(1);
|
||||||
|
|
||||||
/// Check db
|
/// 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).");
|
sLog.outString( "Checking DB..." );
|
||||||
exit(1);
|
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
|
///- Initialize game time and timers
|
||||||
sLog.outDebug( "DEBUG:: Initialize game time and timers" );
|
sLog.outDebug( "DEBUG:: Initialize game time and timers" );
|
||||||
|
|||||||
Reference in New Issue
Block a user