summaryrefslogtreecommitdiffstats
path: root/src/object/auto/autoflag.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/object/auto/autoflag.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/object/auto/autoflag.cpp')
-rw-r--r--src/object/auto/autoflag.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/object/auto/autoflag.cpp b/src/object/auto/autoflag.cpp
index 4e29a96..53792cb 100644
--- a/src/object/auto/autoflag.cpp
+++ b/src/object/auto/autoflag.cpp
@@ -37,7 +37,7 @@
-#define ADJUST_ANGLE FALSE // TRUE -> adjusts the angles of the members
+#define ADJUST_ANGLE false // true -> adjusts the angles of the members
#if ADJUST_ANGLE
@@ -59,13 +59,12 @@ CAutoFlag::CAutoFlag(CInstanceManager* iMan, CObject* object)
CAutoFlag::~CAutoFlag()
{
- this->CAuto::~CAuto();
}
// Destroys the object.
-void CAutoFlag::DeleteObject(BOOL bAll)
+void CAutoFlag::DeleteObject(bool bAll)
{
CAuto::DeleteObject(bAll);
}
@@ -104,7 +103,7 @@ void CAutoFlag::Start(int param)
// Management of an event.
-BOOL CAutoFlag::EventProcess(const Event &event)
+bool CAutoFlag::EventProcess(const Event &event)
{
float angle;
int i;
@@ -123,8 +122,8 @@ BOOL CAutoFlag::EventProcess(const Event &event)
}
#endif
- if ( m_engine->RetPause() ) return TRUE;
- if ( event.event != EVENT_FRAME ) return TRUE;
+ if ( m_engine->RetPause() ) return true;
+ if ( event.event != EVENT_FRAME ) return true;
if ( m_param == 1 ) // shakes?
{
@@ -145,7 +144,7 @@ BOOL CAutoFlag::EventProcess(const Event &event)
}
}
- if ( m_strong == 0.0f ) return TRUE; // no wind?
+ if ( m_strong == 0.0f ) return true; // no wind?
for ( i=0 ; i<4 ; i++ )
{
@@ -162,7 +161,7 @@ BOOL CAutoFlag::EventProcess(const Event &event)
sprintf(s, "a=%.2f b=%.2f c=%.2f", g_flag1, g_flag2, g_flag3);
m_engine->SetInfoText(4, s);
#endif
- return TRUE;
+ return true;
}