summaryrefslogtreecommitdiff
path: root/ai/trolly/build.c
AgeCommit message (Collapse)Author
2006-11-05(svn r7074) -Fix (r7073): stupid debugspeter1138
2006-11-05(svn r7073) -Feature: Add cargo refit support to both AIs for road vehiclespeter1138
2006-11-05(svn r7072) -Fix (r7070): Go up, not down, through the engines. And replace ↵peter1138
the comment too...
2006-11-05(svn r7070) -Codechange: Make the AI choose road vehicles based on a rating ↵peter1138
(currently max speed * capacity) instead of either the cost or the index of the vheicle.
2006-11-03(svn r7057) -Codechange: Remove hardcoded lists of road vehicles for each ↵peter1138
cargo type in favour of just checking the cargo type of each vehicle.
2006-11-03(svn r7048) -Cleanup: DEBUG doesn't need a newline character, use DEBUG ↵Darkvater
instead of printf and the verb is build/built/built not build/*/build or build/*/builded.
2006-09-05(svn r6406) -Codechange: Rename TileOffsByDir to TileOffsByDiagDir because ↵Darkvater
it accepts DiagDirections, and add TileOffsByDir that handles Directions. -Codechange: Make the treeloop use TileOffsByDir().
2006-06-27(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectaculartron
2006-06-10(svn r5210) Many small changes which piled up: const, unsigned, variable ↵tron
scope, CSE for readability, DeMorgan, if cascades -> switch, whitespace, parentheses, bracing, misc.
2006-06-04(svn r5092) -Fix: There was a gross race condition in the AI code which made ↵tron
it pretty random if the AI could give a new vehicle its orders
2006-05-21(svn r4943) uint tile -> TileIndex tile, byte player -> PlayerID playertron
2006-05-21(svn r4941) Replace some ints and magic numbers by proper types and enumstron
2006-03-29(svn r4154) -Moved MAX_BRIDGES in bridge.h and made it an enum. This makes ↵celestar
two drops ...
2006-03-08(svn r3783) Replace further ints and magic numbers by Direction, ↵tron
DiagDirection and friends
2006-02-18(svn r3613) Some more const, indentation, whitespace and similar stufftron
2005-11-21(svn r3224) -Add: Allow the NewAI to work in Multiplayer Games (switchable ↵truelight
via patch settings, off by defaut). An other step to AIScripts. WARNING: this is still highly experimental and has known bugs!
2005-11-14(svn r3181) -Bracingtron
-Indentation -Whitespace -DeMorgan's Law -Test with NULL or 0 for non-booleans -'\0' instead of 0 for chars -Remove redundantly redundant comments (like DoFoo(); // Do foo) -Join multiple short lines with a single statement -Split single lines with multiple statements -Avoid assignments in if
2005-10-23(svn r3078) Some more stuff, which piled up:tron
- const, whitespace, indentation, bracing, GB/SB, pointless casts - use the trinary operator where appropriate - data types (uint[] -> AcceptedCargo, ...) - if cascade -> switch - if (ptr) -> if (ptr != NULL) - DeMorgan's Law - Fix some comments - 0 -> '\0', change magic numbers to symbolic constants
2005-09-02(svn r2907) -Codechange: splitted the AIs to their own directory. AINew ↵truelight
becomes 'trolly', AIOld becomes 'default', both in their own dir in the 'ai' dir. More AIs to come.