src/ai/trolly/trolly.cpp
changeset 10079 99aba130db3c
parent 9339 daaa2adbaf99
child 10081 e46b9eb2f9c1
equal deleted inserted replaced
10078:98d24f8e8628 10079:99aba130db3c
  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));