Skip to content
Snippets Groups Projects
Commit b51ea226 authored by DarkGod's avatar DarkGod
Browse files

fix exiting while saving

parent c8d18901
No related branches found
No related tags found
No related merge requests found
......@@ -154,10 +154,8 @@ end
--- Force to wait for the saves
function _M:forceWait()
do return end
if #self.pipe == 0 and (not self.waiton or not next(self.waiton)) then return end
print("[SAVEFILE PIPE] force waiting")
if #self.pipe == 0 and (not self.waiton or not next(self.waiton)) then return end
local popup = Dialog:simpleWaiter("Saving...", "Please wait while saving...", nil, 1000, self.total_nb)
core.display.forceRedraw()
......
......@@ -1916,10 +1916,6 @@ function _M:saveGame()
self.party:setPlayer(oldplayer, true)
end
self.log("Saving game...")
local st = core.game.getTime()
savefile_pipe:forceWait()
print("Save time", core.game.getTime()-st)
end
--- Take a screenshot of the game
......
......@@ -1049,7 +1049,9 @@ function _M:getTextualDesc(compare_with)
desc:add("Allows you to speak and read the old Sher'Tul language.", true)
end
print("<<<")
self:triggerHook{"Object:descWielder", compare_with=compare_with, compare_fields=compare_fields, compare_table_fields=compare_table_fields, desc=desc, w=w, field=field}
print(">>>")
local can_combat_unarmed = false
local compare_unarmed = {}
......
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