(svn r12296) -Fix [FS#1549]: restore timetable from backupped orders and add group ID to the backup

This commit is contained in:
glx
2008-02-27 21:46:57 +00:00
parent 6aea2454c8
commit 459fd42e1d
4 changed files with 25 additions and 3 deletions

View File

@@ -134,6 +134,9 @@ CommandCost CmdDeleteGroup(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (v->group_id == g->index && v->type == g->vehicle_type) v->group_id = DEFAULT_GROUP;
}
/* Update backupped orders if needed */
if (_backup_orders_data.group == g->index) _backup_orders_data.group = DEFAULT_GROUP;
/* If we set an autoreplace for the group we delete, remove it. */
if (_current_player < MAX_PLAYERS) {
Player *p;