From 98ebd8cfda13b183fb162a69dd010b38df1eaf5a Mon Sep 17 00:00:00 2001 From: Loic Nageleisen Date: Sat, 26 Apr 2014 15:41:55 +0200 Subject: [PATCH] clean compute --- ld48-29.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ld48-29.go b/ld48-29.go index 6e4b70e..3245ec7 100644 --- a/ld48-29.go +++ b/ld48-29.go @@ -103,8 +103,8 @@ func spriteQuad(x int, y int, w int, h int) { x1 := x * unit y1 := y * unit - x2 := x * unit + w * unit - y2 := y * unit + h * unit + x2 := x1 + w * unit + y2 := y1 + h * unit rx1 := float32(x1) / float32(size) rx2 := float32(x2) / float32(size)