Fixed fog not clearing, movement bug, items stuck in blocks
This commit is contained in:
@@ -34,6 +34,7 @@ public class FogRenderer implements Disposable{
|
||||
Events.on(WorldLoadGraphicsEvent.class, () -> {
|
||||
dispose();
|
||||
buffer = new FrameBuffer(Format.RGBA8888, world.width(), world.height(), false);
|
||||
changeQueue.clear();
|
||||
|
||||
//clear buffer to black
|
||||
buffer.begin();
|
||||
@@ -101,6 +102,8 @@ public class FogRenderer implements Disposable{
|
||||
Fill.circle(tile.drawx(), tile.drawy(), tile.block().viewRange);
|
||||
}
|
||||
|
||||
changeQueue.clear();
|
||||
|
||||
EntityDraw.setClip(true);
|
||||
Graphics.end();
|
||||
buffer.end();
|
||||
|
||||
@@ -176,8 +176,8 @@ public class OverlayRenderer {
|
||||
float y = unit.y;
|
||||
|
||||
if(unit == players[0] && players.length == 1 && snapCamera) {
|
||||
x = (int)x;
|
||||
y = (int)y;
|
||||
x = (int)(x + 0.0001f);
|
||||
y = (int)(y + 0.0001f);
|
||||
}
|
||||
|
||||
drawEncloser(x, y - 8f, 2f);
|
||||
|
||||
Reference in New Issue
Block a user