diff --git a/LEGO1/lego/legoomni/src/race/legoracers.cpp b/LEGO1/lego/legoomni/src/race/legoracers.cpp index f16a488c..14afc7f9 100644 --- a/LEGO1/lego/legoomni/src/race/legoracers.cpp +++ b/LEGO1/lego/legoomni/src/race/legoracers.cpp @@ -517,11 +517,12 @@ MxResult LegoRaceCar::HitActor(LegoPathActor* p_actor, MxBool p_bool) } } - if (p_bool && m_worldSpeed != 0) { - return SUCCESS; + if (p_bool) { + return m_worldSpeed != 0 ? SUCCESS : FAILURE; + } + else { + return FAILURE; } - - return FAILURE; } } @@ -717,11 +718,12 @@ MxResult LegoJetski::HitActor(LegoPathActor* p_actor, MxBool p_bool) } } - if (p_bool && m_worldSpeed != 0) { - return SUCCESS; + if (p_bool) { + return m_worldSpeed != 0 ? SUCCESS : FAILURE; + } + else { + return FAILURE; } - - return FAILURE; } }