summaryrefslogtreecommitdiff
path: root/src/ai
AgeCommit message (Collapse)Author
2008-09-15(svn r14335) -Codechange: Remove some magic numbers.frosch
2008-08-25(svn r14169) -Codechange: rename location_of_house for location_of_HQ, which ↵belugas
is more exact and less subject to interpretation
2008-08-20(svn r14105) -Fix: Some typos that are more grammatical errors, as it seems.belugas
Provided by ln I've added a little fix on currency.cpp too, why not :)
2008-08-15(svn r14076) -Codechange: Merge the four start/stop commands into a single ↵frosch
CMD_START_STOP_VEHICLE.
2008-08-13(svn r14062) -Fix [FS#2226]: division by 0 in newai.rubidium
2008-08-04(svn r13999) -Fix [FS#2190]: crash when the AI tries to find the depot of an ↵rubidium
airport that doesn't have a depot.
2008-07-23(svn r13809) -Fix: memory leak each time a "new ai" got (re)started.rubidium
2008-07-18(svn r13731) -Codechange: make a pool of the array of players.rubidium
2008-07-17(svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line ↵rubidium
with all other structs/classes that are in a pool.
2008-05-29(svn r13325) -Codechange: split the client-side only settings from the ↵rubidium
settings stored in the savegame so there is no need to have a duplicate copy of it for new games.
2008-05-25(svn r13255) -Codechange: move _opt to _settings.rubidium
2008-05-25(svn r13251) -Codechange: rename _patches to _settings as that is more logic.rubidium
-Codechange: move all Settings into substructs of _settings in a way that they are logically grouped.
2008-05-24(svn r13233) -Fix: Replace some (incorrect) evaluations of TileOwner by ↵frosch
RoadOwner. -Fix: Before evaluating RoadOwner, check if the roadtype is present. -Fix: Some places assumed that MP_ROAD means normal street.
2008-05-23(svn r13222) -Change: allow old AI building helistations and helidepots for ↵smatz
oil rig routes
2008-05-23(svn r13221) -Fix (r8747): old AI failed to build oil rig routessmatz
2008-05-23(svn r13217) -Fix: old AI was building small airports in years when they ↵smatz
were not available in original game, causing small planes and helis everywhere
2008-05-14(svn r13090) -Codechange: add functions for direct conversion from ↵smatz
DiagDirection to Track and Trackbits
2008-05-06(svn r12971) -Documentation: add @file in files that missed them and add ↵rubidium
something more than whitespace as description of files that don't have a description.
2008-04-29(svn r12924) -Feature: Introducing the so called 'engine pool' which ↵peter1138
primarily removes the fixed engine type limits and also happens to allow (with the patch option 'dynamic_engines') multiple NewGRF vehicle sets to coexist.
2008-04-18(svn r12762) -Fix: tabs after the first non-tab character are generally not ↵rubidium
okay (or lines starting with a space and then tabs).
2008-04-18(svn r12761) -Codechange: lots of minor whitespace coding style fixes around ↵rubidium
operators.
2008-04-17(svn r12754) -Codechange: split depot.h into depot_map.h, depot_func.h and ↵rubidium
depot_base.h and remove quite a lot of unneeded (before this) includes of depot.h.
2008-04-17(svn r12753) -Codechange: do not use IsDepotTypeTile() where simpler ↵smatz
function can be used
2008-04-17(svn r12745) -Codechange: a bit of naming conventions, introduce Is*DepotTile()smatz
2008-04-07(svn r12617) -Codechange: add type safety to the Order's load and unload types.rubidium
2008-04-07(svn r12615) -Codechange: rename some enums related to depot orders to make ↵rubidium
it more clear that they are no loading/unloading flags. Also add more type strictness.
2008-04-06(svn r12593) -Codechange: hide Order's flags in most of the code.rubidium
2008-04-06(svn r12588) -Codechange: do not access the destination of an order directly.rubidium
2008-04-06(svn r12587) -Codechange: unduplicate some code in the Unpack*Order ↵rubidium
functions and move the 'normal' case Pack/Unpack to Order.
2008-04-05(svn r12584) -Codechange: do not access the order type directly.rubidium
2008-04-02(svn r12540) -Codechange: Enumify some values in original pathfinder and ↵frosch
remove an unused variable.
2008-04-01(svn r12533) -Cleanup: Remove some wizardry from default ai by using ↵frosch
existings enums and helper functions.
2008-03-31(svn r12490) -Codechange: rename engine.h to engine_func.h and remove ↵rubidium
unneeded inclusions of engine.h and/or replace them with engine_type.h.
2008-03-31(svn r12489) -Codechange: split station.h into station_base.h and ↵rubidium
station_func.h.
2008-03-30(svn r12488) -Codechange: split order.h into order_base.h and order_func.h.rubidium
2008-03-28(svn r12476) -Codechange: split type engine related types from engine.h (and ↵rubidium
openttd.h) to engine_type.h.
2008-03-27(svn r12451) -Codechange: use of FOR_ALL_ENGINES/ENGINEIDS_OF_TYPE instead ↵peter1138
of for-loops
2008-02-20(svn r12200) -Fix: force AI to build rail or road instead of bridges if ↵smatz
possible, so it doesn't build bridges everywhere
2008-02-20(svn r12199) -Codechange: Remove magic around the results of ↵frosch
GetTileTrackStatus().
2008-02-20(svn r12197) -Fix [FS#1788](r12134): show correct last year profit when the ↵smatz
train had negative income -Codechange: use GetDisplayProfitThisYear() to convert vehicle profit to readable form
2008-02-20(svn r12193) -Codechange: Rename a magic variable, give it a decent type, ↵frosch
and remove a 'goto'.
2008-02-18(svn r12184) -Fix: take into account possible loan when AI is deciding which ↵smatz
bridge to build, so it won't build wooden bridges everytime
2008-02-16(svn r12155) -Fix (r12154): some warnings (always compile before commit)glx
2008-02-15(svn r12154) -Codechange: removed a magic numberglx
2008-02-14(svn r12141) -Codechange: Introduce IsNormalRoad[Tile](), ↵frosch
IsRoadDepot[Tile]() and HasTileRoadType(); and use them.
2008-02-13(svn r12134) -Change: count the number of ticks a vehicle was running this ↵smatz
day to calculate running cost -Fix [FS#1739]: vehicle profit is now counted with 8bit fract, so it is now shown properly in the vehicle details window
2008-01-30(svn r12019) -Codechange: Add support for passenger engine designation for ↵peter1138
AI-use, NewGRF property 0x08 for trains.
2008-01-25(svn r11983) -Codechange: Add some helper functions for slopes and use them.frosch
2008-01-24(svn r11972) -Fix: old AI shouldn't build fast planes with a small airport ↵smatz
in orders
2008-01-23(svn r11968) -Codechange: remove redundant FindLengthOfTunnel(), use ↵smatz
GetTunnelBridgeLength() and/or GetOtherTunnelEnd() instead