mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
[11385] Add support for static vehicle spawns
Signed-off-by: zergtmn <zerg@myisp.com>
This commit is contained in:
parent
75e1e7c3a3
commit
2835aa5f20
32 changed files with 115 additions and 331 deletions
|
|
@ -725,6 +725,12 @@ void ObjectMgr::LoadCreatureTemplates()
|
|||
const_cast<CreatureInfo*>(cInfo)->MovementType = IDLE_MOTION_TYPE;
|
||||
}
|
||||
|
||||
if (cInfo->vehicleId && !sVehicleStore.LookupEntry(cInfo->vehicleId))
|
||||
{
|
||||
sLog.outErrorDb("Creature (Entry: %u) has non-existing vehicle_id (%u), set to 0.", cInfo->Entry, cInfo->vehicleId);
|
||||
const_cast<CreatureInfo*>(cInfo)->vehicleId = 0;
|
||||
}
|
||||
|
||||
if(cInfo->equipmentId > 0) // 0 no equipment
|
||||
{
|
||||
if(!GetEquipmentInfo(cInfo->equipmentId))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue