Age | Commit message (Collapse) | Author |
|
for trains (callback 36, property 16)
|
|
loading/unloading, but when arriving at the station.
|
|
|
|
was left.
|
|
|
|
nicer/better maintainable code, i.e. virtual methods instead of switches.
|
|
|
|
hopefully for good this time.
|
|
is sent to a depot.
|
|
|
|
of various properties which were previously static. Vehicle max speed and train power/te/running costs are adjustable.
|
|
corrections...
|
|
and into landscape.h, and add a few where they didn't exist.
|
|
|
|
strings so it can be
translated properly and remove "buildable", since it isn't actually a word.
|
|
landscape types.
|
|
|
|
trains got removed in the depot.
|
|
|
|
incorrectly. Forgot to set the best bird distance to zero in case we found the destination to indicate success. (de_zeurkous)
|
|
check if they are in use
|
|
coding style (and rest of the code).
|
|
|
|
|
|
0xFF bit 10,
which is set when a vehicle was built during the exclusive testing phase.
|
|
be used for more than just the gradual loading status.
|
|
tiles, unification of ground type between normal rail tiles and depots/waypoints and removing the need for RailTileSubType.
|
|
Get rid of DECLARE_ENUM_AS_BIT_INDEX(Track, TrackBits)
|
|
Remove the unused second parameter from GetTileRailType()
|
|
Change the signature of GetNewVehiclePos():
-void GetNewVehiclePos(const Vehicle *v, GetNewVehiclePosResult *gp);
+GetNewVehiclePosResult GetNewVehiclePos(const Vehicle *v);
|
|
Most (i.e. 13 of 15) callers of GetNewVehiclePos() do not care for the return and the others can figure it out by inspecting the information returned in struct GetNewVehiclePosResult.
Therefore remove the return value.
|
|
Slightly simplify the control flow of TrainController()
|
|
variable scope, const, misc.
|
|
Replace SetSpeedLimitOnBridge() by something simpler
|
|
-Fix: Do a better job when checking the parameters of CmdMoveRailVehicle()
NOTE: 0.5 candidate
|
|
checking the cargo type to determine if the cargo type is freight cargo type cargo type.
|
|
struct array (with accessor) and implement new initialization method using cargo labels.
|
|
GetPlatformLength because that is what it really does. Overload it because there is already a GetPlatformLength (one gives the length of the whole platform, the other gives the remaining length in a given direction). Turned both functions into methods of Station. While messing around with it, fix a problem where loading times for overhanging trains are miscomputed.
|
|
coding style changes to the ShipController and TrainController.
|
|
|
|
|
|
|
|
autoreplace window
-The user will notice the following changes:
All vehicle types behaves in the same way
Adding/removing an engine (new design and so on) can no longer result in the window selecting a new engine
All valid replacements will be displayed since it looks at refitting options as well (this solves the missing ships with the newships GRF)
Since you can't replace an engine into itself, the engine selected in the left list will no longer appear in the right list
-The code changes:
Instead of looping all engines all the time, each list generates a list like the build windows
This ensures consistent list generation since only one function can loop all engines
Unified code for all vehicle types
It now use the lists to call the drawing code in the build vehicle window
Works on selected EngineIDs instead of selected index in the list
|
|
Building a vehicle does not involve allocating orders, so do not check whether orders could be allocated
|
|
flags of RailVehInfo, as well as changing the code to reflect the fact that it was not a flag but rather a one value only variable. Doing so, some evaluations have been simplified.
-Codechange: Add and use RAILVEH_SINGLEHEAD when railveh_type is set to 0, which was implicit before.
-Cleanup: Remove some extraneous parenthesis.
|
|
(most?) compilers...
|
|
Replace the rather obscure control flow for handling aircraft/ship/train orders by something remotly comprehensible (see r3584)
|
|
-Codechange: CheckCompatibleRail() is only called for tiles which are known to contain a piece of rail. Simplify the function accordingly by eliminating unnecessary checks.
-Fix (?): Also fix an inconsistency in deciding what a compatible rail type is between level crossings and other rail tiles. It is unknown if this caused any problems.
|
|
-Regression (r8314): I only did half the necessary changes to move railtype from Engine to RailVehicleInfo. Now do the rest.
|
|
Simplify TrainPowerChanged() somewhat by eleminating code duplication
|