equal
deleted
inserted
replaced
1558 |
1558 |
1559 if (!EnsureNoVehicle(tile)) |
1559 if (!EnsureNoVehicle(tile)) |
1560 return CMD_ERROR; |
1560 return CMD_ERROR; |
1561 |
1561 |
1562 if (flags & DC_EXEC) { |
1562 if (flags & DC_EXEC) { |
|
1563 int i; |
1563 DoClearSquare(tile); |
1564 DoClearSquare(tile); |
|
1565 |
|
1566 /* Clear all vehicles destined for this station */ |
|
1567 for (i = 0; i != NUM_SLOTS; i++) { |
|
1568 if (cur_stop->slot[i] != INVALID_SLOT) { |
|
1569 Vehicle *v = GetVehicle(cur_stop->slot[i]); |
|
1570 ClearSlot(v, v->u.road.slot); |
|
1571 } |
|
1572 } |
1564 |
1573 |
1565 cur_stop->used = false; |
1574 cur_stop->used = false; |
1566 if (cur_stop->prev != NULL) //alter previous stop |
1575 if (cur_stop->prev != NULL) //alter previous stop |
1567 cur_stop->prev->next = cur_stop->next; |
1576 cur_stop->prev->next = cur_stop->next; |
1568 |
1577 |