glx
9b73303b4d
(svn r15261) -Add: added Engine::GetRunningCost() to remove some code duplication. Also stops AIs decrementing vehicle counter of first company
2009-01-24 20:14:15 +00:00
frosch
7120b2455a
(svn r15255) -Fix (r15027): AIVehicle::GetLength() returned only the length of the first part of articulated road vehicles.
2009-01-24 14:26:48 +00:00
frosch
8be4bc3d1e
(svn r15252) -Fix (r15027): AIMarine::AreWaterTilesConnected() reported aqueducts being connected with all surrounding tiles. Also add some type safety.
2009-01-24 13:05:04 +00:00
frosch
2eb5af3bb8
(svn r15244) -Fix (r15027): The station tile of an oilrig-like industry is not neccessarily the first industry tile.
2009-01-23 22:36:17 +00:00
frosch
ac7883fe93
(svn r15241) -Fix (r15027): NoAI API was not aware of certain newindustries 'features'.
2009-01-23 22:09:31 +00:00
glx
205289cf9d
(svn r15228) -Fix [FS#2571]: possible crash when an AI/Library doesn't have a required function
2009-01-23 15:38:13 +00:00
glx
6301d1cc0a
(svn r15226) -Fix (r15214): broken AI content download
2009-01-23 15:10:13 +00:00
rubidium
80e59f375f
(svn r15215) -Fix: various MSVC x64 compiler warnings
2009-01-23 02:01:05 +00:00
glx
7809b7ef0e
(svn r15214) -Fix [NoAI]: ignore case for ai/library main script path on windows
2009-01-23 01:29:13 +00:00
glx
e30d391345
(svn r15191) -Fix (r15188): -1 is not a bool (MSVC warning)
2009-01-21 03:47:04 +00:00
Yexo
e3c69b7c4e
(svn r15190) -Feature: Allow terraforming of the tiles at the edges of the map.
2009-01-21 02:31:55 +00:00
Yexo
7b009c3586
(svn r15188) -Feature: You can now change the number of AIs from the AI config window.
2009-01-21 01:56:42 +00:00
Yexo
dcdb771c40
(svn r15187) -Fix: assert when an AI called AIRoad::GetNeighbourRoadCount on a tile at the north edge (bug found by SmatZ).
2009-01-21 01:37:20 +00:00
Yexo
9fd38d1022
(svn r15186) -Fix: Select the currently selected AI instead of the second on in the list.
...
-Feature: Double clicking on a slot in the AI config window results in opening the list of AIs.
2009-01-21 00:36:22 +00:00
Yexo
78c857422b
(svn r15185) -Fix (r15175): It was impossible to select AIs that had a different instance name then their name.
2009-01-21 00:19:21 +00:00
glx
11fe4bcc56
(svn r15184) -Cleanup: remove extra spaces
2009-01-21 00:18:30 +00:00
Yexo
aaa8be9a3f
(svn r15182) -Fix: After updating an AI select the latest version for the next game.
2009-01-21 00:09:36 +00:00
Yexo
593f380462
(svn r15175) -Feature: Add the option to select the AIs to start in a new game and configure them via the gui.
2009-01-20 16:49:10 +00:00
Yexo
1f5b8c97df
(svn r15171) -Fix (r15027): Buffer underflow in case there are no settings to save for an AI.
2009-01-20 15:58:40 +00:00
peter1138
b85389dca5
(svn r15149) -Codechange: GetMaskOfTownActions() is used by a Cmd handler, therefore it does not belong in _gui.
2009-01-19 12:07:01 +00:00
rubidium
a0e24cc6c9
(svn r15139) -Fix [NoAI]: a wrong tile got returned for hangar tiles when the station sign isn't over st->airport_tile.
2009-01-18 17:03:57 +00:00
peter1138
6644fa86ee
(svn r15133) -Fix: Crash if no NoAIs are present.
2009-01-17 22:22:53 +00:00
rubidium
72b0341ed0
(svn r15126) -Feature: downloading content from a central server (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 16:53:32 +00:00
truebrain
fac5cee3d3
(svn r15124) -Fix: last memory leak related to NoAI
2009-01-17 15:38:37 +00:00
truebrain
eb0d82ada0
(svn r15123) -Fix [NoAI]: 'const char *' implies that the return value should not be free'd, which is should .. so make them 'char *'
2009-01-17 15:31:30 +00:00
truebrain
ef75a7af90
(svn r15122) -Codechange: add a security assert, to make sure something never happens
2009-01-17 15:14:13 +00:00
truebrain
002427eab9
(svn r15121) -Fix: more mem-leak fixes (this should make SmatZ so happy ;) :p)
2009-01-17 15:07:35 +00:00
truebrain
8cbf156252
(svn r15120) -Fix: more mem-leak fixes
2009-01-17 14:54:24 +00:00
truebrain
d790884ee6
(svn r15118) -Fix: fix a minor mem-leak
2009-01-17 14:45:44 +00:00
truebrain
dec721ca6f
(svn r15109) -Add [NoAI]: add AITile::LevelTiles (Yexo)
2009-01-16 15:01:54 +00:00
truebrain
f5e0590c09
(svn r15107) -Fix [NoAI]: don't use so much explicit string copies if it is not required
2009-01-16 14:56:13 +00:00
rubidium
65ae906940
(svn r15106) -Fix [NoAI]: printf-ing of garbage.
2009-01-16 14:37:53 +00:00
truebrain
cafff6eb60
(svn r15102) -Fix (r15101): somehow makedepend fucked up (patch by Yexo)
2009-01-16 00:27:22 +00:00
truebrain
bd520ca562
(svn r15101) -Change [API CHANGE]: more consistant naming for consts:
...
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-16 00:05:26 +00:00
truebrain
b9ebab0e5d
(svn r15100) -Add [NoAI]: introduce TILE_INVALID as const
2009-01-15 21:20:12 +00:00
truebrain
1cd56af6da
(svn r15099) -Fix (r15078): GetTileIndex(0, -1) is perfectly fine
2009-01-15 20:59:22 +00:00
truebrain
91c7cba05b
(svn r15096) -Fix [NoAI]: free memory when no longer needed
...
-Fix [NoAI]: when there are multiple versions of one AI, never randonly pick an older one, but always the latest
2009-01-15 18:24:49 +00:00
truebrain
e436f0218f
(svn r15095) -Add [NoAI]: allow AI Libraries to be in .tar files (subdir 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 18:15:12 +00:00
truebrain
fe7997e95f
(svn r15093) -Fix [NoAI]: check if a tile is valid before using IsTileType (bug found by Zuu, patch by Yexo)
2009-01-15 17:00:47 +00:00
truebrain
ae5c8a8b35
(svn r15091) -Add [NoAI] [API CHANGE]: introduce GetCategory() as a 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 15:56:10 +00:00
truebrain
e84138af22
(svn r15090) -Add [NoAI] [API CHANGE]: info.nut/library.nut now requires a function GetShortName(), which should return a 4 (four) character string, unique throughout the world. This id is simular to a GRFid.
2009-01-15 14:37:44 +00:00
truebrain
1e1cdd01b4
(svn r15086) -Fix: start AIs after 6 months on hard, 12 months on medium, and 24 months on easy. The current values were a bit .. too long waiting period ;)
2009-01-14 21:32:06 +00:00
truebrain
61093eb211
(svn r15084) -Fix [NoAI] (r15027): by removing the threads for NoAIs, it is no longer possible to use DoCommand (even indirect) in AIAbstractList::Valuator().
2009-01-14 18:25:48 +00:00
rubidium
eb19b0abf9
(svn r15082) -Codechange: make the AI library path also a searchdir instead of manually manufacturing it into a searchdir.
2009-01-14 15:20:06 +00:00
truebrain
9724a986c8
(svn r15078) -Fix [NoAI]: AIMap didn't filter its input (Yexo)
2009-01-13 23:50:12 +00:00
smatz
ca45774160
(svn r15077) -Codechange: enumify DAYS_IN_YEAR and DAYS_IN_LEAP_YEAR
...
-Change: when computing daily running cost, divide by 365 (instead of 364). Since r12134, the rounding errors don't need this correction anymore
2009-01-13 22:58:03 +00:00
truebrain
5b4da28594
(svn r15076) -Fix: a start_date of 0 would never start an AI .. so don't allow it (Yexo)
2009-01-13 22:36:44 +00:00
truebrain
d5a599f5e5
(svn r15074) -Fix: make Rubidium happy
2009-01-13 21:11:02 +00:00
peter1138
4585d9785d
(svn r15073) -Fix (r15067) [FS#2532]: Default copy constructors don't necessarily do what you want. Instead of creating one, we now pass a pointer around as that avoids additional allocations.
2009-01-13 20:43:53 +00:00
truebrain
ec4bdfe611
(svn r15068) -Add [NoAI]: introducing 'step_size' for AIConfig, for future AIGUI (Yexo)
2009-01-13 18:26:58 +00:00