Skip to content

Commit d80f4ad

Browse files
committed
Fix cube dispenser sprite rounding
1 parent da729b7 commit d80f4ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cubedispenser.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ function cubedispenser:update(dt)
131131
end
132132

133133
function cubedispenser:draw()
134-
love.graphics.draw(cubedispenserimg, cubedispenserquad[spriteset], math.floor((self.cox-xscroll-1)*16*scale), (self.coy-yscroll-1.5)*16*scale, 0, scale, scale, 0, 0)
134+
love.graphics.draw(cubedispenserimg, cubedispenserquad[spriteset], math.floor((self.cox-xscroll-1)*16*scale), math.floor((self.coy-yscroll-1.5)*16*scale), 0, scale, scale, 0, 0)
135135
end
136136

137137
function cubedispenser:removebox()

0 commit comments

Comments
 (0)