Author: anonymissimus
Date: Tue Aug 23 00:35:04 2011
New Revision: 50887

URL: http://svn.gna.org/viewcvs/wesnoth?rev=50887&view=rev
Log:
expanded wesnoth.races to return the wml object a race was constructed from via 
the __cfg field (FR bug #18362)

Modified:
    trunk/changelog
    trunk/src/scripting/lua.cpp

Modified: trunk/changelog
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/changelog?rev=50887&r1=50886&r2=50887&view=diff
==============================================================================
--- trunk/changelog (original)
+++ trunk/changelog Tue Aug 23 00:35:04 2011
@@ -29,6 +29,8 @@
      Indonesian, Latin, Macedonian, Old English, Russian, Vietnamese
  * Lua API:
    * Added: function wesnoth.set_dialog_active (patch #2767)
+   * Expanded wesnoth.races entries to return the wml object a race was 
constructed
+     from via the __cfg field.
  * Multiplayer:
    * Updated maps: Aethermaw, Hornshark Island, Sablestone Delta, Thousand
      Stings Garrison

Modified: trunk/src/scripting/lua.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/scripting/lua.cpp?rev=50887&r1=50886&r2=50887&view=diff
==============================================================================
--- trunk/src/scripting/lua.cpp (original)
+++ trunk/src/scripting/lua.cpp Tue Aug 23 00:35:04 2011
@@ -901,6 +901,7 @@
        return_int_attrib("num_traits", race.num_traits());
        return_tstring_attrib("plural_name", race.plural_name());
        return_bool_attrib("ignore_global_traits", !race.uses_global_traits());
+       return_cfgref_attrib("__cfg", race.get_cfg());
 
        return 0;
 }


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

Reply via email to