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

Fixed unlock dialog popup, it will appear again (it was only a display bug, unlocks were saved)

git-svn-id: http://svn.net-core.org/repos/t-engine4@4029 51575b47-30f0-44d4-a5cc-537603b46e54
parent decc93ef
No related branches found
No related tags found
No related merge requests found
......@@ -1522,10 +1522,10 @@ function _M:setAllowedBuild(what, notify)
-- Do not unlock things in easy mode
--if self.difficulty == self.DIFFICULTY_EASY then return end
local old = profile.mod.allow_build[what]
profile:saveModuleProfile("allow_build", {name=what})
if profile.mod.allow_build[what] then return end
profile.mod.allow_build[what] = true
if old then return end
if notify then
self.state:checkDonation() -- They gained someting nice, they could be more receptive
......
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