remove unused player's class member,cleanup

--HG--
branch : trunk
This commit is contained in:
silverice
2010-03-18 20:21:42 +02:00
parent 59e0d42260
commit aca2d26bc5
3 changed files with 5 additions and 5 deletions
-1
View File
@@ -2578,7 +2578,6 @@ class Player : public Unit, public GridObject<Player>
MapReference m_mapRef;
void UpdateCharmedAI();
UnitAI *i_AI;
uint32 m_lastFallTime;
float m_lastFallZ;
+4 -3
View File
@@ -15287,9 +15287,10 @@ Unit *Unit::GetVehicleBase() const
Creature *Unit::GetVehicleCreatureBase() const
{
Unit *veh = GetVehicleBase();
if (veh && veh->GetTypeId() == TYPEID_UNIT)
return dynamic_cast<Creature*>(veh);
if( Unit *veh = GetVehicleBase())
if( Creature *c = veh->ToCreature())
return c;
return NULL;
}
+1 -1
View File
@@ -1919,7 +1919,7 @@ class Unit : public WorldObject
void RemoveVehicleKit();
Vehicle *GetVehicleKit()const { return m_vehicleKit; }
Vehicle *GetVehicle() const { return m_vehicle; }
bool IsOnVehicle(const Unit *unit) const { return m_vehicle && m_vehicle == unit->GetVehicleKit(); }
bool IsOnVehicle(const Unit *vehicle) const { return m_vehicle && m_vehicle == vehicle->GetVehicleKit(); }
Unit *GetVehicleBase() const;
Creature *GetVehicleCreatureBase() const;
float GetTransOffsetX() const { return m_movementInfo.t_x; }