diff options
| author | Shauren <shauren.trinity@gmail.com> | 2012-11-24 00:08:15 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2012-11-24 00:08:15 +0100 |
| commit | eb10226b02ec3cf0370840ebed00315fed566262 (patch) | |
| tree | b3ed5a323e8eced14fff0542e9d788aefa33e40c /src | |
| parent | bc95305d579e7dd27830440238a8fa6b986d2cde (diff) | |
Core/Battlegrounds: Fixed loading StartMaxDist (this time properly)
Diffstat (limited to 'src')
| -rwxr-xr-x | src/server/game/Battlegrounds/BattlegroundMgr.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/Battlegrounds/BattlegroundMgr.cpp b/src/server/game/Battlegrounds/BattlegroundMgr.cpp index 11a7cf14e73..a0f95e1eaef 100755 --- a/src/server/game/Battlegrounds/BattlegroundMgr.cpp +++ b/src/server/game/Battlegrounds/BattlegroundMgr.cpp @@ -700,7 +700,8 @@ void BattlegroundMgr::CreateInitialBattlegrounds() data.MaxPlayersPerTeam = fields[2].GetUInt16(); data.LevelMin = fields[3].GetUInt8(); data.LevelMax = fields[4].GetUInt8(); - data.StartMaxDist = fields[9].GetFloat(); + float dist = fields[9].GetFloat(); + data.StartMaxDist = dist * dist; data.scriptId = sObjectMgr->GetScriptId(fields[11].GetCString()); data.BattlegroundName = bl->name[sWorld->GetDefaultDbcLocale()]; |
