Skip to content
Permalink
Browse files

Minor bugfixes

Removed redundant method call from drawDebugSpecial
Fixed issue where resizing MapRenderer was not forcing update
  • Loading branch information...
collinsmith committed Oct 28, 2019
1 parent 0c4c4a5 commit 0a9b4c5b8ef48bccc6c072336160e9c6c188391b
Showing with 2 additions and 1 deletion.
  1. +1 −1 core/src/com/riiablo/map/MapRenderer.java
  2. +1 −0 tools/src/com/riiablo/map/MapViewer.java
@@ -1105,7 +1105,7 @@ private void drawDebugSpecial(ShapeRenderer shapes) {
batch.begin();
batch.setShader(null);
BitmapFont font = Riiablo.fonts.consolas12;
String str = String.format(String.format("%s%n%08x", Map.ID.getName(tile.cell.id), tile.cell.value));
String str = String.format("%s%n%08x", Map.ID.getName(tile.cell.id), tile.cell.value);
GlyphLayout layout = new GlyphLayout(font, str, 0, str.length(), font.getColor(), 0, Align.center, false, null);
font.draw(batch, layout,
px + Tile.WIDTH50,
@@ -228,6 +228,7 @@ public boolean keyDown(int keycode) {
return true;
case Input.Keys.ALT_LEFT:
mapRenderer.resize();
mapRenderer.update(true);
return true;
case Input.Keys.F1:
drawCrosshair = !drawCrosshair;

0 comments on commit 0a9b4c5

Please sign in to comment.
You can’t perform that action at this time.