summaryrefslogtreecommitdiffhomepage
path: root/src/character.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/character.cpp')
-rw-r--r--src/character.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/character.cpp b/src/character.cpp
index 7934d1b3..5e42d4e8 100644
--- a/src/character.cpp
+++ b/src/character.cpp
@@ -3,6 +3,7 @@
#include "loader/loader.hpp"
#include "src/world.hpp"
#include "src/entity.hpp"
+#include "shaders/tile.hpp"
#include "src/RTree-search.hpp"
#include <cmath>
#include <utility>
@@ -128,7 +129,10 @@ void character::set_keys(bool L, bool R, bool U, bool D)
b_D = D;
}
-Vector2 character::depth_offset() const { return {}; }
+Vector2 character::depth_offset() const
+{
+ return Vector2(tile_shader::character_depth_offset, 0);
+}
Vector2 character::ordinal_offset(Vector2b offset) const
{