summaryrefslogtreecommitdiffstats
path: root/src/View/MapView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/View/MapView.cpp')
-rw-r--r--src/View/MapView.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/View/MapView.cpp b/src/View/MapView.cpp
index 7aa5482..224cd37 100644
--- a/src/View/MapView.cpp
+++ b/src/View/MapView.cpp
@@ -169,19 +169,19 @@ void MapView::getBounds(float *minX, float *maxX, float *minY, float *maxY) {
const std::list<Data::Room*> &rooms = mainView->getLevel()->getRooms();
for(std::list<Data::Room*>::const_iterator room = rooms.begin(); room != rooms.end(); ++room) {
- const std::list<Data::Triangle*> &triangles = (*room)->getFloorTriangles();
+ const std::list<Data::Triangle*> &triangles = (*room)->getTriangles();
for(std::list<Data::Triangle*>::const_iterator t = triangles.begin(); t != triangles.end(); ++t) {
- const Data::Vertex &v1 = (*t)->getVertex(0), &v2 = (*t)->getVertex(1), &v3 = (*t)->getVertex(2);
+ const vmml::vec3f &v1 = (*t)->getVertex(0), &v2 = (*t)->getVertex(1), &v3 = (*t)->getVertex(2);
if(minX)
- *minX = std::min(std::min(*minX, v1.getX()), std::min(v2.getX(), v3.getX()));
+ *minX = std::min(std::min(*minX, v1.x()), std::min(v2.x(), v3.x()));
if(maxX)
- *maxX = std::max(std::max(*maxX, v1.getX()), std::max(v2.getX(), v3.getX()));
+ *maxX = std::max(std::max(*maxX, v1.x()), std::max(v2.x(), v3.x()));
if(minY)
- *minY = std::min(std::min(*minY, v1.getZ()), std::min(v2.getZ(), v3.getZ()));
+ *minY = std::min(std::min(*minY, v1.z()), std::min(v2.z(), v3.z()));
if(maxY)
- *maxY = std::max(std::max(*maxY, v1.getZ()), std::max(v2.getZ(), v3.getZ()));
+ *maxY = std::max(std::max(*maxY, v1.z()), std::max(v2.z(), v3.z()));
}
}
}