summaryrefslogtreecommitdiffhomepage
path: root/src/scenery.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/scenery.cpp')
-rw-r--r--src/scenery.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/scenery.cpp b/src/scenery.cpp
index 22c7083a..29198b0f 100644
--- a/src/scenery.cpp
+++ b/src/scenery.cpp
@@ -74,6 +74,8 @@ void scenery::update(size_t, float dt)
Vector2 scenery::ordinal_offset(Vector2b offset) const
{
+ constexpr auto bTILE_SIZE = Vector2b(iTILE_SIZE2);
+
if (sc_type == scenery_type::door)
{
constexpr auto off_closed_ = Vector2b(0, -bTILE_SIZE[1]/2+2);