Changeset - r23798:3923e8261bcb
[Not reviewed]
master
0 1 0
Juriy Petrochenkov - 5 years ago 2019-08-09 10:13:34
jupetr@gmail.com
Fix: RemoveAirport function now returns with 'Aircraft in the way' error message as it should be.
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -2389,7 +2389,9 @@ static CommandCost RemoveAirport(TileInd
 
	const Aircraft *a;
 
	FOR_ALL_AIRCRAFT(a) {
 
		if (!a->IsNormalAircraft()) continue;
 
		if (a->targetairport == st->index && a->state != FLYING) return CMD_ERROR;
 
		if (a->targetairport == st->index && a->state != FLYING) {
 
			return_cmd_error(STR_ERROR_AIRCRAFT_IN_THE_WAY);
 
		}
 
	}
 

	
 
	if (flags & DC_EXEC) {
0 comments (0 inline, 0 general)