expanded wesnoth.races to return the WML object...

...a race was constructed from via the __cfg field (FR bug #18362)
This commit is contained in:
Anonymissimus 2011-08-22 22:35:04 +00:00
parent 2b27d38f8b
commit 5f4723b6d9
2 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,8 @@ Version 1.9.8+svn:
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

View File

@ -901,6 +901,7 @@ static int impl_race_get(lua_State* L)
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;
}