summaryrefslogtreecommitdiffhomepage
path: root/src/character.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-07 20:44:42 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-07 20:44:49 +0200
commit21eaaee936a47742f59eb6b5665422de2bd8e7ae (patch)
treeaeb89f45aaee920eeb88dd14ce53b76eb818d047 /src/character.cpp
parent82ec1a07c79b1c96688464609d043d6ce23685b1 (diff)
fix closed doors clipping through walls
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
{