2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-20 15:39:12 +00:00

De-hardcode max entity count

This commit is contained in:
2021-06-06 16:53:41 -07:00
parent 89378700f7
commit 5f1aed51cb
64 changed files with 246 additions and 238 deletions

View File

@@ -167,8 +167,8 @@ zeus::CQuaternion CRipperControlledPlatform::Move(float arg, CStateManager& mgr)
const auto quat = zeus::CQuaternion::fromAxisAngle({0.0f, 0.0f, 1.0f}, zRot);
RotateToOR(quat, arg);
rstl::reserved_vector<TUniqueId, 1024> nearList;
rstl::reserved_vector<TUniqueId, 1024> filteredNearList;
rstl::reserved_vector<TUniqueId, kMaxEntities> nearList;
rstl::reserved_vector<TUniqueId, kMaxEntities> filteredNearList;
mgr.BuildColliderList(nearList, *this, GetMotionVolume(arg));
for (const auto& id : nearList) {
if (!IsRider(id) && !IsSlave(id)) {