Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2015-01-24 15:55:45 +0000
committerStijn Buys <ingar@osirion.org>2015-01-24 15:55:45 +0000
commite3986c6d4e898da80bafd21e3861119248a170d8 (patch)
tree294bd3b3e7b29d4285d895f9239a5ff1f4907389
parent8f996cd439b42f834c3263f518d73c4a3e630929 (diff)
Removed specialized globe distance function.
-rw-r--r--src/render/draw.cc16
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();