equal
deleted
inserted
replaced
774 if (!(flags & DC_QUERY_COST)) { |
774 if (!(flags & DC_QUERY_COST)) { |
775 Vehicle *vl[12]; // Allow for upto 10 artic parts and dual-heads |
775 Vehicle *vl[12]; // Allow for upto 10 artic parts and dual-heads |
776 |
776 |
777 memset(&vl, 0, sizeof(vl)); |
777 memset(&vl, 0, sizeof(vl)); |
778 |
778 |
779 if (!AllocateVehicles(vl, num_vehicles) || IsOrderPoolFull()) |
779 if (!AllocateVehicles(vl, num_vehicles)) |
780 return_cmd_error(STR_00E1_TOO_MANY_VEHICLES_IN_GAME); |
780 return_cmd_error(STR_00E1_TOO_MANY_VEHICLES_IN_GAME); |
781 |
781 |
782 v = vl[0]; |
782 v = vl[0]; |
783 |
783 |
784 unit_num = HASBIT(p2, 0) ? 0 : GetFreeUnitNumber(VEH_Train); |
784 unit_num = HASBIT(p2, 0) ? 0 : GetFreeUnitNumber(VEH_Train); |