I have a weird bug with eclipses indenting. Some reason the shifted right at the start is causing this because as soon as I removed it and did Crtl + A then Ctrl + I it moved the second line in line with first one but not the third because of the shifted right in the second line. Sorry if this is the wrong topic. Anyone has any fix, I would like it
public void render(int xOffset, int yOffset, Screen screen)
{
int x1 = xOffset >> 4;
int x2 = (screen.width + 16) >> 4;
int y1 = yOffset >> 4;
int y2 = (screen.height + 16) >> 4;
screen.setOffset(xOffset, yOffset);
for(int y = y1; y < y2 + y1 ; y++)
{
for(int x = x1; x < x2 + x1; x++)
{
getTile(x, y).render(x, y, screen);
}
}
screen.setOffset(xOffset, yOffset);
}