Age | Commit message (Collapse) | Author |
|
|
|
of magical engine numbers
|
|
|
|
replacing some magic numbers by enums
|
|
scope, CSE for readability, DeMorgan, if cascades -> switch, whitespace, parentheses, bracing, misc.
|
|
|
|
coded numbers instead of enums to calculate prices
|
|
|
|
|
|
the readability of the trolly AI
|
|
when calculating the amount of to be transported goods
|
|
|
|
_new_vehicle_id is enough.
|
|
it pretty random if the AI could give a new vehicle its orders
|
|
|
|
-Feature: Bridges can now be placed above:
Any railway track combination (excluding depots and waypoints)
Any road combination (excluding depots)
Clear tiles (duh), including fields
Tunnel entrances
Bridge heads
Thanks to Tron for idea and implementation, KUDr for the yapf synchronization and many others for hours of testing
There are still a number of visual problems remaining, especially when electric railways are on or under the bridge.
DO NOT REPORT THOSE BUGS FOR THE TIME BEING please.
|
|
|
|
|
|
|
|
array into the struct which describes an airport
|
|
bridges.
NOTE 1: Remove/revert this for the bridge branch
NOTE 2: Bug displays fundamental flaw in command system:
If two commands, where command 2 depends on command 1, have
to be checked, all those checks need to be manual.
(like in this example, first build rail then build signal.
BuildSignal cannot be checked without DC_EXEC as the rail
isn't there yet)
|
|
ROAD_{NORMAL,CROSSING,DEPOT} to ROAD_TILE_* for consistency
|
|
RAIL_TYPE_{NORMAL,SIGNAL,...} have nearly the same name, rename RAIL_TYPE_* to RAIL_TILE_* of extra clarity
|
|
|
|
|
|
|
|
via station.h in a number of source files
|
|
coordinates of the tile to operate on - to a TileIndex
Remove DoCommandByTile(), because now it does the same as DoCommand()
|
|
conditions for this piece of code are investigated. The IsRoad() function is causing me headaches...
|
|
|
|
moved them to station_map.h to keep consistency
|
|
|
|
two drops ...
|
|
code and proofreading, thanks to peter1138 for another lot of code and ideas.
|
|
|
|
variables instead of using the general byte-type.
|
|
|
|
hangar _or_ not stopped, not when it's not in a hangar _and_ not stopped
|
|
station from a tile
|
|
|
|
shiny new functions and mark some strange constructs with XXX
|
|
bridge ramp
|
|
Note: This slightly changes the behavior of GetAnyRoadBits() to only return a road piece for the start of the bridge ramp instead of a full ROAD_[XY]
|
|
|
|
IsTunnel(), which just checks for a tunnel, but not the tile type as IsTunnelTile() does
|
|
|
|
parameter. (sulai)
|
|
DiagDirection and friends
|
|
and friends
|
|
|