Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating with GaryFisher Content. #1

Open
wants to merge 36 commits into
base: betacode
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
05a680a
Correct worldserver.conf
garyfisher Jul 5, 2012
fe46308
Modify README ^_^
garyfisher Jul 5, 2012
f18bb26
Core/BattlegroundMgr: Introduce RatedUpdateTimer for time between che…
garyfisher Jul 9, 2012
18cbe7c
Core/BattlegroundQueue: Implement progressive MMR search range.
garyfisher Jul 9, 2012
81ccf17
Add Changelog.txt
garyfisher Jul 9, 2012
5e214fd
Misc small changes.
garyfisher Jul 9, 2012
fb95218
Add gunship off sql.
garyfisher Jul 9, 2012
bc4ed64
Gunship OFF fix...
garyfisher Jul 9, 2012
83140de
Fix icc next boss...
garyfisher Jul 9, 2012
90ffd78
Add fixs TC part 2
garyfisher Jul 9, 2012
f9c4757
Add fixs TC part 3 (Warden)
garyfisher Jul 9, 2012
e774231
Fix rocket boots.
garyfisher Jul 9, 2012
aa5f01a
Fix Flare and Death Grip.
garyfisher Jul 9, 2012
20a43e9
Core/Movement: Fix pushback issues and client freeze.
garyfisher Jul 9, 2012
a8f2599
Merge to TC WorldSocket.cpp
garyfisher Jul 9, 2012
db2e7a1
Revert (Core/Warden: Switch to multi-threaded packet processing for w…
garyfisher Jul 9, 2012
35b09a7
Revert "Revert (Core/Warden: Switch to multi-threaded packet processi…
garyfisher Jul 9, 2012
3a0da4a
Fix Restore pet loading.
garyfisher Jul 9, 2012
07d253d
Update ChangeLog.
garyfisher Jul 10, 2012
23e1129
Core/Spells: Correct diminishing returns for Horror category.
garyfisher Jul 10, 2012
ec8cee9
Core/DB: Adjust AP-bonuses for Hunter Volley (thanks to Jildor).
garyfisher Jul 10, 2012
6aeb1bd
Core/Spells: attempt to fix penance doing nothing on "friendly" non f…
garyfisher Jul 10, 2012
b8f9d1c
Core/Spells: Fixed SPELL_GROUP_STACK_RULE_EXCLUSIVE_SAME_EFFECT on se…
garyfisher Jul 10, 2012
eca632c
Core/Spells: The first target of a chained spell should be explicit.
garyfisher Jul 10, 2012
c8733e7
Core/Spells: Blade Barrier should not proc from autoattacks.
garyfisher Jul 10, 2012
1a8b747
Core/Spells: Rune Strike should only be available for use once after …
garyfisher Jul 10, 2012
3a3725b
Core/Spells: correctly fix the issue with dispel over time auras.
garyfisher Jul 10, 2012
a460d88
Fix Petitions
garyfisher Jul 10, 2012
5c7ac53
Remove (Anticheat System By jacob) Shit!
garyfisher Jul 10, 2012
76324a7
Add fixs TC part 4.
garyfisher Jul 10, 2012
880cab6
Add SQL (Add fixs TC part 4.).
garyfisher Jul 10, 2012
d4a3b82
Added spells for Fire Elemental Totem and Earth Elemental Totem.
garyfisher Jul 10, 2012
671301a
Test fix Crash!
garyfisher Jul 10, 2012
b395791
Fixed consuming of Grounding Totem when its not redirected any spell.
garyfisher Jul 10, 2012
434e4e9
Merge to TC (spell_shaman).
garyfisher Jul 10, 2012
c90a278
Fix compile.
garyfisher Jul 10, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Core/BattlegroundMgr: Introduce RatedUpdateTimer for time between che…
…cks for rated arena matchups, RatingDiscardTimer is an unfit choice.
  • Loading branch information
garyfisher committed Jul 9, 2012
commit f18bb26bd7814d8cbe53bccb23089e729422fccf
10 changes: 5 additions & 5 deletions src/server/game/Battlegrounds/BattlegroundMgr.cpp
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@ BattlegroundMgr::BattlegroundMgr() : m_AutoDistributionTimeChecker(0), m_ArenaTe
{
for (uint32 i = BATTLEGROUND_TYPE_NONE; i < MAX_BATTLEGROUND_TYPE_ID; i++)
m_Battlegrounds[i].clear();
m_NextRatingDiscardUpdate = sWorld->getIntConfig(CONFIG_ARENA_RATING_DISCARD_TIMER);
m_NextRatedArenaUpdate = sWorld->getIntConfig(CONFIG_ARENA_RATED_UPDATE_TIMER);
m_Testing=false;
}

@@ -143,10 +143,10 @@ void BattlegroundMgr::Update(uint32 diff)
}

