summaryrefslogtreecommitdiff
path: root/src/ai
AgeCommit message (Collapse)Author
2009-01-27(svn r15284) -Fix [FS#2582] (r15045): Parameters were popped from the ↵Yexo
squirrel stack twice.
2009-01-26(svn r15278) -Fix [FS#2332]: test noise limit of nearest town instead of ↵smatz
st->town
2009-01-26(svn r15277) -Fix (r15027): Building bridges in AITestMode always returned ↵Yexo
false.
2009-01-25(svn r15270) -Change [API CHANGE]: remove AIEventTestglx
2009-01-25(svn r15263) -Codechange: added Engine::GetCost() to remove some code ↵glx
duplication.
2009-01-24(svn r15262) -Fix: AIEvents were not freed, when they were not queued for ↵frosch
any AI.
2009-01-24(svn r15261) -Add: added Engine::GetRunningCost() to remove some code ↵glx
duplication. Also stops AIs decrementing vehicle counter of first company
2009-01-24(svn r15255) -Fix (r15027): AIVehicle::GetLength() returned only the length ↵frosch
of the first part of articulated road vehicles.
2009-01-24(svn r15252) -Fix (r15027): AIMarine::AreWaterTilesConnected() reported ↵frosch
aqueducts being connected with all surrounding tiles. Also add some type safety.
2009-01-23(svn r15244) -Fix (r15027): The station tile of an oilrig-like industry is ↵frosch
not neccessarily the first industry tile.
2009-01-23(svn r15241) -Fix (r15027): NoAI API was not aware of certain newindustries ↵frosch
'features'.
2009-01-23(svn r15228) -Fix [FS#2571]: possible crash when an AI/Library doesn't have ↵glx
a required function
2009-01-23(svn r15226) -Fix (r15214): broken AI content downloadglx
2009-01-23(svn r15215) -Fix: various MSVC x64 compiler warningsrubidium
2009-01-23(svn r15214) -Fix [NoAI]: ignore case for ai/library main script path on windowsglx
2009-01-21(svn r15191) -Fix (r15188): -1 is not a bool (MSVC warning)glx
2009-01-21(svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map.Yexo
2009-01-21(svn r15188) -Feature: You can now change the number of AIs from the AI ↵Yexo
config window.
2009-01-21(svn r15187) -Fix: assert when an AI called AIRoad::GetNeighbourRoadCount on ↵Yexo
a tile at the north edge (bug found by SmatZ).
2009-01-21(svn r15186) -Fix: Select the currently selected AI instead of the second on ↵Yexo
in the list. -Feature: Double clicking on a slot in the AI config window results in opening the list of AIs.
2009-01-21(svn r15185) -Fix (r15175): It was impossible to select AIs that had a ↵Yexo
different instance name then their name.
2009-01-21(svn r15184) -Cleanup: remove extra spacesglx
2009-01-21(svn r15182) -Fix: After updating an AI select the latest version for the ↵Yexo
next game.
2009-01-20(svn r15175) -Feature: Add the option to select the AIs to start in a new ↵Yexo
game and configure them via the gui.
2009-01-20(svn r15171) -Fix (r15027): Buffer underflow in case there are no settings ↵Yexo
to save for an AI.
2009-01-19(svn r15149) -Codechange: GetMaskOfTownActions() is used by a Cmd handler, ↵peter1138
therefore it does not belong in _gui.
2009-01-18(svn r15139) -Fix [NoAI]: a wrong tile got returned for hangar tiles when ↵rubidium
the station sign isn't over st->airport_tile.
2009-01-17(svn r15133) -Fix: Crash if no NoAIs are present.peter1138
2009-01-17(svn r15126) -Feature: downloading content from a central server ↵rubidium
(content.openttd.org) where authors can upload they NewGRFS/AI etc. This should make joining servers that use only NewGRFs that are distributed via this system easier as the players can download the NewGRFs from in the game. It should also make it easier to see whether there are updates for NewGRFs and make the necessary updates.
2009-01-17(svn r15124) -Fix: last memory leak related to NoAItruebrain
2009-01-17(svn r15123) -Fix [NoAI]: 'const char *' implies that the return value ↵truebrain
should not be free'd, which is should .. so make them 'char *'
2009-01-17(svn r15122) -Codechange: add a security assert, to make sure something ↵truebrain
never happens
2009-01-17(svn r15121) -Fix: more mem-leak fixes (this should make SmatZ so happy ;) :p)truebrain
2009-01-17(svn r15120) -Fix: more mem-leak fixestruebrain
2009-01-17(svn r15118) -Fix: fix a minor mem-leaktruebrain
2009-01-16(svn r15109) -Add [NoAI]: add AITile::LevelTiles (Yexo)truebrain
2009-01-16(svn r15107) -Fix [NoAI]: don't use so much explicit string copies if it is ↵truebrain
not required
2009-01-16(svn r15106) -Fix [NoAI]: printf-ing of garbage.rubidium
2009-01-16(svn r15102) -Fix (r15101): somehow makedepend fucked up (patch by Yexo)truebrain
2009-01-16(svn r15101) -Change [API CHANGE]: more consistant naming for consts:truebrain
INVALID_TOWN_RATING -> TOWN_RATING_INVALID INVALID_TRANSPORT -> TRANSPORT_INVALID INVALID_ORDER -> ORDER_INVALID INVALID_GROUP -> GROUP_INVALID GROUP_ALL/DEFAULT -> ALL/DEFAULT_GROUP VEHICLE_RAIL/ROAD/.. -> VT_RAIL/ROAD/.. MY_COMPANY -> COMPANY_SELF FIRST/LAST/INVALID_COMPANY -> COMPANY_FIRST/LAST/INVALID
2009-01-15(svn r15100) -Add [NoAI]: introduce TILE_INVALID as consttruebrain
2009-01-15(svn r15099) -Fix (r15078): GetTileIndex(0, -1) is perfectly finetruebrain
2009-01-15(svn r15096) -Fix [NoAI]: free memory when no longer neededtruebrain
-Fix [NoAI]: when there are multiple versions of one AI, never randonly pick an older one, but always the latest
2009-01-15(svn r15095) -Add [NoAI]: allow AI Libraries to be in .tar files (subdir ↵truebrain
required, as with AIs -Add [NoAI]: allow multiple versions of the same AI co-exist -Change [NoAI]: updated the whole method of AI (Library) finding and loading; it is now much more clear and transparent -Change [NoAI]: the name of the AI is now the name used by CreateInstance() -Change [NoAI]: make the AI finder a bit more clever, mostly related to version finding
2009-01-15(svn r15093) -Fix [NoAI]: check if a tile is valid before using IsTileType ↵truebrain
(bug found by Zuu, patch by Yexo)
2009-01-15(svn r15091) -Add [NoAI] [API CHANGE]: introduce GetCategory() as a ↵truebrain
requirement for every library.nut, to indicate in which category it belongs. Currently the directory indicates the category, but this doesn't allow planned future additions
2009-01-15(svn r15090) -Add [NoAI] [API CHANGE]: info.nut/library.nut now requires a ↵truebrain
function GetShortName(), which should return a 4 (four) character string, unique throughout the world. This id is simular to a GRFid.
2009-01-14(svn r15086) -Fix: start AIs after 6 months on hard, 12 months on medium, ↵truebrain
and 24 months on easy. The current values were a bit .. too long waiting period ;)
2009-01-14(svn r15084) -Fix [NoAI] (r15027): by removing the threads for NoAIs, it is ↵truebrain
no longer possible to use DoCommand (even indirect) in AIAbstractList::Valuator().
2009-01-14(svn r15082) -Codechange: make the AI library path also a searchdir instead ↵rubidium
of manually manufacturing it into a searchdir.