From a33ebd2130c4bf9db26dff640503c2e0f82fe7e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Sun, 23 Jan 2022 16:54:18 +0100 Subject: ksys/phys: Introduce {First,Last}{Entity,Sensor} constants to improve clarity --- src/KingSystem/Physics/System/physSystem.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/KingSystem/Physics/System/physSystem.cpp') diff --git a/src/KingSystem/Physics/System/physSystem.cpp b/src/KingSystem/Physics/System/physSystem.cpp index df841497..ad87f567 100644 --- a/src/KingSystem/Physics/System/physSystem.cpp +++ b/src/KingSystem/Physics/System/physSystem.cpp @@ -31,9 +31,8 @@ void System::initSystemData(sead::Heap* heap) { res::registerEntryFactory(new (heap) res::EntryFactory(1.0, 0x4000), "brgcon"); - mEntityGroupFilter = EntityGroupFilter::make(ContactLayer::EntityObject, - ContactLayer::EntityMeshVisualizer, heap); - mSensorGroupFilter = SensorGroupFilter::make(ContactLayer::SensorCustomReceiver, heap); + mEntityGroupFilter = EntityGroupFilter::make(FirstEntity, LastEntity, heap); + mSensorGroupFilter = SensorGroupFilter::make(LastSensor, heap); mGroupFilters.pushBack(mEntityGroupFilter); mGroupFilters.pushBack(mSensorGroupFilter); -- cgit v1.2.3