// if rating difference counts, maybe force-update queues
if (sWorld->getIntConfig(CONFIG_ARENA_MAX_RATING_DIFFERENCE) && sWorld->getIntConfig(CONFIG_ARENA_RATING_DISCARD_TIMER))
if (sWorld->getIntConfig(CONFIG_ARENA_MAX_RATING_DIFFERENCE) && sWorld->getIntConfig(CONFIG_ARENA_RATED_UPDATE_TIMER))
{
// it's time to force update
if (m_NextRatingDiscardUpdate < diff)
if (m_NextRatedArenaUpdate < diff)
{
// forced update for rated arenas (scan all, but skipped non rated)
sLog->outDebug(LOG_FILTER_BATTLEGROUND, "BattlegroundMgr: UPDATING ARENA QUEUES");
@@ -156,10 +156,10 @@ void BattlegroundMgr::Update(uint32 diff)
BATTLEGROUND_AA, BattlegroundBracketId(bracket),
BattlegroundMgr::BGArenaType(BattlegroundQueueTypeId(qtype)), true, 0);

m_NextRatingDiscardUpdate = sWorld->getIntConfig(CONFIG_ARENA_RATING_DISCARD_TIMER);
m_NextRatedArenaUpdate = sWorld->getIntConfig(CONFIG_ARENA_RATED_UPDATE_TIMER);
}
else
m_NextRatingDiscardUpdate -= diff;
m_NextRatedArenaUpdate -= diff;
}
if (sWorld->getBoolConfig(CONFIG_ARENA_AUTO_DISTRIBUTE_POINTS))
{
2 changes: 1 addition & 1 deletion src/server/game/Battlegrounds/BattlegroundMgr.h
Original file line number Diff line number Diff line change
@@ -140,7 +140,7 @@ class BattlegroundMgr
BattlegroundSelectionWeightMap m_BGSelectionWeights;
std::vector<uint64> m_QueueUpdateScheduler;
std::set<uint32> m_ClientBattlegroundIds[MAX_BATTLEGROUND_TYPE_ID][MAX_BATTLEGROUND_BRACKETS]; //the instanceids just visible for the client
uint32 m_NextRatingDiscardUpdate;
uint32 m_NextRatedArenaUpdate;
time_t m_NextAutoDistributionTime;
uint32 m_AutoDistributionTimeChecker;
bool m_ArenaTesting;
1 change: 1 addition & 0 deletions src/server/game/World/World.cpp
Original file line number Diff line number Diff line change
@@ -1087,6 +1087,7 @@ void World::LoadConfigSettings(bool reload)
m_bool_configs[CONFIG_BG_XP_FOR_KILL] = ConfigMgr::GetBoolDefault("Battleground.GiveXPForKills", false);
m_int_configs[CONFIG_ARENA_MAX_RATING_DIFFERENCE] = ConfigMgr::GetIntDefault ("Arena.MaxRatingDifference", 150);
m_int_configs[CONFIG_ARENA_RATING_DISCARD_TIMER] = ConfigMgr::GetIntDefault ("Arena.RatingDiscardTimer", 10 * MINUTE * IN_MILLISECONDS);
m_int_configs[CONFIG_ARENA_RATED_UPDATE_TIMER] = ConfigMgr::GetIntDefault ("Arena.RatedUpdateTimer", 5 * IN_MILLISECONDS);
m_bool_configs[CONFIG_ARENA_AUTO_DISTRIBUTE_POINTS] = ConfigMgr::GetBoolDefault("Arena.AutoDistributePoints", false);
m_int_configs[CONFIG_ARENA_AUTO_DISTRIBUTE_INTERVAL_DAYS] = ConfigMgr::GetIntDefault ("Arena.AutoDistributeInterval", 7);
m_bool_configs[CONFIG_ARENA_QUEUE_ANNOUNCER_ENABLE] = ConfigMgr::GetBoolDefault("Arena.QueueAnnouncer.Enable", false);
1 change: 1 addition & 0 deletions src/server/game/World/World.h
Original file line number Diff line number Diff line change
@@ -288,6 +288,7 @@ enum WorldIntConfigs
CONFIG_BATTLEGROUND_PREMADE_GROUP_WAIT_FOR_MATCH,
CONFIG_ARENA_MAX_RATING_DIFFERENCE,
CONFIG_ARENA_RATING_DISCARD_TIMER,
CONFIG_ARENA_RATED_UPDATE_TIMER,
CONFIG_ARENA_AUTO_DISTRIBUTE_INTERVAL_DAYS,
CONFIG_ARENA_SEASON_ID,
CONFIG_ARENA_START_RATING,
7 changes: 7 additions & 0 deletions src/server/worldserver/worldserver.conf.dist
Original file line number Diff line number Diff line change
@@ -2527,6 +2527,13 @@ Battleground.Random.ResetHour = 6

Arena.MaxRatingDifference = 150

#
# Arena.RatedUpdateTimer
# Description: Time between checks (in milliseconds) for matchups in rated arena
# Default: 5000 - (5 seconds)

Arena.RatedUpdateTimer = 5000

#
# Arena.RatingDiscardTimer
# Description: Time (in milliseconds) after which rating differences are ignored when