FS#1496 - Helicopter(zeppelin) flying in circles at top corner

Attached to Project: OpenTTD
Opened by Yorick (yorick) - Thursday, 29 November 2007, 15:34 GMT
Last edited by KUDr (KUDr) - Thursday, 29 November 2007, 15:40 GMT
Type Bug
Category Vehicles
Status Closed
Assigned To No-one
Operating System All
Severity Medium
Priority Normal
Reported Version 0.6.0-beta1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


I have ordered a helicopter(av8 zeppelin) to go to an oil rig and then back to main station.
When the oil rig disappeared, the helicopter started to circle at the top corner.
Nothing can stop it from circling, tried:
1.sending it to depot
2.change its orders
3.ordering it to go to airport and removing that airport, but it just tries to go to depot that way.
This task depends upon

Closed by  Jean-Francois Claeys (Belugas)
Saturday, 01 December 2007, 14:04 GMT
Reason for closing:  Fixed
Additional comments about closing:  in r11546
Comment by Benedikt Br├╝ggemeier (skidd13) - Thursday, 29 November 2007, 22:58 GMT
The behavior is easy to reproduce.

Savegame is prepared. Just remove the oilrig when the helicopter is attemting to land on it.
Comment by Jean-Francois Claeys (Belugas) - Saturday, 01 December 2007, 03:38 GMT
I think i've fixed it, but i'm far from being sure it is the right solution.
Here's the patch. It is a copy paste from another part of the same function, near the end.
It was just a matter of finding the proper place to put it.