*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

View File

@@ -1632,7 +1632,10 @@ void WorldSession::HandleSpellClick( WorldPacket & recv_data )
Vehicle *vehicle = ObjectAccessor::GetVehicle(guid);
if(!vehicle)
{
sLog.outError("Player %s cannot find vehicle %u", _player->GetName(), guid);
return;
}
_player->EnterVehicle(vehicle);
}