(svn r300) Fix: order checker now correctly detects station with invalid facilities

This commit is contained in:
dominik 2004-09-19 21:44:01 +00:00
parent 72bd3bd170
commit e0d671ab5f
1 changed files with 1 additions and 2 deletions

View File

@ -392,6 +392,7 @@ int CheckOrders(Vehicle *v)
n_st++;
st = DEREF_STATION(order >> 8);
required_tile = GetStationTileForVehicle(v,st);
if (!required_tile) problem_type = 3;
}
old_order = order; //store the old order
}
@ -404,8 +405,6 @@ int CheckOrders(Vehicle *v)
if (n_st < 2) problem_type = 0;
if (!required_tile) problem_type = 3;
SET_DPARAM16(0, v->unitnumber);
message = (STR_TRAIN_HAS_TOO_FEW_ORDERS) + (((v->type) - VEH_Train) << 2) + problem_type;