Ah, ok, thank you.mikeel wrote:hi
looking to other patches, i changed your code making it buildOTTD-friendly.
It's a simple change, when you declare the file you want patch you must code in this way:
I've changed the lines and now i've compiled it.Code: Select all
Index: src/aircraft_cmd.cpp =================================================================== --- src/aircraft_cmd.cpp (revision 10765) +++ src/aircraft_cmd.cpp (working copy)
Yes, that's a bug, but it isn't the patch, it's already in the code. I think the culprit is this piece of code (file src/station_cmd.cpp, function RemoveAirport):I found this patch very intresting, but i think i found a bug: when there are a lot of aircraft in queue, it's quite impossible to bulldoze the airport, becouse it says "aircraft in the way" also if the airpot is empty. maybe becouse everytime there's an aircraft trying to land?
Code: Select all
BEGIN_TILE_LOOP(tile_cur, w, h, tile) {
if (!EnsureNoVehicle(tile_cur)) return CMD_ERROR;
if (flags & DC_EXEC) {
DeleteAnimatedTile(tile_cur);
DoClearSquare(tile_cur);
}
} END_TILE_LOOP(tile_cur, w, h, tile)
Closing an airport just makes this happen more often, as there can be lots of aircraft overflying the airport (as in your case).
Perhaps EnsureNoVehicle() should be changed to EnsureNoVehicleOnGround()? Any devs out there?