diff options
author | Stijn Buys <ingar@osirion.org> | 2008-07-20 17:37:03 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-07-20 17:37:03 +0000 |
commit | 8ad20ed0462227463a5e3b94683d8c1c5a650494 (patch) | |
tree | b328fa70ba7b45e3dccb7de54cb5b43c68624cde /src/render/draw.cc | |
parent | ed36610840d6b845a7ac9706502c447a5b773b31 (diff) |
targetting
Diffstat (limited to 'src/render/draw.cc')
-rw-r--r-- | src/render/draw.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/render/draw.cc b/src/render/draw.cc index 8855343..17dbdda 100644 --- a/src/render/draw.cc +++ b/src/render/draw.cc @@ -318,8 +318,7 @@ void pass_prepare(float seconds) // load entity models and light flare textures if (!entity->model() && entity->modelname().size()) { entity->entity_model = model::Model::load(entity->modelname()); - entity->entity_radius = entity->model()->radius(); - + if (!entity->model()) { entity->entity_modelname.clear(); entity->entity_radius = 0.25; @@ -423,7 +422,8 @@ void pass_prepare(float seconds) } } } - + + /* // calculate screen position if (entity->state()->visible()) { GLdouble x = 0; @@ -438,6 +438,7 @@ void pass_prepare(float seconds) entity->state()->state_targetable = true; } } + */ } } |