diff options
-rw-r--r-- | src/render/draw.cc | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/render/draw.cc b/src/render/draw.cc index 5fcc740..e099536 100644 --- a/src/render/draw.cc +++ b/src/render/draw.cc @@ -63,20 +63,6 @@ typedef std::list<core::EntityGlobe *> DrawlistGlobes; DrawlistEntities drawlist_entities; DrawlistGlobes drawlist_globes; -bool compare_globe_distance(const core::EntityGlobe * globefirst, const core::EntityGlobe * globesecond) -{ - const float d1 = ext_render(globefirst)->distance(); - const float d2 = ext_render(globesecond)->distance(); - if (d1 < d2) - { - return false; - } - else - { - return true; - } -} - bool compare_entity_distance(const core::Entity * entityfirst, const core::Entity * entitysecond) { const float d1 = ext_render(entityfirst)->distance(); @@ -176,7 +162,7 @@ void pass_prepare(float seconds) // sort draw lists by distance drawlist_entities.sort(compare_entity_distance); - drawlist_globes.sort(compare_globe_distance); + drawlist_globes.sort(compare_entity_distance); // zone lights are draw in world space coordinates lightenv_zone.draw(); |