Merge pull request #51689 from lawnjelly/portals_fix_roaming

Portals - Fix cull roaming through multiple portals
This commit is contained in:
Rémi Verschelde 2021-08-15 12:11:08 +02:00 committed by GitHub
commit a002e92c2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -167,10 +167,10 @@ void PortalTracer::cull_roamers(const VSRoom &p_room, const LocalVector<Plane> &
continue;
}
// mark as done
moving.last_tick_hit = _tick;
if (test_cull_inside(moving.exact_aabb, p_planes)) {
// mark as done (and on visible list)
moving.last_tick_hit = _tick;
_result->visible_roamer_pool_ids.push_back(pool_id);
}
}