mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core: Fixed some compile warnings
This commit is contained in:
@@ -161,16 +161,17 @@ bool Battlefield::Update(uint32 diff)
|
||||
// Kick players who chose not to accept invitation to the battle
|
||||
if (m_uiKickDontAcceptTimer <= diff)
|
||||
{
|
||||
time_t now = time(NULL);
|
||||
for (int team = 0; team < 2; team++)
|
||||
for (PlayerTimerMap::iterator itr = m_InvitedPlayers[team].begin(); itr != m_InvitedPlayers[team].end(); ++itr)
|
||||
if ((*itr).second <= time(NULL))
|
||||
KickPlayerFromBattlefield((*itr).first);
|
||||
if (itr->second <= now)
|
||||
KickPlayerFromBattlefield(itr->first);
|
||||
|
||||
InvitePlayersInZoneToWar();
|
||||
for (int team = 0; team < 2; team++)
|
||||
for (PlayerTimerMap::iterator itr = m_PlayersWillBeKick[team].begin(); itr != m_PlayersWillBeKick[team].end(); ++itr)
|
||||
if ((*itr).second <= time(NULL))
|
||||
KickPlayerFromBattlefield((*itr).first);
|
||||
if (itr->second <= now)
|
||||
KickPlayerFromBattlefield(itr->first);
|
||||
|
||||
m_uiKickDontAcceptTimer = 1000;
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ class BfGraveyard;
|
||||
|
||||
typedef std::set<uint64> GuidSet;
|
||||
typedef std::vector<BfGraveyard*> GraveyardVect;
|
||||
typedef std::map<uint64, uint32> PlayerTimerMap;
|
||||
typedef std::map<uint64, time_t> PlayerTimerMap;
|
||||
|
||||
class BfCapturePoint
|
||||
{
|
||||
|
||||
@@ -78,6 +78,8 @@ typedef std::map<int8, VehicleSeat> SeatMap;
|
||||
class TransportBase
|
||||
{
|
||||
public:
|
||||
virtual ~TransportBase() { }
|
||||
|
||||
/// This method transforms supplied transport offsets into global coordinates
|
||||
virtual void CalculatePassengerPosition(float& x, float& y, float& z, float& o) = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user