Skip to content

Commit

Permalink
Improve LegoRacers HitActor matches (#1318)
Browse files Browse the repository at this point in the history
  • Loading branch information
foxtacles authored Jan 9, 2025
1 parent 4c32abd commit 8026025
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions LEGO1/lego/legoomni/src/race/legoracers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 8026025

Please sign in to comment.