(svn r14850) -Fix [FS#2503]: Reversing a stuck train that is then not stuck anymore did not always reset the waiting timer.

This commit is contained in:
michi_cc 2009-01-05 20:28:56 +00:00
parent 809d9bc498
commit f9f9bb9c3c
1 changed files with 4 additions and 1 deletions

View File

@ -3136,7 +3136,10 @@ bool TryPathReserve(Vehicle *v, bool mark_as_stuck, bool first_tile_okay)
return false;
}
if (HasBit(v->u.rail.flags, VRF_TRAIN_STUCK)) InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, VVW_WIDGET_START_STOP_VEH);
if (HasBit(v->u.rail.flags, VRF_TRAIN_STUCK)) {
v->load_unload_time_rem = 0;
InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, VVW_WIDGET_START_STOP_VEH);
}
ClrBit(v->u.rail.flags, VRF_TRAIN_STUCK);
return true;
}