equal
deleted
inserted
replaced
1315 /* Copy important data from the front engine */ |
1315 /* Copy important data from the front engine */ |
1316 new_f->unitnumber = first->unitnumber; |
1316 new_f->unitnumber = first->unitnumber; |
1317 new_f->current_order = first->current_order; |
1317 new_f->current_order = first->current_order; |
1318 new_f->cur_order_index = first->cur_order_index; |
1318 new_f->cur_order_index = first->cur_order_index; |
1319 new_f->orders = first->orders; |
1319 new_f->orders = first->orders; |
|
1320 if (first->prev_shared != NULL) { |
|
1321 first->prev_shared->next_shared = new_f; |
|
1322 new_f->prev_shared = first->prev_shared; |
|
1323 } |
|
1324 |
|
1325 if (first->next_shared != NULL) { |
|
1326 first->next_shared->prev_shared = new_f; |
|
1327 new_f->next_shared = first->next_shared; |
|
1328 } |
|
1329 |
1320 new_f->num_orders = first->num_orders; |
1330 new_f->num_orders = first->num_orders; |
1321 first->orders = NULL; // XXX - to not to delete the orders */ |
1331 first->orders = NULL; // XXX - to not to delete the orders */ |
1322 if (IsLocalPlayer()) ShowTrainViewWindow(new_f); |
1332 if (IsLocalPlayer()) ShowTrainViewWindow(new_f); |
1323 } |
1333 } |
1324 } |
1334 } |