mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-29 22:27:54 +07:00
Graphical fix
This commit is contained in:
@ -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();
|
||||
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user