From 0cb4e069f5168102a7050c01540966cfeaa01212 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 19 May 2023 11:52:36 +0200 Subject: fix light ordinal offset --- src/light.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/light.cpp b/src/light.cpp index 7b491f30..551e931d 100644 --- a/src/light.cpp +++ b/src/light.cpp @@ -34,7 +34,8 @@ float light::depth_offset() const Vector2 light::ordinal_offset(Vector2b) const { - return Vector2(TILE_COUNT, TILE_COUNT); + constexpr auto ret = Vector2(TILE_COUNT, TILE_COUNT) * TILE_SIZE2; + return ret; } entity_type light::type() const noexcept { return entity_type::light; } -- cgit v1.2.3