fix small math error
This commit is contained in:
+1
-1
@@ -51,7 +51,7 @@ rects_overlap :: proc(
|
||||
footprint_center :: proc(gx, gy, footprint_w, footprint_h: int) -> Vec2 {
|
||||
return Vec2 {
|
||||
f32(gx * TILE_SIZE + (footprint_w * TILE_SIZE) / 2),
|
||||
f32(gy * TILE_SIZE + (footprint_h + TILE_SIZE) / 2),
|
||||
f32(gy * TILE_SIZE + (footprint_h * TILE_SIZE) / 2),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user