Commit Graph

113 Commits

Author SHA1 Message Date
skidd13 706dd0f86c (svn r14555) -Codechange: replace ttd_strlcat and ttd_strlcpy with strecat and strecpy where direct conversion is possible 2008-11-02 11:20:15 +00:00
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. 2008-10-28 14:42:31 +00:00
rubidium 65404674a4 (svn r14480) -Add: warning when trying to use a right-to-left language without support for it in OpenTTD. 2008-10-17 17:42:51 +00:00
rubidium c9a82ac3e7 (svn r14423) -Codechange: also do r14221 for the strings. 2008-09-30 21:18:28 +00:00
rubidium b650a86e58 (svn r14422) -Codechange: also reflect the changes of r14421 in the filenames. 2008-09-30 20:51:04 +00:00
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. 2008-09-30 20:39:50 +00:00
rubidium e635df8d53 (svn r14410) -Codechange: one can't inject a negative number of parameters, so enforce this by using a uint. 2008-09-28 13:50:11 +00:00
rubidium 6ce4fe40f7 (svn r14321) -Add: support for newgrfs printing bytes/words/dwords as hexadecimals. 2008-09-14 14:31:37 +00:00
rubidium d6bc633870 (svn r14298) -Fix [FS#2214]: "{CARGO} from unknown destination". 2008-09-12 17:16:04 +00:00
rubidium 8d449825f9 (svn r14297) -Fix: one could be trying to get the station name of a station that is outside of the pool. 2008-09-12 17:14:07 +00:00
rubidium 8f42c38039 (svn r14296) -Codechange: there is no case where an invalid waypoint index should be passed to be drawn as a string. 2008-09-12 17:11:28 +00:00
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. 2008-08-31 10:50:05 +00:00
glx 513f4c7ca7 (svn r13904) -Fix (r13715): 'cast from/to pointer to/from integer of different size' warnings 2008-07-31 22:55:12 +00:00
rubidium 3a799389eb (svn r13731) -Codechange: make a pool of the array of players. 2008-07-18 16:40:29 +00:00
rubidium d06529ef4d (svn r13719) -Codechange: rename IsValidPlayer to IsValidPlayerID in line with all other structs/classes that are in a pool. 2008-07-17 20:13:01 +00:00
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'.
2008-07-17 13:47:04 +00:00
smatz 9da745b381 (svn r13552) -Codechange: use TTD_ENDIAN comparations instead of tests if TTD_[BIG/LITTLE]_ENDIAN is defined 2008-06-17 19:38:00 +00:00
smatz 2299181c4b (svn r13537) -Fix [FS#2090](r13523): QSortT won't work this way, use Dimension instead of uint16[2] for resolutions 2008-06-16 19:38:41 +00:00
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(). 2008-06-05 20:54:52 +00:00
rubidium 9e811a2f8b (svn r13386) -Fix: global currency/units setting being overriden when loading a savegame. 2008-06-05 11:26:38 +00:00
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. 2008-05-29 15:13:28 +00:00
rubidium 8c9cc415e3 (svn r13255) -Codechange: move _opt to _settings. 2008-05-25 22:36:44 +00:00
rubidium 5fa0946c08 (svn r13242) -Codechange: remove _opt_ptr. 2008-05-25 12:57:39 +00:00
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. 2008-05-06 15:11:33 +00:00
smatz 297f99e100 (svn r12944) -Codechange: use rev.h instead of externs at many places 2008-05-04 21:53:36 +00:00
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. 2008-04-29 21:31:29 +00:00
peter1138 4f2c2656e7 (svn r12793) -Codechange: Use enum values for station types instead of mysterious hex (ln) 2008-04-19 18:03:24 +00:00
rubidium 118a680fd3 (svn r12786) -Change: remove more function from functions.h. 2008-04-19 13:04:29 +00:00
rubidium 49cfba55bb (svn r12782) -Codechange: remove some functions from functions.h and do not statically 'waste' memory when the old name array is not needed anymore. 2008-04-19 08:21:55 +00:00
rubidium 9d8fa486af (svn r12761) -Codechange: lots of minor whitespace coding style fixes around operators. 2008-04-18 04:37:06 +00:00
rubidium e9014c99b3 (svn r12665) -Codechange: make the internal speed <-> display speed conversions available to a bigger part of the code. 2008-04-12 10:00:52 +00:00
rubidium a0895d57fa (svn r12501) -Codechange: split signs.h. 2008-03-31 07:25:49 +00:00
rubidium ef2be7d0fc (svn r12490) -Codechange: rename engine.h to engine_func.h and remove unneeded inclusions of engine.h and/or replace them with engine_type.h. 2008-03-31 00:17:39 +00:00
rubidium 2edd403656 (svn r12489) -Codechange: split station.h into station_base.h and station_func.h. 2008-03-31 00:06:17 +00:00
rubidium b4dafb3036 (svn r12460) -Change: rename src/namegen.h to src/namegen_func.h so MSVC can have both files in it's treelist. 2008-03-28 09:15:08 +00:00
rubidium eeabab4555 (svn r12459) -Codechange: split news.h into news_type.h and news_func.h. 2008-03-28 08:53:36 +00:00
maedhros 97fb7fb8d9 (svn r12420) -Cleanup: Fix the indentation, improve a variable name, and add a NOT_REACHED to DeterminePluralForm. 2008-03-25 19:56:16 +00:00
maedhros 2023f59541 (svn r12417) -Fix: Add a new plural rule for Icelandic. 2008-03-25 17:39:02 +00:00
peter1138 fb8973c64a (svn r12015) -Fix [FS#1716] (Revert r11422): Patch in FS#1430 avoided instead of fixed the problem. GetStringWithArgs() discards information that SCC_GENDER_LIST needs to work. Now use pointers to retrieve GRF strings, so that GetStringPtr() will work correctly. This is advantageous as now no buffer copy is made when using all GRF strings. 2008-01-29 17:09:00 +00:00
glx 3d61a1adc5 (svn r11888) -Codechange: simplify sorting of the strings in town names dropdown 2008-01-17 02:10:26 +00:00
glx 69c18efdca (svn r11886) -Add: sort the strings in languages dropdown 2008-01-17 00:21:43 +00:00
rubidium 3ca95f2a85 (svn r11839) -Codechange: move some variables from variables.h to a more logical location. 2008-01-13 21:41:24 +00:00
rubidium dc87b05e8c (svn r11834) -Codechange: only include settings_type.h if needed. 2008-01-13 14:37:30 +00:00
rubidium d4e6a6bf57 (svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h. 2008-01-13 01:21:35 +00:00
peter1138 ab8382c0db (svn r11822) -Codechange: Replaced fixed size custom name array. Names are now attached to their object directly and there is
no limit to the amount of names.
-Fix: NewGRF engines could not be renamed.
2008-01-12 19:58:06 +00:00
rubidium ac528411df (svn r11818) -Codechange: split player.h into smaller pieces. 2008-01-12 14:10:35 +00:00
rubidium 6c954cad5f (svn r11801) -Codechange: remove some unneeded includes from some header files. 2008-01-09 21:27:39 +00:00
rubidium a3ccdcea36 (svn r11777) -Codechange: split the string header and make do not include it when it's not necessary. 2008-01-07 14:23:25 +00:00
rubidium 279bfad275 (svn r11765) -Fix: compile warning (Roujin). 2008-01-05 22:34:04 +00:00
rubidium f8f86420f8 (svn r11764) -Change: make the 'do characters exist in the current font file(s)' more robust. 2008-01-05 22:19:27 +00:00