s/RemoteAt/erase/

This commit is contained in:
Glenn Maynard
2002-10-31 04:11:08 +00:00
parent 6e0c622850
commit a041b7cd3e
14 changed files with 39 additions and 23 deletions
+2 -1
View File
@@ -30,8 +30,9 @@ InputQueue::InputQueue()
void InputQueue::RememberInput( const GameInput GameI )
{
int c = GameI.controller;
/* XXX: this should be a deque, and just pop_back */
if( m_aQueue[c].size() >= MAX_INPUT_QUEUE_LENGTH ) // full
m_aQueue[c].RemoveAt( 0, m_aQueue[c].size()-MAX_INPUT_QUEUE_LENGTH+1 );
m_aQueue[c].erase( m_aQueue[c].begin(), m_aQueue[c].begin() + (m_aQueue[c].size()-MAX_INPUT_QUEUE_LENGTH+1) );
m_aQueue[c].Add( GameButtonAndTime(GameI.button,TIMER->GetTimeSinceStart()) );
};