Commit Graph

21041 Commits

Author SHA1 Message Date
rubidium 945fccc706 (svn r26120) -Fix: [Script] Replace simple check with precondition check, after that simple check was documented as a precondition 2013-11-26 12:48:56 +00:00
rubidium 3b83a195ca (svn r26119) -Fix: ResolveCompanyID on an already resolved CompanyID 2013-11-26 12:46:21 +00:00
rubidium b12205697b (svn r26118) -Fix-ish?: comparing the old Direction to the possibly new state containing a TrackDir... well comparing apples and pears. Occasionally they would be the same and occasionally not; at least without any logic behind it.
Since the occasions that the false branch was taken never resulted in a bug report, I highly doubt that removing it completely affects anything... except the visual speed of cornering in a numer of corners (<50%) and visual speed in an old style road stop.
2013-11-26 12:04:16 +00:00
rubidium f669101560 (svn r26117) -Cleanup: unneeded NULL check 2013-11-26 10:00:15 +00:00
rubidium 04e97a0bec (svn r26116) -Codechange: validate that the number of lines in a graph is more than 0 2013-11-25 22:32:32 +00:00
rubidium 77e5b1e3b2 (svn r26115) -Fix: AfterLoadGame can throw an exception; from the old savegame load section this wouldn't be caught 2013-11-25 22:22:32 +00:00
rubidium d2ffba07bb (svn r26114) -Fix-ish: do our best to not get bit by getenv being unsafe as hell 2013-11-25 21:50:54 +00:00
rubidium 43f76dcabb (svn r26113) -Fix: unhandled seek error, and leaking file descriptor 2013-11-25 16:42:35 +00:00
rubidium ffb9279479 (svn r26112) -Fix: make sure a vehicle list is always initialised 2013-11-25 16:36:11 +00:00
rubidium b53da6a6f5 (svn r26111) -Fix: theoretical case where sprite table could be overread for aqueducts that start at flat land 2013-11-25 16:26:50 +00:00
rubidium c2ee87c1a9 (svn r26110) -Codechange: add guard for enterdir being valid in signal code 2013-11-25 16:22:29 +00:00
rubidium 00264cc708 (svn r26109) -Fix: missing initialisation 2013-11-25 14:34:09 +00:00
rubidium defda16eb6 (svn r26108) -Codechange: some coding style (whitespace) 2013-11-25 14:30:22 +00:00
rubidium 6996b441d9 (svn r26107) -Codechange/cleanup: remove some coding bloat and simplify the driver factory instatiations 2013-11-25 14:26:46 +00:00
rubidium a399fc667c (svn r26106) -Codechange: document fall through explicitly 2013-11-25 13:28:08 +00:00
rubidium 4b8d9aad5b (svn r26105) -Codechange: add a lot of assertions to track/road functions that might eventually lead to become indices into tables 2013-11-25 13:16:06 +00:00
rubidium c143ca729a (svn r26104) -Fix: do not attempt to do stuff with an invalid direction, especially using it as index into a table 2013-11-25 13:13:35 +00:00
rubidium f817b06c18 (svn r26103) -Fix: prevent odd overflows due to integer promotion 2013-11-25 13:06:33 +00:00
rubidium e106e54f9f (svn r26102) -Fix: m_veh is not NULL by definition when IsRoadTT is true 2013-11-25 11:11:56 +00:00
rubidium 18beaac571 (svn r26101) -Fix: NULL pointer dereference when one can't allocate an order list but wants to make implicit orders 2013-11-25 11:08:21 +00:00
rubidium 573f6dcd34 (svn r26100) -Fix: possible buffer overflow in console handling of aliases 2013-11-25 10:13:59 +00:00
rubidium 2009da4f7d (svn r26099) -Codechange: make NewGRF scanner management slightly easier 2013-11-25 09:22:56 +00:00
rubidium 43edd2409e (svn r26098) -Fix: close the log file when OpenTTD was forked and finally closed 2013-11-25 09:20:35 +00:00
rubidium ee0aa389a8 (svn r26097) -Fix: another minor memory leak (when pressing cancel in the bootstrap window) 2013-11-25 09:12:49 +00:00
rubidium 0460b78515 (svn r26093) -Fix (r26092): compilation error 2013-11-24 19:53:35 +00:00
rubidium 168fa4129d (svn r26092) -Fix [FS#5818]: prevent scripts from crashing OpenTTD when they send text with command codes to user editable texts such as sign and station names 2013-11-24 19:46:16 +00:00
rubidium 4de2871fc0 (svn r26091) -Fix (r26089): double frees... woospie 2013-11-24 16:21:19 +00:00
rubidium c54a70cce8 (svn r26090) -Fix: leaking of file descriptor when reading strings for game texts 2013-11-24 15:25:41 +00:00
rubidium 0ac9ed0b6b (svn r26089) -Fix: a number of minor memory leaks 2013-11-24 15:21:38 +00:00
rubidium 2fc10b7e04 (svn r26088) -Fix (r26086): Windows compilation 2013-11-24 15:17:53 +00:00
rubidium 3eecd246eb (svn r26087) -Fix: file descriptor leak when finding a corrupt tar 2013-11-24 15:02:05 +00:00
rubidium 83eeba28b7 (svn r26086) -Codechange: use AutoDeleteSmallVector instead std::list for dropdowns 2013-11-24 14:46:26 +00:00
frosch db894b0b3f (svn r26085) -Codechange: Pass ResolverObjects as reference instead of pointer since they are never NULL. 2013-11-24 14:41:19 +00:00
rubidium 45a5aba8d5 (svn r26084) -Fix: don't allow executing the palette toggling code when it's not editable 2013-11-24 14:34:33 +00:00
rubidium 58c356e935 (svn r26083) -Codechange: pass the CommandContainer for the station joiner around using a reference instead of by-value 2013-11-24 14:29:32 +00:00
rubidium b75e60124d (svn r26082) -Fix [FS#5816] (r26077): tar files with more than one file in the root directory would not be read properly (zydeco) 2013-11-24 13:00:06 +00:00
rubidium 6fb28d8719 (svn r26081) -Fix [FS#5815]: memset with virtual functions doesn't quite work. Upon further review CompanyProperties doesn't need to be virtual in the current code base 2013-11-24 09:52:35 +00:00
rubidium a8e8f606d8 (svn r26080) -Fix: possible out of bounds array access 2013-11-24 09:30:30 +00:00
rubidium 5e2d22da79 (svn r26077) -Codechange: handle strings like strings when scanning a tar instead of merely blobs of memory 2013-11-23 21:42:45 +00:00
rubidium 5049e938f5 (svn r26076) -Codechange: upgrade some C-style named structs to C++-style named structs 2013-11-23 21:31:00 +00:00
translators 2f51639af8 (svn r26074) -Update from WebTranslator v3.0:
afrikaans - 3 changes by mulderpf
2013-11-23 18:45:10 +00:00
rubidium d336bf65df (svn r26073) -Cleanup: unneeded check against NULL 2013-11-23 18:13:46 +00:00
rubidium be6b64f4e6 (svn r26072) -Cleanup: mark some unreachable default cases by NOT_REACHED() 2013-11-23 18:13:30 +00:00
rubidium 729d64d8d9 (svn r26071) -Fix: always initialise GRFFileProps 2013-11-23 18:11:22 +00:00
rubidium 1b9e32664f (svn r26070) -Fix: prevent extremely huge size for data (1+GiB) 2013-11-23 18:11:01 +00:00
rubidium cf130ce9d8 (svn r26069) -Fix: missing break in NewGRF object handling 2013-11-23 18:10:06 +00:00
rubidium 9e216a688f (svn r26068) -Fix: unneeded NULL check 2013-11-23 18:08:48 +00:00
rubidium c035a9531b (svn r26067) -Fix: possible NULL dereference when getting NewGRF version 2013-11-23 18:08:15 +00:00
rubidium d18852170b (svn r26066) -Fix: possible NULL dereference when resolving industry scope 2013-11-23 18:07:11 +00:00
rubidium c29f18f357 (svn r26065) -Fix: possible dereference of NULL for texts from game scripts 2013-11-23 18:06:27 +00:00