mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-09 06:27:43 +00:00
Space pirate bug fixes
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "CPathFindSearch.hpp"
|
||||
#include "Graphics/CGraphics.hpp"
|
||||
|
||||
namespace urde {
|
||||
|
||||
@@ -348,4 +349,17 @@ bool CPathFindSearch::Search(rstl::reserved_vector<CPFRegion*, 4>& regs1, const
|
||||
return reg != nullptr;
|
||||
}
|
||||
|
||||
void CPathFindVisualizer::Draw(const CPathFindSearch& path) {
|
||||
m_spline.Reset();
|
||||
for (const auto& wp : path.GetWaypoints())
|
||||
m_spline.AddVertex(wp, zeus::CColor::skBlue, 2.f);
|
||||
m_spline.Render();
|
||||
}
|
||||
|
||||
void CPathFindSearch::DebugDraw() const {
|
||||
if (!m_viz)
|
||||
m_viz.emplace();
|
||||
m_viz->Draw(*this);
|
||||
}
|
||||
|
||||
} // namespace urde
|
||||
|
||||
Reference in New Issue
Block a user