-Fix: another minor memory leak (when pressing cancel in the bootstrap window)


git-svn-id: http://svn.openttd.org/trunk@26097 6aa0318a-3be1-0310-93fa-89fd2396df07
-Fix: close the log file when OpenTTD was forked and finally closed


git-svn-id: http://svn.openttd.org/trunk@26098 6aa0318a-3be1-0310-93fa-89fd2396df07
-Codechange: make NewGRF scanner management slightly easier


git-svn-id: http://svn.openttd.org/trunk@26099 6aa0318a-3be1-0310-93fa-89fd2396df07
-Fix: possible buffer overflow in console handling of aliases


git-svn-id: http://svn.openttd.org/trunk@26100 6aa0318a-3be1-0310-93fa-89fd2396df07
-Fix: NULL pointer dereference when one can't allocate an order list but wants to make implicit orders


git-svn-id: http://svn.openttd.org/trunk@26101 6aa0318a-3be1-0310-93fa-89fd2396df07
-Fix: m_veh is not NULL by definition when IsRoadTT is true


git-svn-id: http://svn.openttd.org/trunk@26102 6aa0318a-3be1-0310-93fa-89fd2396df07
-Fix: prevent odd overflows due to integer promotion


git-svn-id: http://svn.openttd.org/trunk@26103 6aa0318a-3be1-0310-93fa-89fd2396df07
-Fix: do not attempt to do stuff with an invalid direction, especially using it as index into a table


git-svn-id: http://svn.openttd.org/trunk@26104 6aa0318a-3be1-0310-93fa-89fd2396df07
-Codechange: add a lot of assertions to track/road functions that might eventually lead to become indices into tables


git-svn-id: http://svn.openttd.org/trunk@26105 6aa0318a-3be1-0310-93fa-89fd2396df07
-Codechange: document fall through explicitly


git-svn-id: http://svn.openttd.org/trunk@26106 6aa0318a-3be1-0310-93fa-89fd2396df07
-Codechange/cleanup: remove some coding bloat and simplify the driver factory instatiations


git-svn-id: http://svn.openttd.org/trunk@26107 6aa0318a-3be1-0310-93fa-89fd2396df07
-Codechange: some coding style (whitespace)


git-svn-id: http://svn.openttd.org/trunk@26108 6aa0318a-3be1-0310-93fa-89fd2396df07
-Fix: missing initialisation


git-svn-id: http://svn.openttd.org/trunk@26109 6aa0318a-3be1-0310-93fa-89fd2396df07
-Codechange: add guard for enterdir being valid in signal code


git-svn-id: http://svn.openttd.org/trunk@26110 6aa0318a-3be1-0310-93fa-89fd2396df07
-Fix: theoretical case where sprite table could be overread for aqueducts that start at flat land


git-svn-id: http://svn.openttd.org/trunk@26111 6aa0318a-3be1-0310-93fa-89fd2396df07
-Fix: make sure a vehicle list is always initialised


git-svn-id: http://svn.openttd.org/trunk@26112 6aa0318a-3be1-0310-93fa-89fd2396df07
-Fix: unhandled seek error, and leaking file descriptor


git-svn-id: http://svn.openttd.org/trunk@26113 6aa0318a-3be1-0310-93fa-89fd2396df07
-Fix-ish: do our best to not get bit by getenv being unsafe as hell


git-svn-id: http://svn.openttd.org/trunk@26114 6aa0318a-3be1-0310-93fa-89fd2396df07
-Fix: AfterLoadGame can throw an exception; from the old savegame load section this wouldn't be caught


git-svn-id: http://svn.openttd.org/trunk@26115 6aa0318a-3be1-0310-93fa-89fd2396df07
-Codechange: validate that the number of lines in a graph is more than 0


git-svn-id: http://svn.openttd.org/trunk@26116 6aa0318a-3be1-0310-93fa-89fd2396df07