PlaneMap::scan is now working, with unit tests.

This commit is contained in:
2022-07-13 01:08:54 -04:00
parent d54d6e4433
commit 69efb12c26
6 changed files with 444 additions and 96 deletions

View File

@@ -232,7 +232,7 @@ util::IdVector World::get_near(int64_t player_id, float radius, bool exclude_now
PlaneScan scan;
scan.set_plane(aqback.plane());
scan.set_bbox_given_center_radius(aqback.xyz(), radius);
scan.set_shape(PlaneScan::SPHEROID);
scan.set_shape(PlaneScan::SPHERE);
scan.set_sorted(sorted);
scan.set_omit_nowhere(exclude_nowhere);
scan.set_special(player_id, omit_player);