aboutsummaryrefslogtreecommitdiffstats
path: root/src/components.cpp
diff options
context:
space:
mode:
authorAndy <drumsetmonkey@gmail.com>2016-10-28 08:30:14 -0400
committerAndy <drumsetmonkey@gmail.com>2016-10-28 08:30:14 -0400
commit0a8654a125fad2961039e614fd10f1f683c0001f (patch)
tree6eb4760dcb9129870fb3906be0969a37646502e7 /src/components.cpp
parent816bedbd011b6729e8be0a4b40213f48fd9d73ca (diff)
Text is fixed, and objects can be placed on the ground
Diffstat (limited to 'src/components.cpp')
-rw-r--r--src/components.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/components.cpp b/src/components.cpp
index e00d474..609b5f4 100644
--- a/src/components.cpp
+++ b/src/components.cpp
@@ -93,6 +93,7 @@ void RenderSystem::update(entityx::EntityManager &en, entityx::EventManager &ev,
en.each<Visible, Position, Solid, Name>([](entityx::Entity e, Visible &v, Position &pos, Solid& dim, Name &name) {
(void)e;
(void)v;
+ ui::setFontZ(-5.0);
ui::putStringCentered(pos.x + dim.width / 2, pos.y - ui::fontSize - HLINES(0.5), name.name);
});
}