diff options
| author | Shauren <shauren.trinity@gmail.com> | 2012-11-23 23:53:36 +0100 |
|---|---|---|
| committer | Shauren <shauren.trinity@gmail.com> | 2012-11-23 23:53:36 +0100 |
| commit | bc95305d579e7dd27830440238a8fa6b986d2cde (patch) | |
| tree | 101877f83ffffd104ac81a0ffa5ef858a37c1f0a | |
| parent | d2063d2fb3df1e5a19a957cb7bda3bcbff3a6950 (diff) | |
Core/Battlegrounds: Fixed loading StartMaxDist
| -rwxr-xr-x | src/server/game/Battlegrounds/BattlegroundMgr.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/server/game/Battlegrounds/BattlegroundMgr.cpp b/src/server/game/Battlegrounds/BattlegroundMgr.cpp index 0604cadd5ee..11a7cf14e73 100755 --- a/src/server/game/Battlegrounds/BattlegroundMgr.cpp +++ b/src/server/game/Battlegrounds/BattlegroundMgr.cpp @@ -700,8 +700,7 @@ void BattlegroundMgr::CreateInitialBattlegrounds() data.MaxPlayersPerTeam = fields[2].GetUInt16(); data.LevelMin = fields[3].GetUInt8(); data.LevelMax = fields[4].GetUInt8(); - uint8 spawn = fields[9].GetUInt8(); - data.StartMaxDist = float(spawn * spawn); + data.StartMaxDist = fields[9].GetFloat(); data.scriptId = sObjectMgr->GetScriptId(fields[11].GetCString()); data.BattlegroundName = bl->name[sWorld->GetDefaultDbcLocale()]; |
