From 0332ac950765e7609604f14e459d24d6b917d9d7 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 7 Jul 2009 09:28:10 +0000 Subject: disable quad generation in the map reader --- src/model/map.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') 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::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::iterator v0 = vl.begin(); std::vector::reverse_iterator vn = vl.rbegin(); std::vector::reverse_iterator vn1 = vl.rbegin(); -- cgit v1.2.3