summaryrefslogtreecommitdiffhomepage
path: root/src/scenery.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-02 21:39:18 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-03 01:22:13 +0200
commitc9d56d6fb1c8eca558db937b99b89535893950a0 (patch)
tree81a4cb7c34af7e78fab8cc2e5780511e8c451978 /src/scenery.cpp
parentfc1a03f9a257faf78de7838954709593ab4da628 (diff)
fix some harmless msvc stuff
Diffstat (limited to 'src/scenery.cpp')
-rw-r--r--src/scenery.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/scenery.cpp b/src/scenery.cpp
index 9acc7944..ff78bfa8 100644
--- a/src/scenery.cpp
+++ b/src/scenery.cpp
@@ -77,8 +77,8 @@ Vector2 scenery::ordinal_offset(Vector2b offset) const
{
if (sc_type == scenery_type::door)
{
- constexpr auto off_closed_ = Vector2b(0, -iTILE_SIZE[1]/2+2);
- constexpr auto off_opened_ = Vector2b(-iTILE_SIZE[0]+2, -iTILE_SIZE[1]/2+2);
+ constexpr auto off_closed_ = Vector2b(0, -bTILE_SIZE[1]/2+2);
+ constexpr auto off_opened_ = Vector2b(-bTILE_SIZE[0]+2, -bTILE_SIZE[1]/2+2);
const auto off_closed = rotate_point(off_closed_, rotation::N, r);
const auto off_opened = rotate_point(off_opened_, rotation::N, r);
const auto vec = frame == atlas->info().nframes-1 ? off_closed : off_opened;
@@ -93,7 +93,7 @@ Vector2 scenery::depth_offset() const
Vector2 ret;
if (sc_type == scenery_type::door)
{
- constexpr auto door_offset = Vector2b(-iTILE_SIZE[0], 0);
+ constexpr auto door_offset = Vector2b(-bTILE_SIZE[0], 0);
const auto offset = rotate_point(door_offset, rotation::N, r);
ret += Vector2(offset);
}