summaryrefslogtreecommitdiffstats
path: root/src/object/task/taskgungoal.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/task/taskgungoal.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/task/taskgungoal.cpp')
-rw-r--r--src/object/task/taskgungoal.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/object/task/taskgungoal.cpp b/src/object/task/taskgungoal.cpp
index 013c3d4..5a44ade 100644
--- a/src/object/task/taskgungoal.cpp
+++ b/src/object/task/taskgungoal.cpp
@@ -42,7 +42,6 @@
CTaskGunGoal::CTaskGunGoal(CInstanceManager* iMan, CObject* object)
: CTask(iMan, object)
{
- CTask::CTask(iMan, object);
}
// Object's destructor.
@@ -54,12 +53,12 @@ CTaskGunGoal::~CTaskGunGoal()
// Management of an event.
-BOOL CTaskGunGoal::EventProcess(const Event &event)
+bool CTaskGunGoal::EventProcess(const Event &event)
{
float dir;
- 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;
m_progress += event.rTime*m_speed;
@@ -83,7 +82,7 @@ BOOL CTaskGunGoal::EventProcess(const Event &event)
}
m_object->SetGunGoalH(dir);
- return TRUE;
+ return true;
}
@@ -127,7 +126,7 @@ Error CTaskGunGoal::Start(float dirV, float dirH)
if ( m_finalDirV != m_initialDirV ||
m_finalDirH != m_initialDirH )
{
- i = m_sound->Play(SOUND_MANIP, m_object->RetPosition(0), 0.3f, 1.5f, TRUE);
+ i = m_sound->Play(SOUND_MANIP, m_object->RetPosition(0), 0.3f, 1.5f, true);
m_sound->AddEnvelope(i, 0.3f, 1.5f, 1.0f/m_speed, SOPER_STOP);
}
@@ -154,8 +153,8 @@ Error CTaskGunGoal::IsEnded()
// Suddenly ends the current action.
-BOOL CTaskGunGoal::Abort()
+bool CTaskGunGoal::Abort()
{
- return TRUE;
+ return true;
}