tron
4888c2401e
(svn r2233) Bracing, whitespace, indendation
2005-04-25 14:29:58 +00:00
tron
6572b48cc5
(svn r2220) Put two TileIndices into temporary variables to improve readability
2005-04-21 16:13:52 +00:00
tron
156aabea2d
(svn r2218) Indentation
2005-04-21 05:51:47 +00:00
Darkvater
b12c73b050
(svn r2217) - Fix: [ 1184201 ] AI orders its vehicles to a competitor's truck stop. Added a CmdFailed() check to all command returns of the AI instead of the simple == / != CMD_ERROR check. This should fix the problem.
2005-04-20 22:30:40 +00:00
truelight
3177525871
(svn r2121) -Fix: changed the 2nd param of AyStar_EndNodeCheck back to what it should be
2005-04-02 10:38:31 +00:00
pasky
9cf1124d86
(svn r1998) Give penalty 100 to the AI for using foundations (buildonslopes). This prevents it from building long road lines on foundations unless really necessary.
2005-03-12 08:52:40 +00:00
matthijs
6a5495f83c
(svn r1963) - Add: [NPF] Penalty for a red signal that is the last signal on the path.
...
- Add: [NPF] NPFGetFlag() and NPFSetFlag() to wrap NPF node flag handling
2005-03-08 19:54:10 +00:00
pasky
380d601ca0
(svn r1954) Fix: The new AI now does not think it can connect to the road by building its piece of road above the end of a tunnel anymore.
2005-03-07 11:36:05 +00:00
matthijs
cc0966405b
(svn r1834) - Fix: NPF does not check the owner of its target, busses try to enter other players' depots. TODO
...
- Add: asserts to find the v->u.rail.track == 0 problem.
- Add: IsValidDepot(), IsValidTown(), IsValidSign(), IsValidVehicle(), IsValidStation()
- Add: GetTileOwner(), IsTileOwner()
- Codechange: Replaced IsShipDepotTile(), IsTrainDepotTile(), IsRoadDepotTile() by IsTileDepotType().
- Codechange: typedeffed the MAP_OWNERS as Owner. Should be used as variable type.
- Codechange: Replaced a few uint by TileIndex.
2005-02-06 22:36:08 +00:00
tron
36c9758c94
(svn r1803) Move debugging stuff into files of it's own
2005-02-05 15:58:59 +00:00
tron
bb680056b1
(svn r1749) Move the functions which calculate distances to map.[ch] and give the more meaningful names
2005-01-31 07:23:15 +00:00
tron
39858e696b
(svn r1713) Split off several functions which query/set information about a single tile from map.h and put them into a seperate file tile.h
2005-01-29 12:19:05 +00:00
tron
97f893ae2f
(svn r1596) Add some more statics
2005-01-22 22:47:58 +00:00
tron
1644863e32
(svn r1548) Move AI_PATHFINDER_IS_ROAD from ai.h to ai_pathfinder.c to avoid global namespace pollution, turn it into a function called IsRoad and improve the commments a bit
2005-01-17 09:16:43 +00:00
tron
61a6bc544d
(svn r1536) Move GET_TILEHEIGHT, GET_TILETYPE and IS_TILETYPE to map.h, turn them into inline functions and add some asserts
2005-01-16 11:24:58 +00:00
tron
f0be7b6192
(svn r1475) Fix some more signed/unsigned comparison warnings
2005-01-10 22:14:35 +00:00
tron
4450ff105c
(svn r1451) Fix some of the signed/unsigned comparison warnings
2005-01-09 21:25:44 +00:00
tron
414ac3286b
(svn r1414) Move TileIndex, TILE_MASK and GET_TILE_[XY] to map.h and turn the latter into inline functions names Tile[XY]
2005-01-07 17:02:43 +00:00
tron
c11ce2ec6a
(svn r1392) Use TileOffsByDir() instead of home brewed table
2005-01-05 19:12:47 +00:00
tron
181e9b6cf9
(svn r1337) Use MapMax[XY]() (or MapSize[XY]() if appropriate) instead of TILE_MAX_[XY]
...
While here replace one erroneous TILE_MAX_X with MapMaxY()
2005-01-03 12:56:22 +00:00
miham
7bf7cf80ee
(svn r1297) Language fixes in the source.. (ln-)
2004-12-29 13:13:29 +00:00
tron
a148ff4e0d
(svn r1117) Move map arrays and some related macros into their own files map.c and map.h
2004-12-15 22:18:54 +00:00
truelight
eb49a19460
(svn r194) -Codechange: stripping trailing-spaces. Please keep this that way!
2004-09-10 19:02:27 +00:00
truelight
5eba928cb8
(svn r146) -Fix [AI]: Tunnel/bridge bug
...
-Fix [AI]: Minor problems
-Add [AI]: Profit check (if not making enough money, vehicles are sold)
2004-08-31 16:12:52 +00:00
truelight
309ebe5f3f
(svn r111) -Fix: converted all linebreaks to UNIX-linebreak (\n)
2004-08-22 15:56:56 +00:00
truelight
788ace088d
(svn r85) -Add: initial commit of new AI (enable in Patch menu)
...
-Add: generalised A* Algorithm
-Add: generalised queues (Fifo, Stack, InsSort, BinaryHeap)
2004-08-20 09:32:32 +00:00