ksys/phys: Match CapsuleBody::setRadius

This commit is contained in:
Léo Lam 2022-01-04 00:25:37 +01:00
parent 64cc3c5856
commit 7791352833
No known key found for this signature in database
GPG Key ID: 0DF30F9081000741
2 changed files with 2 additions and 2 deletions

View File

@ -83575,7 +83575,7 @@ Address,Quality,Size,Name
0x0000007100faba68,O,000060,_ZNK4ksys4phys11CapsuleBody11getVerticesEPN4sead7Vector3IfEES5_
0x0000007100fabac4,O,000064,_ZN4ksys4phys11CapsuleBodyD1Ev
0x0000007100fabb04,O,000072,_ZN4ksys4phys11CapsuleBodyD0Ev
0x0000007100fabb4c,m,000060,_ZN4ksys4phys11CapsuleBody9setRadiusEf
0x0000007100fabb4c,O,000060,_ZN4ksys4phys11CapsuleBody9setRadiusEf
0x0000007100fabb88,O,000192,_ZN4ksys4phys11CapsuleBody11setVerticesERKN4sead7Vector3IfEES6_
0x0000007100fabc48,O,000140,_ZNK4ksys4phys11CapsuleBody9getVolumeEv
0x0000007100fabcd4,O,000008,_ZN4ksys4phys11CapsuleBody8getShapeEv

Can't render this file because it is too large.

View File

@ -55,7 +55,7 @@ CapsuleBody::~CapsuleBody() {
}
bool CapsuleBody::setRadius(f32 r) {
if (r <= 0.0f || r == radius) {
if (r == radius || r <= 0.0f) {
return false;
}
radius = r;