From 32a8c399329d42da7514427bd15d6d624f081979 Mon Sep 17 00:00:00 2001 From: Trey Tomes Date: Tue, 26 Dec 2023 08:31:16 -0600 Subject: [PATCH] Minor HUD cleanup. --- src/factories/entities.ms | 2 +- src/map.ms | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/factories/entities.ms b/src/factories/entities.ms index abdfd26..0d40c53 100644 --- a/src/factories/entities.ms +++ b/src/factories/entities.ms @@ -98,7 +98,7 @@ makeSimpleVillager = function(map, pnt) "You don't say?", ] result = ui.showMessage(message, options, e.name) - Service.messages.report("You said: '{0}'".fill([ options[result] ])) + Service.messages.report("You said: ""{0}""".fill([ options[result] ])) return true end function diff --git a/src/map.ms b/src/map.ms index 676891a..f487ec9 100644 --- a/src/map.ms +++ b/src/map.ms @@ -119,7 +119,7 @@ Map.findHiddenSpawnPoint = function() end function Map.clear = function(dsp) - for y in range(0, SCREEN_MAX_Y) + for y in range(0, SCREEN_MAX_Y - 1) for x in range(0, SCREEN_MAX_X) dsp.setCell x, y, "#", color.black, color.gray end for @@ -159,7 +159,7 @@ end function Map.draw_v1 = function(display, player, renderOffset) halfHeight = constants.TILE_DISPLAY_HEIGHT / 2 - 1 halfWidth = constants.TILE_DISPLAY_WIDTH / 2 - 1 - for y in range(player.position.y - halfHeight, player.position.y + halfHeight + 1) + for y in range(player.position.y - halfHeight, player.position.y + halfHeight + 1 - 1) // The -1 at the end here accounts for a HUD rendering problem. for x in range(player.position.x - halfWidth, player.position.x + halfWidth + 1) self.drawTile display, x, y, renderOffset end for