summaryrefslogtreecommitdiff
path: root/src/KingSystem/Physics/StaticCompound/physStaticCompound.cpp
diff options
context:
space:
mode:
authorLéo Lam <leo@leolam.fr>2022-03-25 22:20:19 +0100
committerLéo Lam <leo@leolam.fr>2022-03-25 22:20:57 +0100
commita63b816ffcc203047307c2891b760342b1d57557 (patch)
treebd69eff541549d412b4eed7a93fbdd53d98f0feb /src/KingSystem/Physics/StaticCompound/physStaticCompound.cpp
parent82a531920076cbc2facbc2c79263bf1d6be84d8b (diff)
ksys/phys: Fix misleading name for StaticCompound::disableCollision
Diffstat (limited to 'src/KingSystem/Physics/StaticCompound/physStaticCompound.cpp')
-rw-r--r--src/KingSystem/Physics/StaticCompound/physStaticCompound.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/KingSystem/Physics/StaticCompound/physStaticCompound.cpp b/src/KingSystem/Physics/StaticCompound/physStaticCompound.cpp
index 97fc491e..47b3620f 100644
--- a/src/KingSystem/Physics/StaticCompound/physStaticCompound.cpp
+++ b/src/KingSystem/Physics/StaticCompound/physStaticCompound.cpp
@@ -177,7 +177,7 @@ map::Object* StaticCompound::getMapObject(int shape_idx) const {
return mMapObjects[idx];
}
-bool StaticCompound::disableCollision(int actor_idx, bool x) {
+bool StaticCompound::setInstanceEnabled(int actor_idx, bool enabled) {
const int start = mStaticCompoundInfo->getShapeInfoStart(actor_idx);
const int end = mStaticCompoundInfo->getShapeInfoEnd(actor_idx);
for (int i = start; i <= end; ++i) {
@@ -189,7 +189,7 @@ bool StaticCompound::disableCollision(int actor_idx, bool x) {
const auto type = static_cast<BodyLayerType>(info->m_BodyLayerType);
const auto instance_id = info->m_InstanceId;
- mFieldBodyGroups[group].setInstanceEnabled(type, instance_id, x);
+ mFieldBodyGroups[group].setInstanceEnabled(type, instance_id, enabled);
}
return true;
}