Integrate C++11 branch into 5_1-new

This commit is contained in:
teejusb
2019-06-22 12:35:38 -07:00
444 changed files with 19503 additions and 21007 deletions
+3 -4
View File
@@ -1,6 +1,5 @@
#include "global.h"
#include "PlayerState.h"
#include "Foreach.h"
#include "GameState.h"
#include "RageLog.h"
#include "RadarValues.h"
@@ -142,8 +141,8 @@ void PlayerState::RemoveActiveAttacks( AttackLevel al )
void PlayerState::EndActiveAttacks()
{
FOREACH( Attack, m_ActiveAttacks, a )
a->fSecsRemaining = 0;
for (Attack &a : m_ActiveAttacks)
a.fSecsRemaining = 0;
}
void PlayerState::RemoveAllInventory()
@@ -205,7 +204,7 @@ const SongPosition &PlayerState::GetDisplayedPosition() const
const TimingData &PlayerState::GetDisplayedTiming() const
{
Steps *steps = GAMESTATE->m_pCurSteps[m_PlayerNumber];
if( steps == NULL )
if( steps == nullptr )
return GAMESTATE->m_pCurSong->m_SongTiming;
return *steps->GetTimingData();
}