summaryrefslogtreecommitdiff
path: root/src/ai
AgeCommit message (Collapse)Author
2010-01-18(svn r18866) -Codechange: remove the CmdFailed(ret)/CmdSucceeded(ret) ↵rubidium
wrapper functions
2010-01-18(svn r18862) -Fix [FS#3544]: don't pass AI strings through iconvrubidium
2010-01-18(svn r18860) -Codechange: introduce a wrapper to get an hangar tile from a ↵yexo
station
2010-01-15(svn r18811) -Fix (r18803): also swap the parameters for the AI APIrubidium
2010-01-15(svn r18809) -Codechange/Cleanup: remove unneeded headers from some files, ↵rubidium
if a header require a header make it include that header
2010-01-15(svn r18807) -Codechange: introduce AirportSpec and move several ↵yexo
non-statemachine-related variables to there
2010-01-11(svn r18786) -Fix [FS#3507]: NoAI's custom implementation of DoCommandP has ↵rubidium
several flaws (not masking of bits, not resetting town authority updates on checks/estimates, ...). Let it use DoCommandPInternal, DoCommandP without showing error messages and such, instead.
2010-01-11(svn r18784) -Codechange: make NetworkSend_Command accept a company instead ↵rubidium
of using _local_company to pass that information, with the whole mess when you don't want the company to be _local_company.
2010-01-11(svn r18781) -Codechange: pass the CommandCost to the callback instead of ↵rubidium
whether it succeeded or not. -Fix: AIs did update their last cost incorrectly in network games if the cost of the DC_EXEC phase differed from the ~DC_EXEC phase.
2010-01-10(svn r18777) -Codechange: remove some unused parameters from a functionrubidium
2010-01-09(svn r18763) -Feature [FS#3095]: rerandomise AIs on reloading (via the debug ↵rubidium
window) when they were randomly chosen
2010-01-07(svn r18749) -Fix [FS#3491]: the AI's name and version in the debug panel ↵rubidium
weren't properly centered
2010-01-07(svn r18747) -Codechange: add some constness to the AI coderubidium
2010-01-04(svn r18726) -Fix [FS#3463]: with non-uniform industries the 'supplies' text ↵rubidium
when building a station could be incorrect (missing a cargo) -Change [NoAI]: AITile::GetCargoProduction now returns the number of producers and not the number of tiles of producers. -Fix [NoAI]: AITileList_IndustryProducing would omit some tiles for at which a station would get cargo.
2010-01-04(svn r18725) -Add: [NoAI] AIWaypoint::WaypointType and ↵frosch
AIWaypoint::HasWaypointType(). -Change: [NoAI] Constructor of AIWaypoint now takes a WaypointType to also handle buoys. -Remove: [NoAI] AIBuoyList.
2010-01-04(svn r18721) -Codechange: simplify adding/removing rectangles of tiles from ↵rubidium
AITileLists
2010-01-04(svn r18719) -Feature: don't delete the rough/rocky status of a tile when ↵yexo
it's covered by snow, this allows rocky tiles under snow if you have a variable snowline
2010-01-04(svn r18718) -Codechange: make a wrapper macro for looping TileAreasrubidium
2010-01-04(svn r18717) -Codechange: use TileArea in industry instead of three separate ↵rubidium
variables. Also make use of TileArea functions for determining the 'width' and 'height' of an industry.
2010-01-04(svn r18716) -Codechange: pass a TileArea to FindStationsAroundTilesrubidium
2010-01-03(svn r18696) -Fix [FS#3404]: AITile::IsCoastTile returned false for coast ↵yexo
tiles with trees on them.
2010-01-02(svn r18691) -Change [NoAI]: cleanup some errors messages and add a few to ↵yexo
AIWaypoint
2010-01-02(svn r18687) -Add [NoAI]: AIEngine::IsBuildable to check if you can build a ↵yexo
certain engine. -Change: AIEngine::IsValidEngine will now also return true when you have at least one vehicle of that type even if you can't build it anymore.
2010-01-01(svn r18683) -Fix: it's not an otherrubidium
2009-12-30(svn r18667) -Fix [FS#3454]: [NoAI] crash when trying to get the order ↵rubidium
destination of a 'nearest depot' order
2009-12-28(svn r18651) -Fix [FS#3438](r18518): [NoAI] When AI tried to create ↵smatz
NO_UNLOAD order, GOTO_NEAREST_DEPOT order was created instead
2009-12-23(svn r18622) -Merge: release changesrubidium
2009-12-21(svn r18588) -Feature [FS#2943]: Add shading and unshading of windows.alberth
2009-12-20(svn r18580) -Codechange: Use widget information only for setting scrollbar ↵alberth
capacity.
2009-12-20(svn r18562) -Document: improve clarity of the AIAccounting classrubidium
2009-12-20(svn r18558) -Cleanup (r18557): no need to document TILE_INVALID twicesmatz
2009-12-19(svn r18557) -Fix: (most of) gcc errors when using lto caused by some ↵smatz
structs having different definition in different object files
2009-12-19(svn r18556) -Fix (r17005): squirrel export didn't accept negative constantssmatz
2009-12-19(svn r18555) -Fix (r15027): fake definitions of squirrel types were wrong ↵smatz
for eg. 64bit systems, don't use them
2009-12-16(svn r18518) -Add [NoAI]: AIOrder::AIOF_GOTO_NEAREST_DEPOT for goto nearest ↵yexo
depot orders
2009-12-16(svn r18516) -Feature [FS#3359]: moving of AIs in the AI configuration ↵rubidium
window. Based on a patch by Zuu.
2009-12-15(svn r18507) -Change [FS#3340]: move the 'check online content' button from ↵yexo
the AI list window to the AI configuration window
2009-12-14(svn r18504) -Remove [NoAI]: AIVehicle::SkipToVehicleOrder as it was a ↵yexo
duplicate or AIOrder.SkipToOrder
2009-12-14(svn r18502) -Fix: the dummy AI would could a NOT_REACHED if the translated ↵rubidium
error message contained a quote
2009-12-12(svn r18471) -Codechange/Fix: [NoAI] Deduplicate code betweeen ↵frosch
AIVehicle::SkipToVehicleOrder and AIOrder::SkipToOrder. They are the same. Also ORDER_CURRENT was not allowed for the latter, but well...
2009-12-09(svn r18437) -Fix (r16557): background of disabled button in AI GUI wasn't ↵smatz
set back to grey after AI bankrupt
2009-12-08(svn r18436) -Fix [FS#3357]: unselect an AI in the AI Settings window when ↵rubidium
it falls out of the range of active AIs
2009-12-06(svn r18418) -Fix [FS#3298]: under some circumstances a pointer could be ↵rubidium
left untouched and then freed. Make sure this doesn't happen by ensuring it starts out as NULL instead of 'garbage'.
2009-11-29(svn r18332) -Fix: the MSVC compile warningsrubidium
2009-11-28(svn r18330) -Cleanup: remove some unneeded includesrubidium
2009-11-28(svn r18324) -Codechange: there's no need for a default size when the window ↵rubidium
isn't resizable
2009-11-28(svn r18322) -Codechange: remove the WDP duplication; no need to tell the ↵rubidium
same twice.
2009-11-26(svn r18299) -Update: the ai changelog documentrubidium
2009-11-24(svn r18277) -Codechange: remove unneeded widget indices for close, resize ↵rubidium
and sticky boxes and for window captions
2009-11-24(svn r18276) -Fix: [NoAI] Make AIIndustryType::GetConstructionCost() return ↵frosch
-1, if the industry is neither buildable nor prospectable.