(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
This commit is contained in:
tron
2005-10-23 13:04:44 +00:00
parent 2cc2154ad2
commit 47137cefb7
38 changed files with 442 additions and 453 deletions

View File

@@ -1,17 +1,18 @@
/* $Id: ai_new.c 2891 2005-08-26 20:26:34Z tron $ */
/* $Id$ */
/*
* This AI was created as a direct reaction to the big demand for some good AIs in OTTD.
* Too bad it never left alpha-stage, and it is considered dead in his current form.
* By the time of writing this, we, the creator of this AI and a good friend of mine,
* are designing a whole new AI-system that allows us to create AIs easier and without
* all the fuzz we encountered while I was working on this AI. By the time that system
* is finished, you can expect that this AI will dissapear, because it is pretty
* obselete and bad programmed.
* This AI was created as a direct reaction to the big demand for some good AIs
* in OTTD. Too bad it never left alpha-stage, and it is considered dead in its
* current form.
* By the time of writing this, we, the creator of this AI and a good friend of
* mine, are designing a whole new AI-system that allows us to create AIs
* easier and without all the fuzz we encountered while I was working on this
* AI. By the time that system is finished, you can expect that this AI will
* dissapear, because it is pretty obselete and bad programmed.
*
* In the meanwhile I wish you all much fun with this AI; if you are interested as
* AI-developer in this AI, I advise you not stare too long to some code, some things in
* here really are... strange ;) But in either way: enjoy :)
* Meanwhile I wish you all much fun with this AI; if you are interested as
* AI-developer in this AI, I advise you not stare too long to some code, some
* things in here really are... strange ;) But in either way: enjoy :)
*
* -- TrueLight :: 2005-09-01
*/