mirror of
https://github.com/edubart/otclient.git
synced 2025-04-25 23:39:20 +02:00
Save the minimap on a per server basis
Co-authored-by: Xagul <eixim@hotmail.com>
This commit is contained in:
parent
a3fdf073b9
commit
52475761cd
@ -103,12 +103,12 @@ function loadMap(clean)
|
||||
end
|
||||
|
||||
if otmm then
|
||||
local minimapFile = '/minimap.otmm'
|
||||
local minimapFile = '/minimap_'.. G.host ..'.otmm'
|
||||
if g_resources.fileExists(minimapFile) then
|
||||
g_minimap.loadOtmm(minimapFile)
|
||||
end
|
||||
else
|
||||
local minimapFile = '/minimap_' .. clientVersion .. '.otcm'
|
||||
local minimapFile = '/minimap_' .. clientVersion .. '_'.. G.host ..'.otcm'
|
||||
if g_resources.fileExists(minimapFile) then
|
||||
g_map.loadOtcm(minimapFile)
|
||||
end
|
||||
@ -119,10 +119,10 @@ end
|
||||
function saveMap()
|
||||
local clientVersion = g_game.getClientVersion()
|
||||
if otmm then
|
||||
local minimapFile = '/minimap.otmm'
|
||||
local minimapFile = '/minimap_'.. G.host ..'.otmm'
|
||||
g_minimap.saveOtmm(minimapFile)
|
||||
else
|
||||
local minimapFile = '/minimap_' .. clientVersion .. '.otcm'
|
||||
local minimapFile = '/minimap_' .. clientVersion .. '_'.. G.host ..'.otcm'
|
||||
g_map.saveOtcm(minimapFile)
|
||||
end
|
||||
minimapWidget:save()
|
||||
|
Loading…
x
Reference in New Issue
Block a user