Graphical fix

This commit is contained in:
Anuken
2018-12-06 11:41:05 -05:00
parent da86dee981
commit 1a66b7c4c3
2 changed files with 3 additions and 2 deletions

View File

@ -395,8 +395,8 @@ public class Renderer extends RendererModule{
Graphics.getEffectSurface().setSize(w, h, true);
Core.camera.viewportWidth = w;
Core.camera.viewportHeight = h;
Core.camera.position.x = w/2f;
Core.camera.position.y = h/2f;
Core.camera.position.x = w/2f + tilesize/2f;
Core.camera.position.y = h/2f + tilesize/2f;
draw();

View File

@ -200,6 +200,7 @@ public class OverlayRenderer{
}
void drawBar(Color color, float x, float y, float finion){
if(finion > 0.9f) finion = 1f; //fixes precision errors
finion = Mathf.clamp(finion);
if(finion > 0) finion = Mathf.clamp(finion, 0.24f, 1f);