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:
Benau
2016-09-29 13:36:50 +08:00
parent 18b1218312
commit 43c40c062e
2 changed files with 4 additions and 7 deletions

View File

@@ -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);
}
}

View File

@@ -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. */