diff options
-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; } |