*Allow to force to respawn creatures.

*Save creature data for vehicles.
*Change some visibility update sequence of respawned creatures.
*Fix bugs of quest 12687: dark rider may not be on horse / horse cannot be used twice / horse does not respawn at correct phase

--HG--
branch : trunk
This commit is contained in:
megamage
2009-06-17 01:01:39 -05:00
parent 30195348ac
commit c6765f9365
7 changed files with 68 additions and 59 deletions
+2 -1
View File
@@ -57,7 +57,7 @@ class TRINITY_DLL_SPEC Vehicle : public Creature
int8 GetNextEmptySeat(int8 seatId, bool next) const;
bool AddPassenger(Unit *passenger, int8 seatId = -1);
void RemovePassenger(Unit *passenger);
void InstallAccessory(uint32 entry, int8 seatId);
void InstallAllAccessories();
void Dismiss();
bool LoadFromDB(uint32 guid, Map *map);
@@ -68,6 +68,7 @@ class TRINITY_DLL_SPEC Vehicle : public Creature
uint32 m_usableSeatNum;
void RemoveAllPassengers();
void InstallAccessory(uint32 entry, int8 seatId);
private:
void SaveToDB(uint32, uint8) // overwrited of Creature::SaveToDB - don't must be called