summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-12-13 19:53:52 +0100
committerPaweł Redman <pawel.redman@gmail.com>2017-12-13 19:53:52 +0100
commit9be73e14dceb2c4c84ffe7a5a3a635613a27420e (patch)
treed83bb121887d2898ecb69232a8ac4bc8b7b14128 /src/game
parent868c3ce7659b1042f27b15774976dd20a0be3f77 (diff)
Render layers.
Diffstat (limited to 'src/game')
-rw-r--r--src/game/units.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/units.cpp b/src/game/units.cpp
index abdf216..c416dd7 100644
--- a/src/game/units.cpp
+++ b/src/game/units.cpp
@@ -19,7 +19,6 @@ void unit_t::compute_bounds()
render_bounds[1] = x + render_size[1];
}
-
unit_t::unit_t(unit_t::type_t type_) : entity_t(ET_UNIT)
{
type = type_;
@@ -157,6 +156,7 @@ human_t::human_t() : unit_t(UNIT_HUMAN)
size[1] = v2f_t(+0.4f, +0.4f);
render_size[0] = v2f_t(-0.5f, -1.0f);
render_size[1] = v2f_t(+0.5f, +0.5f);
+ render_layer = -1;
}
void human_t::wake(double now, unit_t *by_whom)