URL:
<http://gna.org/bugs/?19201>
Summary: Overzealous reinterpretation of certain WML strings
as numeric types
Project: Battle for Wesnoth
Submitted by: shadowmaster
Submitted on: Sun 18 Dec 2011 04:48:36 PM CLST
Category: Bug
Severity: 1 - Wish
Priority: 1 - Later
Item Group: None of the others
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: r42807 onwards
Operating System: Any
_______________________________________________________
Details:
As previously noticed in bug #16571, the WML config class gained (in r42807)
the ability to reinterpret WML attributes as smaller data types, resulting in
performance and memory usage optimizations.
This optimization has the potential to interfere with WML attributes that
look like number (or which the underlying implementation may interpret as
such).
As an example, you can add the following code snippet to any scenario and
compare with the in-game results:
[event]
name=start
[message]
speaker=narrator
message="000000"
[option]
message="01234567890123456789"
[/option]
[option]
message="99999999999999999999"
[/option]
[option]
message="-"
[/option]
[/message]
[/event]
This is unlikely to be a problem except for very special cases (one of which
is bug #16571, covered by r52334), which is why I'm assigning the lowest
priority to this bug, but it might be worth it to remind coders that this
issue still exists and may interfere with future C++ or Lua code.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?19201>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs