From e3986c6d4e898da80bafd21e3861119248a170d8 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 24 Jan 2015 15:55:45 +0000 Subject: Removed specialized globe distance function. --- src/render/draw.cc | 16 +--------------- 1 file changed, 1 insertion(+), 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 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(); -- cgit v1.2.3