rubidium
e159ada7a2
(svn r5975) -Cleanup: use ORIGINAL_BASE_YEAR & ORIGINAL_MAX_YEAR where the functions really depend on the original date format.
...
-Cleanup: use DAYS_TILL_ORIGINAL_BASE_YEAR where the date variables are in the old date format and conversions are needed.
-Cleanup: replace one (forgotten) instance of uint16 with Date.
18 years ago
rubidium
243872b4fd
(svn r5887) -Cleanup: move date related functions, defines and variables to date.[ch]
...
-Cleanup: fix whitespace related coding style issues in date.[ch]
-Cleanup: make original comments doxygen compatible and remove/change outdated comments
18 years ago
tron
2b27073156
(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular
19 years ago
tron
7d2efe3d84
(svn r5263) Use the flag which denotes if it's a plane or helicopter instead of magical engine numbers
19 years ago
KUDr
8316020ff3
(svn r5228) Suppress MSVC warnings about signed/unsigned comparison
19 years ago
tron
0f5453d95b
(svn r5222) Misc. smaller changes, mostly const, variable scope and replacing some magic numbers by enums
19 years ago
tron
0a72639c2d
(svn r5210) Many small changes which piled up: const, unsigned, variable scope, CSE for readability, DeMorgan, if cascades -> switch, whitespace, parentheses, bracing, misc.
19 years ago
tron
be88e269b9
(svn r5155) - Remove the bridge branch merge (revision r5070)
19 years ago
tron
5fdc69194e
(svn r5129) Accommodate the default AI for the new railtype: It used hard coded numbers instead of enums to calculate prices
19 years ago
tron
32bf3c7c1c
(svn r5128) Remove the global variable _cur_ai_player
19 years ago
tron
6b37bda997
(svn r5127) Use IsRoadVehInDepotStopped() and IsAircraftInHangarStopped()
19 years ago
tron
479317b1eb
(svn r5098) Do some manual CSE and replace a few magic numbers to improve the readability of the trolly AI
19 years ago
tron
a87004e453
(svn r5097) -Fix: The trolly AI used information from the wrong industry when calculating the amount of to be transported goods
19 years ago
tron
9b89d3b8cd
(svn r5096) Avoid unnecessary copying of _cmd_text
19 years ago
tron
a0caafeb50
(svn r5094) Remove _new_{aircraft,roadveh,ship,train,wagon}_id. _new_vehicle_id is enough.
19 years ago
tron
877c7e34a5
(svn r5092) -Fix: There was a gross race condition in the AI code which made it pretty random if the AI could give a new vehicle its orders
19 years ago
tron
7dff47b7f0
(svn r5091) Remove duplicate code (same check twice)
19 years ago
celestar
25a63ec7af
(svn r5070) Merged the bridge branch
...
-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.
19 years ago
tron
58458812a4
(svn r4943) uint tile -> TileIndex tile, byte player -> PlayerID player
19 years ago
tron
965ac2c1e6
(svn r4942) if (x != NULL) free(x); -> free(x);
19 years ago
tron
5783d57ec0
(svn r4941) Replace some ints and magic numbers by proper types and enums
19 years ago
tron
edb5e87e0c
(svn r4918) Move the information about the size of airports from an global array into the struct which describes an airport
19 years ago
celestar
486e207ea0
(svn r4911) -Fix (FS#156): The Ai no longer attempts to build signals under 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)
19 years ago
rubidium
e5bd292dab
(svn r4789) - Codechange: rename RoadType to RoadTileType and ROAD_{NORMAL,CROSSING,DEPOT} to ROAD_TILE_* for consistency
19 years ago
rubidium
9b1bbf72ee
(svn r4788) - Codechange: RAILTYPE_{NORMAL,ELECTRIC,...} and RAIL_TYPE_{NORMAL,SIGNAL,...} have nearly the same name, rename RAIL_TYPE_* to RAIL_TILE_* of extra clarity
19 years ago
Darkvater
8faf1838e6
(svn r4623) - Codechange: s/byte/PlayerID/
19 years ago
tron
8ef2c13c65
(svn r4553) int and magic numbers -> Slope and DiagDirection
19 years ago
celestar
caea7f845c
(svn r4502) -Cleanup: Remove code unused since rev1. (Rubidium)
19 years ago
celestar
22f82bba2e
(svn r4463) -Codechange. Include vehicle.h directly instead of implicitly via station.h in a number of source files
19 years ago
tron
81e6d68f95
(svn r4342) Change the first two parameters of commands - virtual pixel coordinates of the tile to operate on - to a TileIndex
...
Remove DoCommandByTile(), because now it does the same as DoCommand()
19 years ago
tron
0a509a4c48
(svn r4333) Revert back to a direct map access in one case until the exact conditions for this piece of code are investigated. The IsRoad() function is causing me headaches...
19 years ago
belugas
4fdb25e65b
(svn r4318) CodeChange : Remove last direct map access on ai/default/default.c
19 years ago
celestar
446493149c
(svn r4215) -Codechange: Renamed *RoadStation* functions to *RoadStop* and moved them to station_map.h to keep consistency
19 years ago
orudge
0fe27c16af
(svn r4204) - Get trunk compiling again on OS/2
19 years ago
celestar
8310a46351
(svn r4154) -Moved MAX_BRIDGES in bridge.h and made it an enum. This makes two drops ...
19 years ago
celestar
a7d8ad0004
(svn r4150) -Feature: Merged elrails into trunk. Thanks to Tron for lots of code and proofreading, thanks to peter1138 for another lot of code and ideas.
19 years ago
Darkvater
d7b34a1d4c
(svn r4132) - Missed 3 CargoID's
19 years ago
Darkvater
d5909f901a
(svn r4128) - CodeChange: Add proper semantics for CargoID for such variables instead of using the general byte-type.
19 years ago
tron
cda8934a55
(svn r4120) Use the new station functions where appropriate
19 years ago
tron
95adeec127
(svn r4116) -Fix: The AI should send a plane into a hangar if it's not in a hangar _or_ not stopped, not when it's not in a hangar _and_ not stopped
19 years ago
tron
9be713f1ae
(svn r4079) Add GetSation{Index,ByTile}() to get the station index resp. the station from a tile
19 years ago
tron
4b74fa1923
(svn r3981) More work for the rail accessing functions and enums
19 years ago
tron
b8da06ddb1
(svn r3907) Replace many bridge related direct map accesses with calls to shiny new functions and mark some strange constructs with XXX
19 years ago
tron
3d9c76d8b8
(svn r3887) Add a function to get the other bridge end when you're at a bridge ramp
19 years ago
tron
42d1731cc1
(svn r3857) Add and use GetBridgeRampDirection()
...
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]
19 years ago
tron
12d252d9bd
(svn r3831) Add and use GetRailDepotDirection()
19 years ago
tron
78083f0da7
(svn r3830) Move IsTunnelTile() from tile.h to tunnel_map.h and add IsTunnel(), which just checks for a tunnel, but not the tile type as IsTunnelTile() does
19 years ago
tron
929fae7b68
(svn r3816) Use existing accessors
19 years ago
peter1138
9c7f09322e
(svn r3805) - [FS#62] Fix doxygen comments to refer to the correct parameter. (sulai)
19 years ago
tron
fbe939b31f
(svn r3783) Replace further ints and magic numbers by Direction, DiagDirection and friends
19 years ago