diff --git a/game/engines/default/engine/dialogs/ShowText.lua b/game/engines/default/engine/dialogs/ShowText.lua index 6a8d350b00a1927924ffe38eb906a9f9362ca90d..63b3aa5c899358dbc8c8c36512f48f8546af5d09 100644 --- a/game/engines/default/engine/dialogs/ShowText.lua +++ b/game/engines/default/engine/dialogs/ShowText.lua @@ -29,7 +29,7 @@ function _M:init(title, file, replace, w, h) self.iw = w - 2 * 5 -- Cheat, this is normaly done by Dialog:init but we need it to generate the list and we needto generate it before init self.font = core.display.newFont("/data/font/Vera.ttf", 12) self:generateList(file, replace) - h = math.min(4 + (#self.list) * self.font:lineSkip(), h) + h = math.min(4 + 30 + (#self.list) * self.font:lineSkip(), h) engine.Dialog.init(self, title or "Text", w, h, nil, nil, nil, self.font) diff --git a/game/modules/tome/class/Player.lua b/game/modules/tome/class/Player.lua index cb98633bef897d4b1b7a139ab1a729f5b20afd26..a7f6a6f9fbae98a8cb5aad21c43f35126dffb367 100644 --- a/game/modules/tome/class/Player.lua +++ b/game/modules/tome/class/Player.lua @@ -596,7 +596,7 @@ end function _M:useOrbPortal(portal) if portal.special then portal:special(self) return end - if spotHostiles(self) then game.logPlayer(self, "You can not use the Orb with foes in sight.") end + if spotHostiles(self) then game.logPlayer(self, "You can not use the Orb with foes in sight.") return end if portal.teleport_level then local x, y = util.findFreeGrid(portal.teleport_level.x, portal.teleport_level.y, 2, true, {[Map.ACTOR]=true})