summaryrefslogtreecommitdiffstats
path: root/src/common/event.cpp
diff options
context:
space:
mode:
authorPiotr Dziwinski <piotrdz@gmail.com>2012-06-10 15:28:12 +0200
committerPiotr Dziwinski <piotrdz@gmail.com>2012-06-10 15:28:12 +0200
commit697fbdabf10d956e0f13bfbc9414d3db40f0c535 (patch)
treeab80ba3119d07b11da5478009b905edb702c103f /src/common/event.cpp
parent680af178196217bdd255d2bc851f240983144ac1 (diff)
downloadcolobot-697fbdabf10d956e0f13bfbc9414d3db40f0c535.tar.gz
colobot-697fbdabf10d956e0f13bfbc9414d3db40f0c535.tar.bz2
colobot-697fbdabf10d956e0f13bfbc9414d3db40f0c535.zip
BOOL -> bool; additional fixes in constructors/destructors
Diffstat (limited to 'src/common/event.cpp')
-rw-r--r--src/common/event.cpp12
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;
}