*Update vehicle system. Make vehicle a seperate class from creature.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-08-23 22:09:43 -05:00
parent e71f5e474e
commit 1ee90e1022
42 changed files with 451 additions and 579 deletions

View File

@@ -515,8 +515,8 @@ void WorldSession::HandleSpellClick( WorldPacket & recv_data )
}
}
if(unit->isVehicle())
_player->EnterVehicle((Vehicle*)unit);
if(unit->IsVehicle())
_player->EnterVehicle(unit);
unit->AI()->DoAction(EVENT_SPELLCLICK);
}