equal
deleted
inserted
replaced
1182 } |
1182 } |
1183 |
1183 |
1184 // Very handy for AI, goto depot.. but yeah, it needs to be activated ;) |
1184 // Very handy for AI, goto depot.. but yeah, it needs to be activated ;) |
1185 if (_patches.gotodepot) { |
1185 if (_patches.gotodepot) { |
1186 idx = 0; |
1186 idx = 0; |
1187 order.MakeGoToDepot(GetDepotByTile(_players_ainew[p->index].depot_tile)->index, true); |
1187 order.MakeGoToDepot(GetDepotByTile(_players_ainew[p->index].depot_tile)->index, ODTFB_PART_OF_ORDERS); |
1188 AI_DoCommand(0, _players_ainew[p->index].veh_id + (idx << 16), order.Pack(), DC_EXEC, CMD_INSERT_ORDER); |
1188 AI_DoCommand(0, _players_ainew[p->index].veh_id + (idx << 16), order.Pack(), DC_EXEC, CMD_INSERT_ORDER); |
1189 } |
1189 } |
1190 |
1190 |
1191 idx = 0; |
1191 idx = 0; |
1192 order.MakeGoToStation(GetStationIndex(_players_ainew[p->index].to_tile)); |
1192 order.MakeGoToStation(GetStationIndex(_players_ainew[p->index].to_tile)); |