← Back to team overview

widelands-dev team mailing list archive

Re: [Merge] lp:~widelands-dev/widelands/bug-1810062-territorial-calculations into lp:widelands

 

Is it possible to get the maps name in lua?

like wl.Game().mape.name

Otherwise, since we know that this affects only some
larger maps why not do this for the time being:

   init = function()
      -- Get all valuable fields of the map
      if wl.Game().map.width <= 256 or (wl.Game().map.height <= 256) then
         fields = wl.Game().map.conquerable_fields
      end
   end,

      
      if wl.Game().map.width > 256 or (wl.Game().map.height > 256) then
         fields = wl.Game().map.conquerable_fields
      end

-- 
https://code.launchpad.net/~widelands-dev/widelands/bug-1810062-territorial-calculations/+merge/361366
Your team Widelands Developers is subscribed to branch lp:~widelands-dev/widelands/bug-1810062-territorial-calculations.


References