widelands-dev team mailing list archive
-
widelands-dev team
-
Mailing list archive
-
Message #02686
Fwd: path & findpath question
Well, no response so far :)
It seems that findpath really does not consider immovables (roads + flags)
- for it the field is passable and that is all that is checked.
Can we consider adding another check and another argument to function
findpath() like "no immovables", and fields with any immovables would be
ingored?
Regards
---------- Forwarded message ----------
From: Tibor Bamhor <tiborb95@xxxxxxxxx>
Date: 2014-09-17 15:31 GMT+02:00
Subject: path & findpath question
To: widelands-dev@xxxxxxxxxxxxxxxxxxx
Hi,
When testing road building in AI I found that findpath sometimes returns
nonsensical paths.
It claims that it found paths between two points (a have them printed out),
but when I look at the points on map, they are not connectable without
crossing/using another road. Subsequently AI runs send_player_build_road()
and it fails. Is it feature or a bug? Or am I overlooking something?
Tibor
Follow ups
References