Make UNDO_REMINDER fire only once

This commit is contained in:
Earth-Cake 2019-12-14 00:06:44 +01:00 committed by GitHub
parent b479d6f7ac
commit df2e717b24
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,12 +52,23 @@
#enddef
#define UNDO_REMINDER
[message]
speaker=narrator
caption= _"Undo"
image=wesnoth-icon.png
message= _"Dont forget, you can press <b>u</b> to undo most things if you make a mistake."
[/message]
[if]
[variable]
name=undo_option
equals=yes
[/variable]
[then]
[message]
speaker=narrator
caption= _"Undo"
image=wesnoth-icon.png
message= _"Dont forget, you can press <b>u</b> to undo most things if you make a mistake."
[/message]
{CLEAR_VARIABLE undo_option}
[/then]
[else] [/else]
[/if]
[allow_undo][/allow_undo]
#enddef