summaryrefslogtreecommitdiff
path: root/ai
AgeCommit message (Collapse)Author
2006-03-26(svn r4116) -Fix: The AI should send a plane into a hangar if it's not in a ↵tron
hangar _or_ not stopped, not when it's not in a hangar _and_ not stopped
2006-03-24(svn r4079) Add GetSation{Index,ByTile}() to get the station index resp. the ↵tron
station from a tile
2006-03-19(svn r3981) More work for the rail accessing functions and enumstron
2006-03-16(svn r3907) Replace many bridge related direct map accesses with calls to ↵tron
shiny new functions and mark some strange constructs with XXX
2006-03-15(svn r3887) Add a function to get the other bridge end when you're at a ↵tron
bridge ramp
2006-03-14(svn r3857) Add and use GetBridgeRampDirection()tron
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]
2006-03-12(svn r3831) Add and use GetRailDepotDirection()tron
2006-03-12(svn r3830) Move IsTunnelTile() from tile.h to tunnel_map.h and add ↵tron
IsTunnel(), which just checks for a tunnel, but not the tile type as IsTunnelTile() does
2006-03-11(svn r3816) Use existing accessorstron
2006-03-09(svn r3805) - [FS#62] Fix doxygen comments to refer to the correct ↵peter1138
parameter. (sulai)
2006-03-08(svn r3783) Replace further ints and magic numbers by Direction, ↵tron
DiagDirection and friends
2006-03-06(svn r3776) Replace many ints and magic numbers by Direction, DiagDirection ↵tron
and friends
2006-03-05(svn r3763) Adapt to the new 'map accessors go in foo_map.h'-schemetron
2006-02-27(svn r3677) Remove the FindLandscapeHeightByTile()s from the default AI.tron
The corresponding TileInfos look like global variables at the first glance, but always get written to before reading in each function they are used in.
2006-02-23(svn r3660) Convert further road bits and type references to the functions/enumstron
2006-02-21(svn r3644) Don't use FindLandscapeHeightByTile() when it's overkill - often ↵tron
it was just a complicated way of writing GetTileSlope(tile, NULL)
2006-02-18(svn r3614) turn 2 do-while-loop with 2 induction variables each into ↵tron
canocical for loops
2006-02-18(svn r3613) Some more const, indentation, whitespace and similar stufftron
2006-02-13(svn r3602) - Move _railveh_score data to _rail_vehicle_info->ai_rank and ↵peter1138
remove global variable to return data as we can now access this directly.
2006-02-06(svn r3564) Several smaller changes:tron
- Don't treat non-booleans as booleans - Reduce variable scope - Bracing - Use DeMorgan's law to make conditionals easier to read - if cascade -> switch - Replace some magic numbers by symbolic names - Avoid assignments within other statements
2006-02-01(svn r3511) More whitespace ([FS#46] by Rubidium)tron
2006-01-29(svn r3481) - Try and fix an svn discrepancy of trolly.h #2Darkvater
2006-01-29(svn r3480) - Try and fix an svn discrepancy of trolly.hDarkvater
2006-01-29(svn r3472) - [PBS] Remove from trunk. Anyone interested can still find it ↵Darkvater
in branch/pbs. This reverts revisions r3158, r3140, r3075, r2977, r2674, r2625, r2621, r2529, r2528, r2525, r2524, r2519, r2517, r2516, r2507, r2499. (in conjunction with Tron) - The only change is that the nsignalsw.grf file is kept and that existing nightlies with PBS signals get those signals converted to combo-signals.
2006-01-05(svn r3367) Unify the 4 distinct ↵tron
CMD_CHANGE_{AIRCRAFT,ROADVEH,SHIP,TRAIN}_SERVICE_INT commands into one CMD_CHANGE_SERVICE_INT command. As side effect this is a -Fix: The default AI tried to change the service intervals of vehicles via the CMD_CHANGE_TRAIN_SERVICE_INT command - regardless of the type of the vehicle - which of course failed for non-trains
2006-01-05(svn r3365) Staticise 36 functionstron
2005-12-18(svn r3313) Remove GPMI related changes from trunktron
Revisions in detail: 2542, 3226 (partial), 3229, 3231, 3232, 3238, 3242-3245, 3251, 3253, 3260, 3263, 3265, 3266, 3269, 3277, 3278, 3279, 3283 (partial), 3304, 3305, 3306
2005-12-14(svn r3306) -Fix: forgot sometimes to switch to the right current_player for AIstruelight
2005-12-14(svn r3305) -Rename: Changed all instances of ottd_ related to the AI to ttai_truelight
2005-12-14(svn r3304) -Add: allow AI-events to see the UID of the commandtruelight
-Fix: improved the logic of the UID code for AIs
2005-12-14(svn r3298) Remove unused and write-only variablestron
2005-12-14(svn r3297) Staticisetron
2005-12-13(svn r3294) - Fix: use INVALID_STRING_ID instead of -1.Darkvater
- Fix: savegames only give back one message, show this by ignoring the first argument. Perhaps make the message more verbose in the future by adding STR_ equivalents next to the already existing debug messages.
2005-12-10(svn r3285) -Codechange: Tron was confused by a name, so let's make him happy, truelight
prefixed it with 'tmp', so now we know it is a temp char* :)
2005-12-10(svn r3284) -Fix: DoCommand always cleans up _cmd_text (tnx to Tron)truelight
2005-12-10(svn r3283) -Fix: decode_parameters was still used, while _cmd_text is the waytruelight
-Fix: _cmd_text is cleared after a command, so we need to store it temporaray in order to first test the command, before executing
2005-12-10(svn r3282) - Codechange: Replace tests against CMD_ERROR with CmdFailed()peter1138
2005-12-09(svn r3279) -Fix: do not try to execute something that is not set to executetruelight
-Fix: do not increase an uid number if it isn't returned
2005-12-09(svn r3278) -Fix: lets update the tail-pointer if we add a new item, else ↵truelight
the linkedlist never grows ;)
2005-12-09(svn r3277) -Fix: lets use the right DoCommand for testing a build (tnx to ↵truelight
Igor2Code)
2005-12-08(svn r3272) -Fix: [AI] fixed issue in AI that prevented compilation without ↵bjarni
network support
2005-12-07(svn r3269) -Fix: return CMD_ERROR instead of -1 if AI_DoCommandChecked failstruelight
2005-12-06(svn r3266) -Codechange: added comments for why the revert of r3625 inside ↵truelight
the code. Also, I forgot to tnx GraphiteNL for his help with this problem. Tnx GraphiteNL :)
2005-12-06(svn r3265) -Fix: partly reverted back r3263, because MSVC, who else, ↵truelight
doesn't support variadic macros............
2005-12-06(svn r3263) -Fix: use () around 'variables' in macros, gives less crashes ;)truelight
-Fix: va-args in macros are supported via __VA_ARGS__ in C99, so changed to that; now GCC 2.95 likes it too :)
2005-12-05(svn r3260) -Add: add events for AIs to check if a command execution failed ↵truelight
or succeeded
2005-12-02(svn r3253) -Add: add BuildRoad event for AIstruelight
2005-12-01(svn r3251) -Fix: report errors from GPMI in a more detailed way (Igor2Code)truelight
2005-11-30(svn r3250) -Fix: AIs weren't uninitialized when a new game was loadedtruelight
2005-11-29(svn r3246) -Fix: small glitch in ai_network_client code (network_client.c)truelight
-Fix: make sure this glitch can never happen again (ai.c)