Skip to content

Commit

Permalink
UPBGE: Fix early bail for object activity culling.
Browse files Browse the repository at this point in the history
X & 0 means nothing contrary to X == 0.
  • Loading branch information
panzergame committed Jun 1, 2018
1 parent 4b6dca0 commit 69d9d10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/gameengine/Ketsji/KX_Scene.cpp
Expand Up @@ -1481,7 +1481,7 @@ void KX_Scene::UpdateObjectActivity()

for (KX_GameObject *gameobj : m_objectlist) {
// If the object doesn't manage activity culling we don't compute distance.
if (gameobj->GetActivityCullingInfo().m_flags & KX_GameObject::ActivityCullingInfo::ACTIVITY_NONE) {
if (gameobj->GetActivityCullingInfo().m_flags == KX_GameObject::ActivityCullingInfo::ACTIVITY_NONE) {
continue;
}

Expand Down

0 comments on commit 69d9d10

Please sign in to comment.