Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make [*time_area] Lua API functions take a single time area id
This means the Lua code implementing the WML tags are now solely responsible for parsing the comma-separated id list. It just so happens that I added code for that without realizing that I was duplicating existing functionality on the C++ side. As a result: * wesnoth.add_time_area and wesnoth.remove_time_area can operate on time area ids that contain commas (if someone feels this is needed for some weird reason) * [time_area] no longer warns about adding time areas with commas in their ids (actually adding the first id of the list instead) * [time_area] remove=yes and [remove_time_area] still handle comma-separated lists of ids, in the Lua side instead of C++. This makes the Lua API for this consistent with [event]/[remove_event]. Since the Lua API functions in question are undocumented at this moment, it's unlikely this impacts anyone, really.
- Loading branch information