summaryrefslogtreecommitdiff
path: root/queue.c
AgeCommit message (Collapse)Author
2006-02-11(svn r3592) Miscellaneous smaller changes, most notably replacing ↵tron
sizeof(type) by sizeof(*variable)
2006-02-11(svn r3590) Fix a bug where sizeof(struct) was allocated instead of ↵tron
sizeof(pointer to struct). This was non-fatal, because more memory than necessary got allocated
2006-02-01(svn r3512) Yet more whitespace fixes (mostly by Rubidium)peter1138
2005-12-27(svn r3347) Plug a memory leak (Found by Valgrind using Truelight ... or was ↵tron
it the other way round?)
2005-12-14(svn r3297) Staticisetron
2005-07-24(svn r2701) Insert Id tags into all source filestron
2005-07-08(svn r2535) Tabstron
2005-06-02(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.Darkvater
2005-04-07(svn r2166) Fixed two warnings in the last commit.matthijs
2005-04-07(svn r2165) - Codechange: [NPF] Properly enummed NPF hash size, it is easily ↵matthijs
changable now. - Codechange: [NPF] Improved the NPF hash calculation slightly. - Codechange: [NPF] Increased hash size, should speed up somewhat.
2005-01-31(svn r1751) - Feature: New PathFinder (NPF).matthijs
- Supports trains, road vehicles and ships. - Uses A* pathfinding (same codebase as the new ai). - Currently unlimited search depth, so might perform badly on large maps/networks (especially ships). - Will always find a route if there is one. - Allows custom penalties for obstacles to be set in openttd.cfg (npf_ values). - With NPF enabled, ships can have orders that are very far apart. Be careful, this will break (ships get lost) when the old pathfinder is used again. - Feature: Disabling 90 degree turns for trains and ships. - Requires NPF to be enabled. - Ships and trains can no longer make weird 90 degree turns on tile borders. - Codechange: Removed table/directions.h. - table/directions.h contained ugly static tables but was included more than once. The tables, along with a few new ones are in npf.[ch] now. Better suggestions for a location? - Fix: Binary heap in queue.c did not allocate enough space, resulting in a segfault. - Codechange: Rewritten FindFirstBit2x64, added KillFirstBit2x64. - Codechange: Introduced constant INVALID_TILE, to replace the usage of 0 as an invalid tile. Also replaces TILE_WRAPPED. - Codechange: Moved TileAddWrap() to map.[ch] - Add TileIndexDiffCByDir(), TileIndexDiffCByDir(). - Codechange: Moved IsTrainStationTile() to station.h - Add: IsRoadStationTile() and GetRoadStationDir().
2005-01-22(svn r1596) Add some more staticstron
2005-01-22(svn r1594) Convert all undefined parameter lists to (void) and add the ↵tron
appropriate warning flags in the Makefile
2004-12-29(svn r1297) Language fixes in the source.. (ln-)miham
2004-09-11(svn r202) -Codechange: I missed some files with trailing spaces.. this ↵truelight
should be all ;)
2004-08-22(svn r108) -Fix: anon-union problems on GCC2 compilerstruelight
2004-08-20(svn r85) -Add: initial commit of new AI (enable in Patch menu)truelight
-Add: generalised A* Algorithm -Add: generalised queues (Fifo, Stack, InsSort, BinaryHeap)