Commit Graph

137 Commits (814f153b5a98e0030cbd221e6a89e083ce62bb1d)

Author SHA1 Message Date
rubidium 90fe46123a (svn r16188) -Fix [FS#2874] (r16124): printing the first 4 bytes worth of a 8 byte integer causes some unwanted side effects when the system is not little-endian. 15 years ago
rubidium 802d31aab6 (svn r16144) -Fix (r16129): setting the custom digit grouping separator required to restart OpenTTD to take effect. Now also support non 1 ASCII character custom grouping separators. 15 years ago
rubidium ff05dc8446 (svn r16129) -Feature-ish: configurable digit group separator per language with user override. 15 years ago
rubidium 8bf251f3ab (svn r16124) -Codechange: unify the three number drawing methods 15 years ago
rubidium 59d45a04d6 (svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible. 15 years ago
smatz 1eeb1d6cee (svn r15965) -Change: use recent Czech language for plural form (it has been official for years anyway) 15 years ago
smatz 38056dabdf (svn r15740) -Codechange: make code in namegen.cpp ~50% faster, apply coding style and add comments 16 years ago
rubidium b25a4f8231 (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 16 years ago
rubidium eb0d43aadd (svn r15696) -Codechange: move the NewGRF language ID into the language file instead of maintaining a table in the code. 16 years ago
rubidium 85c0276d0e (svn r15557) -Fix: the font width cache was not updated when changing fonts causing the font spacing to be off when changing fonts in-game (auto font detection). 16 years ago
rubidium 53caa6cb21 (svn r15474) -Cleanup: remove some (long) unused strings. 16 years ago
rubidium c0a8d09ca7 (svn r15428) -Codechange: consistently use colour instead of having both color and colour. 16 years ago
frosch de9a6fc90b (svn r15308) -Codechange: Deduplicate km-ish/h -> mph conversions. 16 years ago
smatz 0d3f5e6e74 (svn r15299) -Cleanup: remove many redundant includes 16 years ago
smatz 4a53ba1886 (svn r15105) -Fix (r15104): signed/unsigned warning 16 years ago
rubidium b1a33a494f (svn r15104) -Codechange: unify the resolving of the xyz kbytes/megabytes strings. 16 years ago
glx c7959ce2a9 (svn r14840) -Cleanup: remove duplicate includes 16 years ago
smatz 7368c740a6 (svn r14828) -Codechange: move most of save/load-specific code to separate files 16 years ago
rubidium 099022224f (svn r14810) -Codechange: use the proper style for global variables. 16 years ago
rubidium aff7feb767 (svn r14791) -Add: the ability to make ISO dates with the string system (PhilSophus) 16 years ago
rubidium 5466d8e959 (svn r14623) -Codechange: a sprinkle of coding style. 16 years ago
rubidium fea78fbfbb (svn r14618) -Feature: when the chosen language isn't supported by the current font, try to find a font that does and use that instead. Thanks to glx/michi_cc for the Windows implementation. 16 years ago
rubidium 6878b181c7 (svn r14617) -Change: unduplicate the languagepack(header). 16 years ago
rubidium a1853ea27c (svn r14598) -Feature: Action0Industries property 24 (industry suuplies default name for nearby station). 16 years ago
skidd13 706dd0f86c (svn r14555) -Codechange: replace ttd_strlcat and ttd_strlcpy with strecat and strecpy where direct conversion is possible 16 years ago
rubidium 0d254e8914 (svn r14540) -Codechange: introduce [v]seprintf which are like [v]snprintf but do return the number of characters written instead of the number of characters that would be written; as size_t is unsigned substraction can cause integer underflows quite quickly. 16 years ago
rubidium 65404674a4 (svn r14480) -Add: warning when trying to use a right-to-left language without support for it in OpenTTD. 16 years ago
rubidium c9a82ac3e7 (svn r14423) -Codechange: also do r14221 for the strings. 16 years ago
rubidium b650a86e58 (svn r14422) -Codechange: also reflect the changes of r14421 in the filenames. 16 years ago
rubidium 3b798599b6 (svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with. 16 years ago
rubidium e635df8d53 (svn r14410) -Codechange: one can't inject a negative number of parameters, so enforce this by using a uint. 16 years ago
rubidium 6ce4fe40f7 (svn r14321) -Add: support for newgrfs printing bytes/words/dwords as hexadecimals. 16 years ago
rubidium d6bc633870 (svn r14298) -Fix [FS#2214]: "{CARGO} from unknown destination". 16 years ago
rubidium 8d449825f9 (svn r14297) -Fix: one could be trying to get the station name of a station that is outside of the pool. 16 years ago
rubidium 8f42c38039 (svn r14296) -Codechange: there is no case where an invalid waypoint index should be passed to be drawn as a string. 16 years ago
rubidium ea1f180a55 (svn r14199) -Codechange: split fileio.h into fileio_type.h and fileio_func.h so not everything that includes saveload.h needs to include everything else too. 16 years ago
glx 513f4c7ca7 (svn r13904) -Fix (r13715): 'cast from/to pointer to/from integer of different size' warnings 16 years ago
rubidium 3a799389eb (svn r13731) -Codechange: make a pool of the array of players. 16 years ago
rubidium d06529ef4d (svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool. 16 years ago
rubidium ab234cf90c (svn r13715) -Fix [FS#2129]: C-like strings had to be rebound each time they were printed, otherwise the text could change due to the few number of slots that could be used to bind.
-Codechange: remove all BindCString and related functions and replace it by RAW_STRING which prints the C-string raw pointer that is on the 'print stack'.
16 years ago
smatz 9da745b381 (svn r13552) -Codechange: use TTD_ENDIAN comparations instead of tests if TTD_[BIG/LITTLE]_ENDIAN is defined 16 years ago
smatz 2299181c4b (svn r13537) -Fix [FS#2090](r13523): QSortT won't work this way, use Dimension instead of uint16[2] for resolutions 16 years ago
glx ee256e770a (svn r13390) -Codechange: introduce usererror() for fatal but not openttd related errors. Now all error() will 'crash' openttd after showing the message in win32 releases (MSVC), creating a crash.log and crash.dmp (like the '!' hack used before). On the other hand, usererror() will just close the game. So use error() only when it can be helpful to debugging, else use usererror(). 16 years ago
rubidium 9e811a2f8b (svn r13386) -Fix: global currency/units setting being overriden when loading a savegame. 16 years ago
rubidium 923e21129c (svn r13325) -Codechange: split the client-side only settings from the settings stored in the savegame so there is no need to have a duplicate copy of it for new games. 16 years ago
rubidium 8c9cc415e3 (svn r13255) -Codechange: move _opt to _settings. 16 years ago
rubidium 5fa0946c08 (svn r13242) -Codechange: remove _opt_ptr. 16 years ago
rubidium d03994098b (svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description. 16 years ago
smatz 297f99e100 (svn r12944) -Codechange: use rev.h instead of externs at many places 16 years ago
peter1138 a00371c8db (svn r12924) -Feature: Introducing the so called 'engine pool' which primarily removes the fixed engine type limits and also happens to allow (with the patch option 'dynamic_engines') multiple NewGRF vehicle sets to coexist. 16 years ago