Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -395,8 +395,8 @@ public class Renderer extends RendererModule{
|
|||||||
Graphics.getEffectSurface().setSize(w, h, true);
|
Graphics.getEffectSurface().setSize(w, h, true);
|
||||||
Core.camera.viewportWidth = w;
|
Core.camera.viewportWidth = w;
|
||||||
Core.camera.viewportHeight = h;
|
Core.camera.viewportHeight = h;
|
||||||
Core.camera.position.x = w/2f;
|
Core.camera.position.x = w/2f + tilesize/2f;
|
||||||
Core.camera.position.y = h/2f;
|
Core.camera.position.y = h/2f + tilesize/2f;
|
||||||
|
|
||||||
draw();
|
draw();
|
||||||
|
|
||||||
|
|||||||
@@ -200,6 +200,7 @@ public class OverlayRenderer{
|
|||||||
}
|
}
|
||||||
|
|
||||||
void drawBar(Color color, float x, float y, float finion){
|
void drawBar(Color color, float x, float y, float finion){
|
||||||
|
if(finion > 0.9f) finion = 1f; //fixes precision errors
|
||||||
finion = Mathf.clamp(finion);
|
finion = Mathf.clamp(finion);
|
||||||
|
|
||||||
if(finion > 0) finion = Mathf.clamp(finion, 0.24f, 1f);
|
if(finion > 0) finion = Mathf.clamp(finion, 0.24f, 1f);
|
||||||
|
|||||||
Reference in New Issue
Block a user