diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-21 10:53:32 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-21 10:53:49 +0100 |
commit | 15bbfc100a79a975f6024d6e2e6522c4e91f2cb5 (patch) | |
tree | 1fa630728c14b0973a042b50ec712f1303b82eff /src/entity.cpp | |
parent | 5dbee173b961792b42596cb792a50624555cc41b (diff) |
src, draw: work on depth and z offsets
Diffstat (limited to 'src/entity.cpp')
-rw-r--r-- | src/entity.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entity.cpp b/src/entity.cpp index 1b54117d..ff0f77a9 100644 --- a/src/entity.cpp +++ b/src/entity.cpp @@ -51,7 +51,7 @@ float entity::ordinal() const return ordinal(coord.local(), offset, atlas->group(r).z_offset); } -float entity::ordinal(local_coords xy, Vector2b offset, Vector2b z_offset) const +float entity::ordinal(local_coords xy, Vector2b offset, Vector2s z_offset) const { constexpr auto inv_tile_size = 1.f/TILE_SIZE2; constexpr float width = TILE_MAX_DIM+1; |