Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/model/map.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/model/map.cc b/src/model/map.cc
index b4a747c..1d1983c 100644
--- a/src/model/map.cc
+++ b/src/model/map.cc
@@ -470,7 +470,8 @@ void Map::make_brushface(Plane *face)
class_minbbox[i] = (*(*it))[i];
}
}
-
+/* Quads are disable to use model data for bullet physics
+
// split polygon into quads
while (vl.size() > 3) {
std::vector<Vector3f *>::iterator v0 = vl.begin();
@@ -490,9 +491,9 @@ void Map::make_brushface(Plane *face)
vl.pop_back();
vl.pop_back();
}
-
- // the remainder could be a triangle
- if (vl.size() > 2) {
+*/
+ // split polygon into triangles
+ while (vl.size() > 2) {
std::vector<Vector3f *>::iterator v0 = vl.begin();
std::vector<Vector3f *>::reverse_iterator vn = vl.rbegin();
std::vector<Vector3f *>::reverse_iterator vn1 = vl.rbegin();