add comment

This commit is contained in:
Chris Danford
2004-01-22 07:22:45 +00:00
parent 9e9375bb5f
commit 2f7858f8f5
2 changed files with 12 additions and 0 deletions
+8
View File
@@ -76,6 +76,14 @@ void RageSoundManager::Update(float delta)
sounds_to_delete.erase(sounds_to_delete.begin());
}
// Race condition here? I crashed with the following stack:
// std::_Tree<RageSound *,RageSound *,std::set<RageSound *,std::less<RageSound *>,std::allocator<RageSound *> >::_Kfn,std::less<RageSound *>,std::allocator<RageSound *> >::_Min(std::_Tree<RageSound *,RageSound *,std::set<RageSound *,std::less<RageSound *>,std::allocator<RageSound *> >::_Kfn,std::less<RageSound *>,std::allocator<RageSound *> >::_Node * 0xfeeefeee) line 542 + 21 bytes
// std::_Tree<RageSound *,RageSound *,std::set<RageSound *,std::less<RageSound *>,std::allocator<RageSound *> >::_Kfn,std::less<RageSound *>,std::allocator<RageSound *> >::const_iterator::_Inc() line 104 + 22 bytes
// std::_Tree<RageSound *,RageSound *,std::set<RageSound *,std::less<RageSound *>,std::allocator<RageSound *> >::_Kfn,std::less<RageSound *>,std::allocator<RageSound *> >::iterator::operator++() line 130
// RageSoundManager::Update(float 0.0360000) line 80 + 10 bytes
// GameLoop() line 1315
// SDL_main(int 1, char * * 0x0012fed0) line 999
// -Chris
for(set<RageSound *>::iterator i = all_sounds.begin();
i != all_sounds.end(); ++i)
(*i)->Update(delta);
+4
View File
@@ -122,6 +122,10 @@ ScreenEvaluation::ScreenEvaluation( CString sClassName ) : Screen(sClassName)
g_CurStageStats.UpdateComboList( PLAYER_1, 25, false );
g_CurStageStats.iCurCombo[PLAYER_1] = 250;
g_CurStageStats.UpdateComboList( PLAYER_1, 100, false );
g_CurStageStats.iTapNoteScores[PLAYER_1][TNS_MARVELOUS] = 1;
g_CurStageStats.iTapNoteScores[PLAYER_2][TNS_PERFECT] = 1;
g_vPlayedStageStats.clear();
}