Core/Transport: Minor optimization in LoadTransports (And some cosmetic changes here and there in other files)

This commit is contained in:
Spp-
2011-08-03 08:18:24 +02:00
parent 43720b1e3a
commit fcdd4d784f
12 changed files with 33 additions and 31 deletions
+2 -2
View File
@@ -187,13 +187,13 @@ void Vehicle::RemoveAllPassengers()
// Passengers always cast an aura with SPELL_AURA_CONTROL_VEHICLE on the vehicle
// We just remove the aura and the unapply handler will make the target leave the vehicle.
// We don't need to iterate over m_Seats
// We don't need to iterate over Seats
_me->RemoveAurasByType(SPELL_AURA_CONTROL_VEHICLE);
// Following the above logic, this assertion should NEVER fail.
// Even in 'hacky' cases, there should at least be VEHICLE_SPELL_RIDE_HARDCODED on us.
// SeatMap::const_iterator itr;
// for (itr = m_Seats.begin(); itr != m_Seats.end(); ++itr)
// for (itr = Seats.begin(); itr != Seats.end(); ++itr)
// ASSERT(!itr->second.passenger);
}