Darkvater
80814dbb1d
(svn r6406) -Codechange: Rename TileOffsByDir to TileOffsByDiagDir because it accepts
...
DiagDirections, and add TileOffsByDir that handles Directions.
-Codechange: Make the treeloop use TileOffsByDir().
2006-09-05 23:21:41 +00:00
tron
2b27073156
(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular
2006-06-27 21:25:53 +00:00
tron
0a72639c2d
(svn r5210) Many small changes which piled up: const, unsigned, variable scope, CSE for readability, DeMorgan, if cascades -> switch, whitespace, parentheses, bracing, misc.
2006-06-10 08:37:41 +00:00
tron
877c7e34a5
(svn r5092) -Fix: There was a gross race condition in the AI code which made it pretty random if the AI could give a new vehicle its orders
2006-06-04 09:10:24 +00:00
tron
58458812a4
(svn r4943) uint tile -> TileIndex tile, byte player -> PlayerID player
2006-05-21 16:18:58 +00:00
tron
5783d57ec0
(svn r4941) Replace some ints and magic numbers by proper types and enums
2006-05-21 15:19:20 +00:00
celestar
8310a46351
(svn r4154) -Moved MAX_BRIDGES in bridge.h and made it an enum. This makes two drops ...
2006-03-29 19:03:47 +00:00
tron
fbe939b31f
(svn r3783) Replace further ints and magic numbers by Direction, DiagDirection and friends
2006-03-08 06:55:33 +00:00
tron
49c7eb934b
(svn r3613) Some more const, indentation, whitespace and similar stuff
2006-02-18 14:41:24 +00:00
truelight
31f218fdf9
(svn r3224) -Add: Allow the NewAI to work in Multiplayer Games (switchable via patch
...
settings, off by defaut). An other step to AIScripts.
WARNING: this is still highly experimental and has known bugs!
2005-11-21 14:28:31 +00:00
tron
f7abff5f96
(svn r3181) -Bracing
...
-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-11-14 19:48:04 +00:00
tron
47137cefb7
(svn r3078) Some more stuff, which piled up:
...
- 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-10-23 13:04:44 +00:00
truelight
d05f504c01
(svn r2907) -Codechange: splitted the AIs to their own directory. AINew becomes 'trolly', AIOld becomes 'default', both in their own dir in the 'ai' dir. More AIs to come.
2005-09-02 19:10:45 +00:00