The ON_SIGHTING macro is possible to cause to disallow undo
Moderator: Forum Moderators
Forum rules
Before reporting issues in this section, you must read the following topic:
Before reporting issues in this section, you must read the following topic:
The ON_SIGHTING macro is possible to cause to disallow undo
Well, it is not a huge problem, so I post it here (instead of reporting it to Gna-project).
I think that the location of the [else] + [allow_undo] tag in the ON_SIGHTING macro is not really correct. It should be inside of the [if] tag with the [have_unit] tag.
After I moved it, the scenario allows me undo as well. Here is how I changed:
I think that the location of the [else] + [allow_undo] tag in the ON_SIGHTING macro is not really correct. It should be inside of the [if] tag with the [have_unit] tag.
After I moved it, the scenario allows me undo as well. Here is how I changed:
Spoiler:
Fate of a Princess/feedback thread: "What is in own heart that is the most important, not who you are."
Drake Campaign: Brave Wings/feedback thread, Naga Campaign: Return of the Monster, Saurian Campaign: Across the Ocean
Northern Forces - now on 1.12 server
Drake Campaign: Brave Wings/feedback thread, Naga Campaign: Return of the Monster, Saurian Campaign: Across the Ocean
Northern Forces - now on 1.12 server
-
- Inactive Developer
- Posts: 2461
- Joined: August 15th, 2008, 8:46 pm
- Location: Germany
Re: The ON_SIGHTING macro is possible to cause to disallow u
Should already be fixed (from 1.10.1 onwards).
projects (BfW 1.12):
A Simple Campaign: campaign draft for wml starters • Plan Your Advancements: mp mod
The Earth's Gut: sp campaign • Settlers of Wesnoth: mp scenario • Wesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
A Simple Campaign: campaign draft for wml starters • Plan Your Advancements: mp mod
The Earth's Gut: sp campaign • Settlers of Wesnoth: mp scenario • Wesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
Re: The ON_SIGHTING macro is possible to cause to disallow u
Did you try undoing a move after the ON_SIGHTING triggers your event? Since you moved the [else] instead of copying it, you have just shifted the problem from before the triggering to after. (The solution in 1.10.1 allows undoing as an else clause to both if's.) To make your custom macro work as intended, you should restore the [else] tag you removed.SkyOne wrote:After I moved it, the scenario allows me undo as well.
Re: The ON_SIGHTING macro is possible to cause to disallow u
Thank you.Anonymissimus wrote:Should already be fixed (from 1.10.1 onwards).
Uh-oh, it seems you are right.JaMiT wrote:Did you try undoing a move after the ON_SIGHTING triggers your event? Since you moved the [else] instead of copying it, you have just shifted the problem from before the triggering to after. (The solution in 1.10.1 allows undoing as an else clause to both if's.) To make your custom macro work as intended, you should restore the [else] tag you removed.SkyOne wrote:After I moved it, the scenario allows me undo as well.
Thanks for telling it. Now, there is a reason to update the new editions. That is an advantage of UMC.
Fate of a Princess/feedback thread: "What is in own heart that is the most important, not who you are."
Drake Campaign: Brave Wings/feedback thread, Naga Campaign: Return of the Monster, Saurian Campaign: Across the Ocean
Northern Forces - now on 1.12 server
Drake Campaign: Brave Wings/feedback thread, Naga Campaign: Return of the Monster, Saurian Campaign: Across the Ocean
Northern Forces - now on 1.12 server