URL:
  <http://gna.org/bugs/?19741>

                 Summary: map format changes should be #ifver friendly
                 Project: Battle for Wesnoth
            Submitted by: anonymissimus
            Submitted on: Fri 18 May 2012 04:22:42 PM GMT
                Category: Feature Request
                Severity: 4 - Important
                Priority: 5 - Normal
              Item Group:  None of the others
                  Status: None
                 Privacy: Public
             Assigned to: fendrin
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 1.11.0-svn@54193
        Operating System: all

    _______________________________________________________

Details:

There should be a way to use the exact same map file in an addon which targets
both 1.10 and 1.11.
It was suggested that when loading the new format, the header should be
ignored in such way that
++
        #ifver WESNOTH_VERSION >= 1.11.0-svn
        [map]
                usage=map
                border_size=1
                data="{~add-ons/A_Simple_Campaign/01_Template.cfg}"
        [/map]
        #else
        map_data="{~add-ons/A_Simple_Campaign/01_Template.cfg}"
        #endif
--
(untested) works (in [scenario]), where 01_Template.cfg is a traditional map
file created and saved with the 1.10 map editor.




    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?19741>

_______________________________________________
  Message sent via/by Gna!
  http://gna.org/


_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs

Reply via email to