Fix extra actor collisions (#958)

This commit is contained in:
Christian Semmler 2024-05-26 13:13:56 -04:00 committed by GitHub
parent 765c49fd4e
commit 3c45022864
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -563,7 +563,7 @@ LegoU32 LegoROI::FUN_100a9410(
)
{
if (p_collideBox) {
Mx3DPointFloat v2(p_v1);
Mx3DPointFloat v2(p_v2);
((Vector3&) v2).Mul(p_f1);
((Vector3&) v2).Add(&p_v1);
@ -678,7 +678,7 @@ LegoU32 LegoROI::FUN_100a9410(
local1c = localc / local8;
}
if (local1c >= 0.0f && p_f1 <= local1c) {
if (local1c >= 0.0f && p_f1 >= local1c) {
p_v3 = p_v2;
p_v3.Mul(local1c);
p_v3.Add(&p_v1);