aboutsummaryrefslogtreecommitdiff
path: root/src/prop.odin
diff options
context:
space:
mode:
authoriamcheeseman <[hidden email]>2026-02-06 22:35:02 -0500
committeriamcheeseman <[hidden email]>2026-02-06 22:35:02 -0500
commitabef713d32b1e237edd718999e47997f5a2a1bcb (patch)
treeb40f1373ac7a75655c550ffd365d818d2bf60a29 /src/prop.odin
parentffd24338b945ea2adf8a3c9ce217407da980b3a0 (diff)
fix props not flipping rightly
Diffstat (limited to 'src/prop.odin')
-rw-r--r--src/prop.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/prop.odin b/src/prop.odin
index 174eceb..f6932de 100644
--- a/src/prop.odin
+++ b/src/prop.odin
@@ -103,11 +103,11 @@ object_spawner_prop :: proc(obj: Object_Resource) {
scale := Vec2{1, 1}
if obj.size.x < 0 {
scale.x = -1
- // pos.x -= f32(img.width)
+ pos.x += f32(img.size.x)
}
if obj.size.y < 0 {
scale.y = -1
- // pos.y -= f32(img.height)
+ pos.y += f32(img.size.y)
}
#partial switch tile.image {