(svn r12345) -Fix [FS#1828](r12296): don't try to restore backupped timetable when timetabling is disabled

This commit is contained in:
glx 2008-03-05 22:05:22 +00:00
parent 442efcffb0
commit 1976d2d37c
1 changed files with 2 additions and 2 deletions

View File

@ -997,8 +997,8 @@ void RestoreVehicleOrders(const Vehicle *v, const BackuppedOrders *bak)
break;
}
/* Copy timetable */
if (!DoCommandP(0, v->index | (i << 16) | (1 << 25),
/* Copy timetable if enabled */
if (_patches.timetabling && !DoCommandP(0, v->index | (i << 16) | (1 << 25),
bak->order[i].wait_time << 16 | bak->order[i].travel_time, NULL,
CMD_CHANGE_TIMETABLE | CMD_NO_TEST_IF_IN_NETWORK)) {
break;