URL:
<http://gna.org/bugs/?17854>
Summary: have_unit returns true for off-map locations if a
unit is on a map border
Project: Battle for Wesnoth
Submitted by: alarantalara
Submitted on: Sun 06 Mar 2011 11:12:27 AM EST
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.9.4
Operating System: OS X 10.6
_______________________________________________________
Details:
The following code displays the message "Unit found off-map", implying that a
unit is in the location -2,10. If no unit is at 1,10, then this error does not
occur.
[event]
name=start
{VARIABLE x -2}
{VARIABLE y 10}
[unit]
type=Skeleton
side=1
x=1
y=10
id=test
[/unit]
[if]
[have_unit]
x,y=$x,$y
[/have_unit]
[then]
[message]
message=_"Unit found off-map"
[/message]
[/then]
[else]
[message]
message=_"No unit found"
[/message]
[/else]
[/if]
[/event]
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?17854>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs