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
local islandEcosystem
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
islandEcosystem = ecoName
break
end
end
end
-- flag to display only vegetation of current ecosystem
if islandEcosystem and ecosystemTrees[islandEcosystem] then

Loading…
Cancel
Save