Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

Commit

Permalink
Formatting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
darthdeus committed Dec 21, 2023
1 parent 7551acf commit 92f5a73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions comfy-ldtk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ impl LdtkEntityExtensions for EntityInstance {
vec2(
self.px[0] as f32,
(layer_c_hei as f32 - 1.0) * grid_size - self.px[1] as f32,
) / grid_size
+ vec2(entity_size.x, -entity_size.y) / 2.0
) / grid_size +
vec2(entity_size.x, -entity_size.y) / 2.0
}

fn world_size(&self, layer_grid_size: i64) -> Vec2 {
Expand Down

0 comments on commit 92f5a73

Please sign in to comment.