Failed to detect ecosystem of selected island, fix missing plants in palette, kaetemi/ryzomclassic#132

ryzomclassic-develop
kaetemi 4 years ago
parent d2900df0f6
commit 9580bd5ec0

@ -1240,11 +1240,13 @@ function r2.acts:updatePaletteFromEcosystem()
-- search for ecosystem of current location -- search for ecosystem of current location
local islandEcosystem local islandEcosystem
for ecoName, v in pairs(self.islands) do for ecoName, v in pairs(self.islands) do
if self.islands[ecoName][self:getIslandNb(currentLocation.IslandName)] then
if self.islands[ecoName][self:getIslandNb(currentLocation.IslandName)].name==currentLocation.IslandName then if self.islands[ecoName][self:getIslandNb(currentLocation.IslandName)].name==currentLocation.IslandName then
islandEcosystem = ecoName islandEcosystem = ecoName
break break
end end
end end
end
-- flag to display only vegetation of current ecosystem -- flag to display only vegetation of current ecosystem
if islandEcosystem and ecosystemTrees[islandEcosystem] then if islandEcosystem and ecosystemTrees[islandEcosystem] then

Loading…
Cancel
Save