Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2011-05-11 14:48:17 +0000
committerStijn Buys <ingar@osirion.org>2011-05-11 14:48:17 +0000
commit1c63cbf204b1d2c667ce9f821ccb197d0ffb0ac3 (patch)
treec2d0ff7cc4a8a264657abd0ac99017a5b664ecd2 /src/model
parentbb0f860989f84b901f80017ae0139a3fc0446dc1 (diff)
Review of the main loop timer, converted timers from float to unsigned long,
corrected a number of timing bugs, improved client framerate stability.
Diffstat (limited to 'src/model')
-rw-r--r--src/model/mapfile.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/model/mapfile.cc b/src/model/mapfile.cc
index 8dc9d0e..b0f5bea 100644
--- a/src/model/mapfile.cc
+++ b/src/model/mapfile.cc
@@ -530,6 +530,7 @@ bool MapFile::read_patchdef()
mesh[i+1][j] * SCALE);
map_collisiontriangles.add(*triangle);
}
+
} else {
// not clip, convert to quads
Quad *quad = new Quad(
@@ -1875,11 +1876,11 @@ Model * MapFile::load(std::string const &name)
switch (fragmentdst->type()) {
case Fragment::Triangles:
- model->model_tris_count += (fragmentdst->structural_size() + fragmentdst->detail_size()) / 3;
+ model->model_tris_count += (fragmentdst->structural_size() + fragmentdst->detail_size()) / 3;
model->model_tris_detail_count += fragmentdst->detail_size() / 3;
break;
case Fragment::Quads:
- model->model_quad_count += (fragmentdst->structural_size() + fragmentdst->detail_size()) / 4;
+ model->model_quad_count += (fragmentdst->structural_size() + fragmentdst->detail_size()) / 4;
model->model_quad_detail_count += fragmentdst->detail_size() / 4;
break;
}