Core/GameObjects: Set GO_FLAG_MAP_OBJECT for gameobjects that use a WMO model

This commit is contained in:
hondacrx
2018-04-12 10:00:08 -04:00
parent 3ff01ee33b
commit ce9815d557
2 changed files with 6 additions and 1 deletions
@@ -266,6 +266,9 @@ namespace Game.Entities
SetDisplayId(goInfo.displayId);
m_model = CreateModel();
if (m_model != null && m_model.isMapObject())
SetFlag(GameObjectFields.Flags, GameObjectFlags.MapObject);
// GAMEOBJECT_BYTES_1, index at 0, 1, 2 and 3
SetGoType(goInfo.type);
m_prevGoState = goState;
@@ -2360,6 +2363,8 @@ namespace Game.Entities
m_model = CreateModel();
if (m_model != null)
GetMap().InsertGameObjectModel(m_model);
ApplyModFlag(GameObjectFields.Flags, GameObjectFlags.MapObject, m_model != null && m_model.isMapObject());
}
Player GetLootRecipient()