From f7d892cf4ef6bfce3747c4b6a810d4828b79833d Mon Sep 17 00:00:00 2001 From: Krzysztof H Date: Mon, 19 Mar 2012 12:44:39 +0100 Subject: Last coding fix ;) --- src/taskturn.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/taskturn.cpp') diff --git a/src/taskturn.cpp b/src/taskturn.cpp index 5623e1a..008b20b 100644 --- a/src/taskturn.cpp +++ b/src/taskturn.cpp @@ -1,4 +1,4 @@ -// * This file is part of the COLOBOT source code +// * This file is part of the COLOBOT source code // * Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch // * // * This program is free software: you can redistribute it and/or modify @@ -12,7 +12,7 @@ // * GNU General Public License for more details. // * // * You should have received a copy of the GNU General Public License -// * along with this program. If not, see http://www.gnu.org/licenses/. +// * along with this program. If not, see http://www.gnu.org/licenses/.// taskturn.cpp #define STRICT #define D3D_OVERLOADS @@ -52,14 +52,14 @@ CTaskTurn::~CTaskTurn() } -// Gestion d'un �v�nement. +// Gestion d'un événement. BOOL CTaskTurn::EventProcess(const Event &event) { if ( m_engine->RetPause() ) return TRUE; if ( event.event != EVENT_FRAME ) return TRUE; - // Objet momentan�ment immobile (fourmi sur le dos) ? + // Objet momentanément immobile (fourmi sur le dos) ? if ( m_object->RetFixed() ) { m_physics->SetMotorSpeedX(0.0f); // stoppe l'avance @@ -72,8 +72,8 @@ BOOL CTaskTurn::EventProcess(const Event &event) } -// Assigne le but � atteindre. -// Un angle positif effectue un virage � droite. +// Assigne le but à atteindre. +// Un angle positif effectue un virage à droite. Error CTaskTurn::Start(float angle) { @@ -83,13 +83,13 @@ Error CTaskTurn::Start(float angle) if ( angle < 0.0f ) { m_angle = angle+m_physics->RetCirStopLength(); - m_physics->SetMotorSpeedZ(-1.0f); // tourne � gauche + m_physics->SetMotorSpeedZ(-1.0f); // tourne à gauche m_bLeft = TRUE; } else { m_angle = angle-m_physics->RetCirStopLength(); - m_physics->SetMotorSpeedZ(1.0f); // tourne � droite + m_physics->SetMotorSpeedZ(1.0f); // tourne à droite m_bLeft = FALSE; } m_physics->SetMotorSpeedX(0.0f); @@ -99,7 +99,7 @@ Error CTaskTurn::Start(float angle) return ERR_OK; } -// Indique si l'action est termin�e. +// Indique si l'action est terminée. Error CTaskTurn::IsEnded() { -- cgit v1.2.3-1-g7c22