Age | Commit message (Collapse) | Author |
|
|
|
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.
|
|
Change the signature of GetNewVehiclePos():
-void GetNewVehiclePos(const Vehicle *v, GetNewVehiclePosResult *gp);
+GetNewVehiclePosResult GetNewVehiclePos(const Vehicle *v);
|
|
Replace SetSpeedLimitOnBridge() by something simpler
|
|
directions (mart3p).
|
|
work of mart3p.
|
|
removal of some (by now) redundant comments.
|
|
refactor RoadStop::AllocateBay to remove a loop condition. Suggestions by Tron.
|
|
we are shifting the bitmask.
|
|
|
|
|
|
road vehicles with enums. Original patch by mart3p.
|
|
proper types instead of byte, uint etc., give variables more descriptive names and add some comments.
|
|
|
|
functions.
|
|
|
|
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
|
|
road vehicle gets its speed reset to 0 when entering a tunnel, which causes a traffic jam outside of the tunnel.
|
|
Building a vehicle does not involve allocating orders, so do not check whether orders could be allocated
|
|
GetRoadStopByTile() cannot return NULL. Remove therefore unnecessary check
|
|
station is very spread out
|
|
Turn GetPrimaryRoadStop() into a method of struct Station
|
|
Do not try to invalidate a window which just got deleted. It is pointless
|
|
Do not call ClearSlot() just before calling DeleteVehicle(), which does it too
|
|
and changed a one-member enum into a static const. Simplify their naming and add some doxygen-comments to RoadStop
|
|
values.
This lets us increase the sprite width from 14 to up to 29 bits,
effectively nulling the old sprite limit. Table changes in next commit.
|
|
OT_LOADING and OT_LEAVESTATION) replaced by v->BeginLoading() and v->LeaveStation() calls. This should allow easy hooking of those state transitions in order to maintain vehicle loading queue.
|
|
stillunknown and pv2b.
|
|
renamed to .cpp)
|