diff options
author | Stijn Buys <ingar@osirion.org> | 2008-08-15 13:05:58 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-08-15 13:05:58 +0000 |
commit | 62de0496836e729ff955274cf153914709775bfb (patch) | |
tree | 54a868d8e4620b4dad49881af7a2614128697cbf /src/render | |
parent | 68fc01c7ce3f089e10a53e6dac92e2f63a9a8efd (diff) |
func_group support
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/draw.cc | 4 |
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); |