diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-05-19 11:52:36 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-05-19 11:52:36 +0200 |
commit | 0cb4e069f5168102a7050c01540966cfeaa01212 (patch) | |
tree | 98f5483d520d51203988f46d057218ed85683ff4 | |
parent | 55f5973dd6053d51927fea2af255b3d75764f59d (diff) |
fix light ordinal offset
-rw-r--r-- | src/light.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |