Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
the command proc.
When finished, this will allow each command handler to take individually
different parameters, obliviating the need for bit-packing.
|
|
|
|
templated command traits.
This is using a non-intrusive type-traits like templated system, which
allows compile-time validation that the command table and the command
enum match up.
|
|
|
|
|
|
maxed out in vehicles (#9393)
|
|
|
|
|
|
|
|
CheckCompanyHasMoney() was also executed when not using DC_EXEC,
resulting in an error about shortage of money instead of the
estimation.
This mostly is a problem for AI players, as they will have no
way to know how much it would have cost.
|
|
|
|
Before this fix, any failing clone order was silently ignored
and you as user would never know till you checked the order list.
Evil.
|
|
|
|
caused desyncs.
Use DC_AUTOREPLACE for actions that shall be reversibe, in this case:
- Do not rearrange free wagons in test-run.
- Do not discard OrderBackups.
The latter was not triggered by actual auto-replace, since it does not set a 'user'.
|
|
attached.
|
|
real-run.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
possibly be uninitialised
|
|
|
|
|
|
std::vector::[push|emplace]_back()
|
|
|
|
|
|
|
|
|
|
a refit if required.
|
|
|
|
|
|
landing
This adds a new flag that gets stored in the savegame, but it should still be compatible both ways, hence no save version bump.
|
|
|
|
|
|
constructor, to make conversions more explicit.
|
|
whether the vehicle is in a depot or station, and do not ask whether the vehicle currently allows station-refitting. Also hide the refit cost for orders, it is not predictable.
|
|
the return is not NULL)
|
|
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
|
|
when they are not supposed to, and truncate cargo appropiately if they are allowed to.
|
|
to a new function, GetDepotVehicleType (cirdan, LordAro)
|
|
|
|
during (un)loading.
|
|
|
|
subtype, also when refitting multiple vehicles.
|