Only allow quicksave to be used in fortress mode

develop
lethosor 2015-05-06 18:47:40 -04:00
parent 7c943179c7
commit 4e5326e25d
2 changed files with 5 additions and 0 deletions

@ -20,6 +20,7 @@ DFHack Future
Misc Improvements Misc Improvements
"keybinding list" accepts a context "keybinding list" accepts a context
nyan: Can now be stopped with dfhack-run nyan: Can now be stopped with dfhack-run
quicksave: Restricted to fortress mode
Removed Removed
DFHack 0.40.24-r3 DFHack 0.40.24-r3

@ -4,6 +4,10 @@ if not dfhack.isMapLoaded() then
qerror("World and map aren't loaded.") qerror("World and map aren't loaded.")
end end
if not dfhack.world.isFortressMode() then
qerror('This script can only be used in fortress mode')
end
local ui_main = df.global.ui.main local ui_main = df.global.ui.main
local flags4 = df.global.d_init.flags4 local flags4 = df.global.d_init.flags4