(svn r13950) -Add [YAPP]: Trains can now also be in a 'stuck' state when waiting on a path reservation. (michi_cc)

This commit is contained in:
rubidium
2008-08-02 22:53:21 +00:00
parent 0dfaa88c1e
commit e9c33fb288
5 changed files with 38 additions and 7 deletions

View File

@@ -1895,6 +1895,8 @@ struct VehicleViewWindow : Window {
} else { // no train
str = STR_8861_STOPPED;
}
} else if (v->type == VEH_TRAIN && HasBit(v->u.rail.flags, VRF_TRAIN_STUCK)) {
str = STR_TRAIN_STUCK;
} else { // vehicle is in a "normal" state, show current order
switch (v->current_order.GetType()) {
case OT_GOTO_STATION: {