CVisorFlare: Rename "near" to avoid MSVC conflict

This commit is contained in:
Luke Street 2020-03-08 23:44:44 -04:00
parent 1a131907ef
commit 6e9a80de5d
1 changed files with 3 additions and 3 deletions

View File

@ -46,13 +46,13 @@ void CVisorFlare::Update(float dt, const zeus::CVector3f& pos, const CActor* act
zeus::CVector3f camPos = mgr.GetCameraManager()->GetCurrentCamera(mgr)->GetTranslation(); zeus::CVector3f camPos = mgr.GetCameraManager()->GetCurrentCamera(mgr)->GetTranslation();
zeus::CVector3f camDiff = pos - camPos; zeus::CVector3f camDiff = pos - camPos;
const float mag = (camDiff.magnitude()); const float mag = (camDiff.magnitude());
rstl::reserved_vector<TUniqueId, 1024> near; rstl::reserved_vector<TUniqueId, 1024> nearVec;
mgr.BuildNearList(near, camPos, camDiff * (1.f / mag), mag, mgr.BuildNearList(nearVec, camPos, camDiff * (1.f / mag), mag,
CMaterialFilter::MakeInclude({EMaterialTypes::Occluder}), act); CMaterialFilter::MakeInclude({EMaterialTypes::Occluder}), act);
TUniqueId id; TUniqueId id;
CRayCastResult result = mgr.RayWorldIntersection( CRayCastResult result = mgr.RayWorldIntersection(
id, camPos, camDiff, mag, id, camPos, camDiff, mag,
CMaterialFilter::MakeIncludeExclude({EMaterialTypes::Solid}, {EMaterialTypes::SeeThrough}), near); CMaterialFilter::MakeIncludeExclude({EMaterialTypes::Solid}, {EMaterialTypes::SeeThrough}), nearVec);
if (result.IsValid()) { if (result.IsValid()) {
x28_ -= mag; x28_ -= mag;