Improve LegoRacers HitActor matches (#1318)

This commit is contained in:
Christian Semmler
2025-01-08 17:15:05 -07:00
committed by GitHub
parent 4c32abd16d
commit 8026025fbd

View File

@@ -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;
}
}