Single ampersands in alert display cause alert MessageBox to produce weird results.
Numbered Steps to Reproduce Problem:
Code Snippet (if applicable) to Reproduce Problem:
mob
Login()
..()
alert(src,"Hello & Welcome!","Welcome!")
Produces: "Hello Welcome!"
mob
Login()
..()
alert(src,{"Hello & Welcome!"},"Welcome!")
Produces: Hello _ Welcome!
Expected Results:
Hello & Welcome
Actual Results:
See above;
Does the problem occur:
Every time? Or how often? Every time
In other games? Untested, presumably so.
In other user accounts? Unrelated
On other computers? Unable to test.
When does the problem NOT occur?
Double Ampersands will return the expected result.
mob
Login()
..()
alert(src,"Hello && Welcome!","Welcome!")
produces: "Hello & Welcome!"
Workarounds:
Use double ampersands.
I'm assuming this has something to do with window's default functionality for ampersands and buttons, or menus. as an {"O&K"} button will allow you to hit K to confirm dialog.
This would indeed be caused by Windows' hehavior for static text. It should be a simple fix.