*Fix a bug that player can change to an occupied seat on vehicle.

*Load full creature data for vehicles.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-23 20:40:14 -05:00
parent 7ef7f7fa82
commit 2780893030
6 changed files with 56 additions and 48 deletions
+2 -1
View File
@@ -44,7 +44,7 @@ class Vehicle : public Creature
void AddToWorld();
void RemoveFromWorld();
bool Create (uint32 guidlow, Map *map, uint32 phaseMask, uint32 Entry, uint32 vehicleId, uint32 team);
bool Create (uint32 guidlow, Map *map, uint32 phaseMask, uint32 Entry, uint32 vehicleId, uint32 team, const CreatureData * data = NULL);
void setDeathState(DeathState s); // overwrite virtual Creature::setDeathState and Unit::setDeathState
void Update(uint32 diff); // overwrite virtual Creature::Update and Unit::Update
@@ -64,6 +64,7 @@ class Vehicle : public Creature
SeatMap m_Seats;
protected:
VehicleEntry const *m_vehicleInfo;
uint32 m_usableSeatNum;
void RemoveAllPassengers();