![]() When a unit data passed to `to_map` either lacks a side or has side zero, implementation automatically sets it to 1, thus the existing code worked fine. However: 1. The lack of a `side` could trigger a warning in EmmyLua. It currently doesn't trigger that, but would with Celtic Minstrel's planned improvements in Wesnoth's lint hints. 2. The tutorial should be good example code, and the special-case in the C++ code that made this work is a case of "assume it's a SP situation, and choose the result that benefits side 1". |
||
---|---|---|
.. | ||
character_selection.lua | ||
hint_message.lua |