mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-02-10 19:08:14 +07:00
Minor bugfixes
Removed redundant method call from drawDebugSpecial Fixed issue where resizing MapRenderer was not forcing update
This commit is contained in:
parent
0c4c4a5fb1
commit
0a9b4c5b8e
@ -1105,7 +1105,7 @@ public class MapRenderer {
|
||||
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 class MapViewer extends ApplicationAdapter {
|
||||
return true;
|
||||
case Input.Keys.ALT_LEFT:
|
||||
mapRenderer.resize();
|
||||
mapRenderer.update(true);
|
||||
return true;
|
||||
case Input.Keys.F1:
|
||||
drawCrosshair = !drawCrosshair;
|
||||
|
Loading…
Reference in New Issue
Block a user