diff options
Diffstat (limited to 'src/common/event.cpp')
-rw-r--r-- | src/common/event.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/common/event.cpp b/src/common/event.cpp index 1c92a2a..1d56e8a 100644 --- a/src/common/event.cpp +++ b/src/common/event.cpp @@ -65,27 +65,27 @@ void CEvent::MakeEvent(Event &event, EventMsg msg) // Adds an event in the FIFO.
-BOOL CEvent::AddEvent(const Event &event)
+bool CEvent::AddEvent(const Event &event)
{
- if ( m_total >= MAXEVENT ) return FALSE;
+ if ( m_total >= MAXEVENT ) return false;
m_fifo[m_head++] = event;
if ( m_head >= MAXEVENT ) m_head = 0;
m_total ++;
- return TRUE;
+ return true;
}
// Removes an event from the FIFO.
-BOOL CEvent::GetEvent(Event &event)
+bool CEvent::GetEvent(Event &event)
{
- if ( m_head == m_tail ) return FALSE;
+ if ( m_head == m_tail ) return false;
event = m_fifo[m_tail++];
if ( m_tail >= MAXEVENT ) m_tail = 0;
m_total --;
- return TRUE;
+ return true;
}
|