Merge pull request #51689 from lawnjelly/portals_fix_roaming
Portals - Fix cull roaming through multiple portals
This commit is contained in:
commit
a002e92c2e
1 changed files with 3 additions and 3 deletions
|
@ -167,10 +167,10 @@ void PortalTracer::cull_roamers(const VSRoom &p_room, const LocalVector<Plane> &
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// mark as done
|
|
||||||
moving.last_tick_hit = _tick;
|
|
||||||
|
|
||||||
if (test_cull_inside(moving.exact_aabb, p_planes)) {
|
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);
|
_result->visible_roamer_pool_ids.push_back(pool_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue