mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core/AreaTrigger: Fixed a bug where polygon shaped areatriggers decreased in height for selection depending on at lifetime
This commit is contained in:
@@ -233,8 +233,14 @@ void AreaTriggerDataStore::LoadAreaTriggerTemplates()
|
||||
createProperties.ScriptId = sObjectMgr->GetScriptId(fields[20].GetString());
|
||||
|
||||
if (shape == AREATRIGGER_TYPE_POLYGON)
|
||||
{
|
||||
if (createProperties.Shape.PolygonDatas.Height <= 0.0f)
|
||||
{
|
||||
createProperties.Shape.PolygonDatas.Height = 1.0f;
|
||||
if (createProperties.Shape.PolygonDatas.HeightTarget <= 0.0f)
|
||||
createProperties.Shape.PolygonDatas.HeightTarget = 1.0f;
|
||||
}
|
||||
}
|
||||
|
||||
createProperties.PolygonVertices = std::move(verticesByCreateProperties[createProperties.Id]);
|
||||
createProperties.PolygonVerticesTarget = std::move(verticesTargetByCreateProperties[createProperties.Id]);
|
||||
|
||||
Reference in New Issue
Block a user