mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-28 11:13:51 +00:00

wmllint tries to detect errors such as a scenario referencing the unit by id before it is introduced by via [recall], [unit] etc. The definition of "before" wmllint wants to check is chronological: "does an event that introduces a unit happen before an event that references it?", but the current implementation cheats by simply checking if the definition textually precedes the reference. 22_Return_to_Wesnoth contains two prestart events. The first prestart event defines an event that triggers on turn 4. The second prestart event introduces Kalenz, Delfador and Li'sar. I could merge the prestart events and reorder the code to avoid the wmllint error, but since it does not actually make the code easier to read I chose a less disruptive option of simply adding "wmllint: recognize".