diff options
| author | Léo Lam <leo@leolam.fr> | 2021-12-15 11:21:13 +0100 |
|---|---|---|
| committer | Léo Lam <leo@leolam.fr> | 2021-12-15 11:21:56 +0100 |
| commit | fb8f0c636eeb77d407c32930b458f769e187d4b4 (patch) | |
| tree | fe3682e2c490ed0b630c7dfda9964c00cf792dda /src/KingSystem/Physics/physInstanceSet.cpp | |
| parent | c0a24e1611cb0dea3a29b739cd3b05daf9125f0e (diff) | |
ksys: Change isSensorLayer to getContactLayerType
The == 0 and == 1 comparisons suggest that the function actually
returns a ContactLayerType rather than a boolean
Diffstat (limited to 'src/KingSystem/Physics/physInstanceSet.cpp')
| -rw-r--r-- | src/KingSystem/Physics/physInstanceSet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/KingSystem/Physics/physInstanceSet.cpp b/src/KingSystem/Physics/physInstanceSet.cpp index 3742d678..9699d1ef 100644 --- a/src/KingSystem/Physics/physInstanceSet.cpp +++ b/src/KingSystem/Physics/physInstanceSet.cpp @@ -89,7 +89,7 @@ void InstanceSet::sub_7100FBA9BC() { } void InstanceSet::sub_7100FBACE0(phys::ContactLayer layer) { - bool sensor = phys::isSensorLayer(layer); + bool sensor = phys::getContactLayerType(layer) != ContactLayerType::Entity; for (auto& rb : mRigidBodySets) { rb.disableCollisionMaybe(layer); |
