diff --git a/gui/gm-editor.lua b/gui/gm-editor.lua index 86cf6c3879..1c0fe7a345 100644 --- a/gui/gm-editor.lua +++ b/gui/gm-editor.lua @@ -433,10 +433,7 @@ function GmEditorUi:gotoPos() end end if pos then - dfhack.gui.revealInDwarfmodeMap(pos,true) - df.global.game.main_interface.recenter_indicator_m.x = pos.x - df.global.game.main_interface.recenter_indicator_m.y = pos.y - df.global.game.main_interface.recenter_indicator_m.z = pos.z + dfhack.gui.revealInDwarfmodeMap(pos,true,true) end end function GmEditorUi:editSelectedRaw(index,choice) diff --git a/warn-stranded.lua b/warn-stranded.lua index 9ebc2efacd..0933a7364b 100644 --- a/warn-stranded.lua +++ b/warn-stranded.lua @@ -269,7 +269,7 @@ function WarningWindow:onZoom() local unit = choice.data['unit'] local target = xyz2pos(dfhack.units.getPosition(unit)) - dfhack.gui.revealInDwarfmodeMap(target, true) + dfhack.gui.revealInDwarfmodeMap(target, false, true) end function WarningWindow:onToggleGroup()