Browse Source

Merge pull request #51689 from lawnjelly/portals_fix_roaming

Portals - Fix cull roaming through multiple portals
Rémi Verschelde 4 years ago
parent
commit
a002e92c2e
1 changed files with 3 additions and 3 deletions
  1. 3 3
      servers/visual/portals/portal_tracer.cpp

+ 3 - 3
servers/visual/portals/portal_tracer.cpp

@@ -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);
 		}
 	}