summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2007-02-23(svn r8864) -Codechange: make ClrBitT(), SetBitT() and ToggleBitT more like ↵KUDr
CLRBIT() and so on (modify value of the first parameter instead or returning the result)
2007-02-23(svn r8863) -Fix: prefix engine_custom_sprites with _peter1138
2007-02-23(svn r8862) -Cleanup: doxygen changes, again. Mostly @files missing tags and ↵belugas
a few comments style. Some documentation addition, when i can easily supply them
2007-02-23(svn r8860) -Cleanup: some style changes, proper #endif comments, variable ↵Darkvater
initialisation, WINCE ifdef and a vsprintf to vsnprintf change.
2007-02-23(svn r8859) -Cleanup: doxygen changes. Mostly @files missing tags and a few ↵belugas
comments style.
2007-02-23(svn r8858) -Codechange: Replace magic number test with class method for ↵peter1138
determining if a cargo is valid/active.
2007-02-23(svn r8857) -Documentation: Added some doxygen @file tags, repaired others ↵celestar
(the @file tag MUST be found before any line of code, that includes preprocessor directives).
2007-02-23(svn r8856) -Fixtron
Missing */ (r8853)
2007-02-23(svn r8855) -Fixtron
Change some shift and cast mumbo jumbo for inflation calculation to something remotly comprehensible and explain what the magic number "54" means
2007-02-23(svn r8854) -Fix(r8853): Ctrl+s (save) without Ctrl does not produce desired ↵belugas
result...
2007-02-23(svn r8853) -Cleanup: doxygen changes. Correct forgotten c files to cpp ↵belugas
files with the @file tag as well as a few general comments style
2007-02-23(svn r8852) -Fix (r8735): make the dynamite tool for drive through road ↵rubidium
stops as if it were removing a normal road tile (consider the local authority and such). -Fix (r8735): remove drive through road stops on town owned roads when going bankrupt/being removed.
2007-02-23(svn r8851) -Fix [FS#643] (r8735): crash on removing town owned roads ↵rubidium
outside of the local authority.
2007-02-22(svn r8850) -Codechange: Use the cargo type's is_freight flag instead of ↵peter1138
checking the cargo type to determine if the cargo type is freight cargo type cargo type.
2007-02-22(svn r8849) -Codechange: Replace hardcoded global/climate cargo mapping ↵peter1138
tables with dynamically generated data. Change associated code to use new functions.
2007-02-22(svn r8848) -Update: WebTranslator2 update to 2007-02-22 19:57:58miham
brazilian_portuguese - 1 fixed, 49 changed by tucalipe (48), fukumori (2) bulgarian - 2 fixed by kokobongo (2) catalan - 1 fixed, 2 changed by arnaullv (3) czech - 1 fixed by Hadez (1) danish - 2 fixed, 1 changed by MiR (3) dutch - 1 fixed by habell (1) french - 1 fixed, 1 changed by Skiper (2) german - 1 fixed by Neonox (1) italian - 1 fixed by sidew (1) korean - 4 fixed by leejaeuk5 (3), darkttd (1) portuguese - 4 changed by izhirahider (4) romanian - 10 fixed by kneekoo (10) russian - 1 fixed, 42 changed by DarkFenX (43) slovenian - 1 deleted by Necrolyte (1) spanish - 1 changed by eusebio (1) ukrainian - 19 fixed, 1 deleted, 12 changed by mad (32)
2007-02-22(svn r8847) -Fixtron
There is not much point in hiding a normal 64bit multiplication in a function, so do not do it
2007-02-22(svn r8846) -Fixtron
Remove confusing superfluous parentheses
2007-02-22(svn r8845) -Fixtron
Remove pointless and out of context comment
2007-02-22(svn r8844) -Revert partly (r8820, r8806): Change AppendToGRFConfigList to ↵Darkvater
add the allocated GRFConfig to its list and not copy it.
2007-02-22(svn r8843) -Fixtron
-Fix: Off-by-one error in accessing a buffer (if you start at the second byte you have to subtract one from the size) Also avoid an unnecessary buffer copy and strlcpy() abuse NOTE: 0.5 candidate
2007-02-22(svn r8841) -Fixtron
Remove {,u}intswap() and replace them by Swap()
2007-02-22(svn r8840) -Fixtron
Remove FIFO and Stack. They have never been used and could not be used anyway because the declarations of some functions are spelled different than the definitions they should correspond to. Also remove some other unused helpers and related struct attributes.
2007-02-21(svn r8838) -Feature: Show newgrf error messages loaded in Action B in the ↵maedhros
newgrf gui window. GRFs with an error have a warning symbol shown before the name.
2007-02-21(svn r8837) -Fix [FS#626]: drive through stations did not connect to ↵rubidium
neighbouring roads (mart3p).
2007-02-21(svn r8836) [YAPF] -Fix[FS#641]: Assertion: 'IsTileDepotType(depot_tile, ↵KUDr
TRANSPORT_ROAD)' failed (Karsten) -don't tell that we found destination if the best direction was only guessed
2007-02-21(svn r8835) -Fixtron
Remove dead code
2007-02-21(svn r8834) -Fixtron
Do not pass something to a function it better could figure out by itself
2007-02-21(svn r8833) -Fixtron
-Codechange: Split MakeRoadStop() into MakeRoadStop() and MakeDriveThroughRoadStop() for more clarity and less possibilities to use it incorrect
2007-02-21(svn r8831) -Feature: If an action 7/9 leads to skipping the rest of the ↵maedhros
file, disable the newgrf if an action 8 hasn't been encountered yet.
2007-02-21(svn r8830) -Feature: Stop loading and disable the current newgrf if a fatal ↵maedhros
error message in Action B is encountered. Also be more strict on the values accepted.
2007-02-21(svn r8829) -Fixtron
Remove translations which should not be empty
2007-02-21(svn r8828) -Fixtron
-Regression (r7585): On load calculate the station rectangle for all savegames, not just savegames with at least version 27
2007-02-21(svn r8827) -Codechange: Cleanup of industry_cmd (Step-6). Implementation of ↵belugas
IndustryTileSPec, the alter ego of IndustrySpec. It offers identification of the different industry tiles in a more distinct manner, as well as regrouping scattered pieces of data across the sources. More to come
2007-02-20(svn r8826) -Codechange: Replace _cargoc's separate arrays with a regular ↵peter1138
struct array (with accessor) and implement new initialization method using cargo labels.
2007-02-20(svn r8825) -Fix: Make sure strings read from newgrf files are 0 terminated ↵maedhros
and 0 terminate them if they aren't, so we don't read beyond the end of the memory allocated for the line.
2007-02-20(svn r8824) -Fix (r8821): don't use MSVC2005 runtime library-only ↵Darkvater
_snwprintf_s function, but use 'insecure/deprecated' version and zero-terminate string ourselves. Thanks for testing glx.
2007-02-20(svn r8823) -Fix (r8821): wrapping opendir to ottd-specific function failed ↵Darkvater
on non-windows because this wrapper was only active for win32 (thx Rubidium)
2007-02-20(svn r8822) -Fixtron
Variable scope, const
2007-02-20(svn r8821) -Regression: Unable to browse directories on *nix if the ↵Darkvater
filesystem is not in UTF-8 charset and special characters are used. The string passed to opendir() which is UTF-8 was not parsed back to the filesystem format. Use a wrapper called ttd_opendir() instead of redefining opendir itself.
2007-02-20(svn r8820) -Codechange (r8807, r8806): Remove the unneeded calloc/free ↵Darkvater
allocation of GRFConfig and turn it into a simple variable (it's supposed to be data-only). Thanks Tron.
2007-02-19(svn r8818) -Codechange: remove the #ifdef _cplusplus remnants.rubidium
2007-02-19(svn r8809) -Fix (r8715): accidentally removed a part of an expression.rubidium
2007-02-19(svn r8808) -Fix [FS#631]: do not show the 'edit sign' window for spectators.rubidium
2007-02-18(svn r8807) -Feature: Add support for loading (some of) the TTDP extra ↵Darkvater
chunks mainly list of GRFIDs and TTDP version the game was saved with. GRFID list is read and active GRFs are loaded with the game if present in the data/ directory. TTDP versioning information only works for newer versions, old versions will only give rough information but it's not worth the effort to precisely figure out what bit means what where and when.
2007-02-18(svn r8806) -Codechange (r7582): Remove a duplicate append of static GRF's ↵Darkvater
when loading the game and hide the intrinsics of adding elements to the GRFConfig list by using an AppendToGRFConfigList function.
2007-02-18(svn r8805) -Codechange (r8757): DO set eol-style and keywords on new files...Darkvater
2007-02-18(svn r8802) -Fixtron
-Fix: When inserting an order for a ship while checking the distance between the new order and the order it is inserted after adhere the order types to determine the correct type of destination (i.e. station or depot) Also do a better job in determining the preceding order NOTE: 0.5 candidate
2007-02-18(svn r8800) -Fixtron
Simplify MoveGoodsToSation() under the assumption that 0 is less or equal than 0
2007-02-18(svn r8799) -Fixtron
Reduce variable scope