URL:
<http://gna.org/bugs/?13492>
Summary: + and - work differently. But not in the normal
way.
Project: Battle for Wesnoth
Submitted by: ddr
Submitted on: Wednesday 06/05/09 at 00:39
Category: Bug
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: WML
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.6
Operating System: -
_______________________________________________________
Details:
1) Addition:
When NUM_IN=10...
value=$({NUM_IN}+289) =10289
2) Subtraction:
When NUM_IN=10289...
value=$({NUM_IN}-289) =10000
3) Solution:
When NUM_IN=10...
value=$({NUM_IN}-(0-289)) = 299
This may be related to https://gna.org/bugs/index.php?13445. Like the error
in the link, this workaround was also proposed by Crab.
The issue is not apparent when using only integers, not variables.
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?13492>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs