comparison CyborgMMO7.lua @ 65:8b8b0bade520

Fixed support for mounts using the new MountJournal and mount IDs (no conversion of old profiles at the moment).
author Jerome Vuarand <jerome.vuarand@gmail.com>
date Thu, 23 Oct 2014 13:44:59 +0100
parents adba10dfa908
children 06167f9ed2ac
comparison
equal deleted inserted replaced
64:49ae7191821f 65:8b8b0bade520
329 VarsLoaded = true 329 VarsLoaded = true
330 -- create root table if necessary 330 -- create root table if necessary
331 if not CyborgMMO7SaveData then 331 if not CyborgMMO7SaveData then
332 CyborgMMO7SaveData = {} 332 CyborgMMO7SaveData = {}
333 end 333 end
334 -- cleanup the local mount cache
335 for mount in pairs(CyborgMMO_MountMap) do
336 CyborgMMO_LocalMountMap[mount] = nil
337 end
334 PreLoad(CyborgMMO7SaveData) 338 PreLoad(CyborgMMO7SaveData)
335 elseif event == "CYBORGMMO_ASYNC_DATA_LOADED" then 339 elseif event == "CYBORGMMO_ASYNC_DATA_LOADED" then
336 AsyncDataLoaded = true 340 AsyncDataLoaded = true
337 -- convert old profile 341 -- convert old profile
338 if CyborgMMO7SaveData[SaveName] and not CyborgMMO7SaveData.Settings then 342 if CyborgMMO7SaveData[SaveName] and not CyborgMMO7SaveData.Settings then