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.

_______________________________________________
Mailing list: https://launchpad.net/~widelands-dev
Post to     : widelands-dev@lists.launchpad.net
Unsubscribe : https://launchpad.net/~widelands-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to