Skip to content

Commit

Permalink
Merge branch 'development'
Browse files Browse the repository at this point in the history
  • Loading branch information
fiendish committed Aug 24, 2017
2 parents 11a1895 + 5c2f119 commit 0911250
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 3 additions & 0 deletions MUSHclient/AardwolfPackageChanges.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Aardwolf Client Package Major Changes List

r1936 snapshot
- bug fix: Fixed an error saving the bigmap position while not merged into the GMCP mapper miniwindow.

r1935 snapshot
- bug fix: Some people had reported miniwindows not staying in the right place after r1927. It turns out that this was actually a bug in the official version of movewindow.lua. The fix for this has also been reported to Nick Gammon.
- bug fix: 'resetaard' should now correctly default miniwindow sizes again after being somewhat broken by changes made for the layout profile feature.
Expand Down
10 changes: 4 additions & 6 deletions MUSHclient/worlds/plugins/Aardwolf_Bigmap_Graphical.xml
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ function DrawMap(clearHotspotsFirst)
local image_name = "bigmap_continent_"..zone
if (mapwin == GetPluginID().."_mapper") then
local window_width, window_height
if not use_exact_sizes and unmerged_width ~= nil and unmerged_height ~= nil then
if not use_exact_sizes and unmerged_width ~= nil and unmerged_width ~= 0 and unmerged_height ~= nil and unmerged_height ~= 0 then
window_width = unmerged_width
window_height = unmerged_height
else
Expand Down Expand Up @@ -726,7 +726,7 @@ function do_init()
win = GetPluginID ().."_offscreen_buffer"
mapwin = (((use_gmcp_mapper == 1 and IsPluginInstalled("b6eae87ccedd84f510b74714") and GetPluginInfo("b6eae87ccedd84f510b74714", 17)) and "b6eae87ccedd84f510b74714_mapper") or GetPluginID().."_mapper")
windowinfo = movewindow.install(mapwin, miniwin.pos_top_left, miniwin.create_absolute_location, true, nil, {mouseup=MouseUp,
windowinfo = movewindow.install(mapwin, miniwin.pos_top_left, miniwin.create_absolute_location, mapwin ~= GetPluginID().."_mapper", nil, {mouseup=MouseUp,
mousedown=LeftClickOnly, dragmove=LeftClickOnly,
dragrelease=LeftClickOnly},{x=0, y=0})
Expand Down Expand Up @@ -767,10 +767,8 @@ function OnPluginSaveState ()
SetVariable ("xref", "xref = " .. serialize.save_simple (xref))
SetVariable("use_gmcp_mapper", tostring(use_gmcp_mapper))
SetVariable("show_map", show_map)
if (mapwin == GetPluginID().."_mapper") then
movewindow.save_state (mapwin)
end
if WindowInfo(mapwin, 3) and WindowInfo(mapwin, 4) then
if (mapwin == GetPluginID().."_mapper" and WindowInfo(mapwin, 3)) then
movewindow.save_state(mapwin)
unmerged_width = WindowInfo(mapwin, 3)
unmerged_height = WindowInfo(mapwin, 4)
SetVariable("unmerged_width", unmerged_width)
Expand Down

0 comments on commit 0911250

Please sign in to comment.