*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:
+2
-1
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user