summaryrefslogtreecommitdiff
path: root/src/render.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/render.cpp')
-rw-r--r--src/render.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/render.cpp b/src/render.cpp
index 6c47ab7..a640ecc 100644
--- a/src/render.cpp
+++ b/src/render.cpp
@@ -271,9 +271,12 @@ void state_t::render(game::state_t *game)
}
}
- if (debug_draw_cmodels)
- for (world::entity_t *ent : ents)
+ for (world::entity_t *ent : ents) {
+ ent->render_late_to(this);
+
+ if (debug_draw_cmodels)
drender_entity(ent);
+ }
}
void state_t::render(double phase, animated_texture_t *anim, rectf_t bounds, sf::Color color, bool mirror){