Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/render')
-rw-r--r--src/render/draw.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render/draw.cc b/src/render/draw.cc
index 2104981..18234f5 100644
--- a/src/render/draw.cc
+++ b/src/render/draw.cc
@@ -129,7 +129,7 @@ void pass_prepare(float seconds)
if (entity->model()) {
float r = entity->model()->radius();
- math::clamp(r, 1.0f, 5.0f);
+ math::clamp(r, 1.0f, farplane / drawfxdistance);
if (entity->state()->distance() < drawfxdistance * r) {
// entites within detail range
entity->state()->state_visible = true;
@@ -585,7 +585,7 @@ void draw_model_fragments(core::Entity *entity)
}
}
- for (Model::Fragments::iterator fit = model->fragments().begin(); fit != model->fragments().end(); fit++) {
+ for (model::FragmentGroup::iterator fit = model->worldspawn().begin(); fit != model->worldspawn().end(); fit++) {
Fragment *fragment = (*fit);