mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 00:14:22 +00:00
Improve LegoRacers
HitActor
matches (#1318)
This commit is contained in:

committed by
GitHub

parent
4c32abd16d
commit
8026025fbd
@@ -517,13 +517,14 @@ MxResult LegoRaceCar::HitActor(LegoPathActor* p_actor, MxBool p_bool)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p_bool && m_worldSpeed != 0) {
|
if (p_bool) {
|
||||||
return SUCCESS;
|
return m_worldSpeed != 0 ? SUCCESS : FAILURE;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
return FAILURE;
|
return FAILURE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
@@ -717,13 +718,14 @@ MxResult LegoJetski::HitActor(LegoPathActor* p_actor, MxBool p_bool)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p_bool && m_worldSpeed != 0) {
|
if (p_bool) {
|
||||||
return SUCCESS;
|
return m_worldSpeed != 0 ? SUCCESS : FAILURE;
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
return FAILURE;
|
return FAILURE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return SUCCESS;
|
return SUCCESS;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user