Skip to content
Snippets Groups Projects
Commit ec1c9592 authored by dg's avatar dg
Browse files

Use item dialog is now large enough for the text

Ice Wall/Stone Wall now work even after loadign a savefile


git-svn-id: http://svn.net-core.org/repos/t-engine4@1291 51575b47-30f0-44d4-a5cc-537603b46e54
parent f9303fab
No related branches found
No related tags found
No related merge requests found
......@@ -105,7 +105,7 @@ newTalent{
self:useEnergy()
self.temporary = self.temporary - 1
if self.temporary <= 0 then
game.level.map(self.x, self.y, Map.TERRAIN, self.old_feat)
game.level.map(self.x, self.y, engine.Map.TERRAIN, self.old_feat)
game.level:removeEntity(self)
game.level.map:redisplay()
end
......
......@@ -142,7 +142,7 @@ newTalent{
self:useEnergy()
self.temporary = self.temporary - 1
if self.temporary <= 0 then
game.level.map(self.x, self.y, Map.TERRAIN, self.old_feat)
game.level.map(self.x, self.y, engine.Map.TERRAIN, self.old_feat)
game.level:removeEntity(self)
game.level.map:redisplay()
end
......
......@@ -35,7 +35,7 @@ function _M:init(actor, object, item, inven, onuse)
self:generateList()
local name = object:getName()
local nw, nh = self.font:size(name)
engine.Dialog.init(self, name, math.max(nw, self.max) + 10, self.maxh + 10 + 25, nil, nil, nil, self.font)
engine.Dialog.init(self, " "..name.." ", math.max(nw, self.max) + 10, self.maxh + 10 + 25, nil, nil, nil, self.font)
self.sel = 1
self.scroll = 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment