mirror of
https://github.com/zeldaret/botw
synced 2026-08-17 21:13:01 -04:00
ksys: Change isSensorLayer to getContactLayerType
The == 0 and == 1 comparisons suggest that the function actually returns a ContactLayerType rather than a boolean
This commit is contained in:
@@ -2,8 +2,10 @@
|
||||
|
||||
namespace ksys::phys {
|
||||
|
||||
u32 isSensorLayer(ContactLayer layer) {
|
||||
return layer > ContactLayer::EntityEnd;
|
||||
ContactLayerType getContactLayerType(ContactLayer layer) {
|
||||
if (layer > ContactLayer::EntityEnd)
|
||||
return ContactLayerType::Sensor;
|
||||
return ContactLayerType::Entity;
|
||||
}
|
||||
|
||||
u32 makeContactLayerMask(ContactLayer layer) {
|
||||
|
||||
Reference in New Issue
Block a user