summaryrefslogtreecommitdiffhomepage
path: root/src/scenery.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-09-10 23:04:15 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-09-11 14:20:10 +0200
commit87ebad7f6e6e552ec190b57f656aed53aa861e07 (patch)
tree3a37e92d7096d3b7b869553270d8c6f7d959da48 /src/scenery.cpp
parente76bd9d8a6a8e4226ae3dd492439d66ab977d006 (diff)
clean up some defs
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);