EntityList::CreateGroundObjectFromModel converted to to xyz_heading

This commit is contained in:
Arthur Ice
2014-11-30 21:20:46 -08:00
parent 4f03ebb3af
commit d54215ea18
3 changed files with 12 additions and 11 deletions
+1 -1
View File
@@ -2352,7 +2352,7 @@ uint16 QuestManager::CreateGroundObject(uint32 itemid, float x, float y, float z
uint16 QuestManager::CreateGroundObjectFromModel(const char *model, float x, float y, float z, float heading, uint8 type, uint32 decay_time)
{
uint16 entid = 0; //safety check
entid = entity_list.CreateGroundObjectFromModel(model, x, y, z, heading, type, decay_time);
entid = entity_list.CreateGroundObjectFromModel(model, xyz_heading(x, y, z, heading), type, decay_time);
return entid;
}