Skip to content

Commit

Permalink
UPBGE: Fix ray cast mask compilation warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
panzergame authored and youle31 committed May 26, 2019
1 parent 70b07fd commit 157077f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/gameengine/Ketsji/KX_GameObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3921,7 +3921,7 @@ KX_GameObject::RayCastData::RayCastData(const std::string& prop, bool xray, unsi
static bool CheckRayCastObject(KX_GameObject *obj, KX_GameObject::RayCastData *rayData)
{
const std::string& prop = rayData->m_prop;
const unsigned short mask = rayData->m_mask;
const unsigned int mask = rayData->m_mask;
// Check if the object had a given property (if this one is non empty) and have the correct group mask (if this one is different from 0xFFFF).
return ((prop.empty() || obj->GetProperty(prop)) && (mask == ((1u << OB_MAX_COL_MASKS) - 1) || obj->GetCollisionGroup() & mask));
}
Expand Down

0 comments on commit 157077f

Please sign in to comment.