Make m_bb_max and m_bb_min private in Graph again
Avoid setting them in ArenaGraph, let createQuad handle them all
This commit is contained in:
@@ -117,8 +117,6 @@ void ArenaGraph::loadNavmesh(const std::string &navmesh)
|
||||
xml_node_node->get("y", &y);
|
||||
xml_node_node->get("z", &z);
|
||||
Vec3 p(x, y, z);
|
||||
m_bb_min.min(p);
|
||||
m_bb_max.max(p);
|
||||
all_vertices.push_back(p);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -56,11 +56,6 @@ protected:
|
||||
|
||||
std::vector<Quad*> m_all_nodes;
|
||||
|
||||
/** The 2d bounding box, used for hashing. */
|
||||
Vec3 m_bb_min;
|
||||
|
||||
Vec3 m_bb_max;
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
/** Factory method to dynamic create 2d / 3d quad for drive and arena
|
||||
* graph. */
|
||||
@@ -69,6 +64,10 @@ protected:
|
||||
bool invisible, bool ai_ignore, bool is_arena);
|
||||
|
||||
private:
|
||||
/** The 2d bounding box, used for hashing. */
|
||||
Vec3 m_bb_min;
|
||||
Vec3 m_bb_max;
|
||||
|
||||
RTT* m_new_rtt;
|
||||
|
||||
/** The node of the graph mesh. */
|
||||
|
||||
Reference in New Issue
Block a user