diff options
| author | warmist | 2012-09-01 23:33:49 +0300 |
|---|---|---|
| committer | warmist | 2012-09-01 23:33:49 +0300 |
| commit | febfc9aa5b87928432060c9c55f2710a2a6201cc (patch) | |
| tree | 202c700e2299b4a710e87c06fc613560918096a0 /scripts | |
| parent | 8536785d1d8b1a87e34e35de36064dd5d9b32333 (diff) | |
| download | dfhack-febfc9aa5b87928432060c9c55f2710a2a6201cc.tar.gz dfhack-febfc9aa5b87928432060c9c55f2710a2a6201cc.tar.bz2 dfhack-febfc9aa5b87928432060c9c55f2710a2a6201cc.tar.xz | |
Fixed bug with gui/mechanism
Fixes script not allowing to ran on e.g. levers (focus string: dwarfmode/QueryBuilding/Some/Lever/Empty )
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/gui/mechanisms.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/gui/mechanisms.lua b/scripts/gui/mechanisms.lua index 6b4b4042..4468e1dc 100644 --- a/scripts/gui/mechanisms.lua +++ b/scripts/gui/mechanisms.lua @@ -122,7 +122,7 @@ function MechanismList:onInput(keys) end end -if dfhack.gui.getCurFocus() ~= 'dwarfmode/QueryBuilding/Some' then +if not string.find(dfhack.gui.getCurFocus(), 'dwarfmode/QueryBuilding/Some') then qerror("This script requires the main dwarfmode view in 'q' mode") end |
