Cached Block#offset()

This commit is contained in:
Anuken
2020-07-19 16:34:06 -04:00
parent c398b89284
commit 6547a38567
24 changed files with 60 additions and 65 deletions
+2 -2
View File
@@ -68,8 +68,8 @@ public class Drawf{
Point2 p = Geometry.d8edge[i];
float offset = -Math.max(block.size - 1, 0) / 2f * tilesize;
Draw.rect("block-select",
x*tilesize + block.offset() + offset * p.x,
y*tilesize + block.offset() + offset * p.y, i * 90);
x*tilesize + block.offset + offset * p.x,
y*tilesize + block.offset + offset * p.y, i * 90);
}
Draw.reset();
}