*Add new creature_template column VehicleId

*Allow spawn vehicles
*Make vehicles grid objects.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-03-28 22:44:09 -06:00
parent 3a485c658d
commit 783e4fd3ff
13 changed files with 132 additions and 12 deletions
+4
View File
@@ -1393,6 +1393,10 @@ bool Creature::LoadFromDB(uint32 guid, Map *map)
return false;
}
if(const CreatureInfo *cInfo = objmgr.GetCreatureTemplate(data->id))
if(cInfo->VehicleId)
return false;
m_DBTableGuid = guid;
if (map->GetInstanceId() != 0) guid = objmgr.GenerateLowGuid(HIGHGUID_UNIT);