Home
last modified time | relevance | path

Searched refs:DC_AUTOREPLACE (Results 1 – 4 of 4) sorted by relevance

/dports/games/openttd/openttd-12.1/src/
H A Dautoreplace_cmd.cpp343 …cost = DoCommand(old_veh->tile, e | (CT_INVALID << 24), 0, DC_EXEC | DC_AUTOREPLACE, GetCmdBuildVe… in BuildReplacementVehicle()
373 …return DoCommand(0, v->index, evaluate_callback ? 1 : 0, DC_EXEC | DC_AUTOREPLACE, CMD_START_STOP_… in CmdStartStopVehicle()
527 …if (second != nullptr) cost.AddCost(CmdMoveVehicle(second, nullptr, DC_EXEC | DC_AUTOREPLACE, true… in ReplaceChain()
546 CmdMoveVehicle(old_vehs[i], nullptr, DC_EXEC | DC_AUTOREPLACE, false); in ReplaceChain()
575 CmdMoveVehicle(append, nullptr, DC_EXEC | DC_AUTOREPLACE, false); in ReplaceChain()
632 cost.AddCost(DoCommand(0, w->index, 0, flags | DC_AUTOREPLACE, GetCmdSellVeh(w))); in ReplaceChain()
648 if (second != nullptr) CmdMoveVehicle(second, nullptr, DC_EXEC | DC_AUTOREPLACE, true); in ReplaceChain()
653 …_unused]] CommandCost ret = CmdMoveVehicle(old_vehs[i], old_head, DC_EXEC | DC_AUTOREPLACE, false); in ReplaceChain()
H A Dvehicle_cmd.cpp127 …UnitID unit_num = (flags & DC_QUERY_COST || flags & DC_AUTOREPLACE || (type == VEH_TRAIN && e->u.r… in CmdBuildVehicle()
133 if (refitting && !(flags & DC_EXEC)) subflags |= DC_EXEC | DC_AUTOREPLACE; in CmdBuildVehicle()
178 if (!(subflags & DC_AUTOREPLACE)) OrderBackup::Restore(v, p2); in CmdBuildVehicle()
562 if ((flags & DC_AUTOREPLACE) == 0) SetBit(p2, 0); in CmdStartStopVehicle()
619 …if (v->IsStoppedInDepot() && (flags & DC_AUTOREPLACE) == 0) DeleteVehicleNews(p1, STR_NEWS_TRAIN_I… in CmdStartStopVehicle()
876 if ((flags & DC_EXEC) && !v->IsPrimaryVehicle()) build_flags |= DC_AUTOREPLACE; in CmdCloneVehicle()
1084 …if (!(flags & DC_AUTOREPLACE) && !IsUniqueVehicleName(text)) return_cmd_error(STR_ERROR_NAME_MUST_… in CmdRenameVehicle()
H A Dcommand_type.h355DC_AUTOREPLACE = 0x080, ///< autoreplace/autorenew is in progress, this shall disable ve… enumerator
H A Dtrain_cmd.cpp790 …if (!HasBit(data, 0) && !(flags & DC_AUTOREPLACE)) { // check if the cars should be added to the n… in CmdBuildRailVehicle()
1189 dst = (src->IsEngine() || (flags & DC_AUTOREPLACE)) ? nullptr : FindGoodVehiclePos(src); in CmdMoveRailVehicle()
1259 if ((flags & DC_AUTOREPLACE) == 0) { in CmdMoveRailVehicle()
1388 CommandCost ret = ValidateTrains(nullptr, nullptr, first, new_head, (flags & DC_AUTOREPLACE) == 0); in CmdSellRailWagon()