Commit Graph

73 Commits

Author SHA1 Message Date
rubidium 4e6d29351e (svn r21326) -Fix: off-by-one in case choice list construction causing case lists to fail completely 2010-11-25 23:10:35 +00:00
rubidium 19cbf9b479 (svn r21228) -Fix: some MSVC 64 bits warnings 2010-11-17 19:43:15 +00:00
rubidium a950e9a4a8 (svn r21221) -Fix (r11429): short cargo units names for some cargo types/strings are not properly mapped to the strings that we use for the default industries 2010-11-17 18:04:11 +00:00
rubidium 18f0f1d81d (svn r21216) -Feature: [NewGRF] Allow specifying a "choice list" for plurals 2010-11-16 21:03:39 +00:00
rubidium ddf71db8c2 (svn r21211) -Feature: [NewGRF] Allow specifying a "choice list" for cases and genders 2010-11-16 16:58:19 +00:00
rubidium 0f9c40244a (svn r21209) -Feature: [NewGRF] Allow setting the gender of the current string or select the case of the next substring 2010-11-16 14:00:02 +00:00
rubidium e84c52e662 (svn r21207) -Codechange: replace the magic 0x00DE constant with something less magic 2010-11-16 12:35:16 +00:00
rubidium b00858473c (svn r21206) -Document: that, and why string code 9A 02 (skip/ignore next colour code) is not implemented 2010-11-16 12:18:35 +00:00
rubidium 0f2a9877b8 (svn r21204) -Codechange: unify style of string code conversion 2010-11-16 11:50:26 +00:00
rubidium 4965c7dd2b (svn r21202) -Codechange: allow strings with embedded '\0' in GRFText. 2010-11-16 11:34:19 +00:00
rubidium a15d309721 (svn r21201) -Document: some GRFText methods/fields 2010-11-16 11:25:19 +00:00
rubidium fc75b00992 (svn r21178) -Codechange: pass the language_id to TranslateTTDPatchCodes as well 2010-11-13 19:15:26 +00:00
rubidium 399eedd884 (svn r21086) -Feature-ish: [NewGRF] String code to print the weight in format based on settings 2010-11-05 13:40:18 +00:00
rubidium a6f4769ec7 (svn r21085) -Feature-ish: [NewGRF] Implement stringcode 9A 0C (station name) 2010-11-05 13:34:39 +00:00
rubidium f368d0c449 (svn r21084) -Codechange: name a variable to cover its actual implementation better 2010-11-05 13:21:30 +00:00
frosch ed4f806f1d (svn r20283) -Codechange: Unify start of doygen comments. 2010-08-01 19:22:34 +00:00
rubidium e356cb9405 (svn r20281) -Codechange: unify case scope closure + break coding style 2010-08-01 18:53:30 +00:00
yexo d3c1be9abd (svn r20249) -Codechange: change the newgrf name/description from a char* to a GRFText* to make translations possible 2010-07-31 09:33:39 +00:00
alberth 87129fb9f5 (svn r20019) -Codechange: Apply function code style to a few small functions. 2010-06-26 14:51:27 +00:00
yexo 3c6fb88a09 (svn r20004) -Fix: [NewGRF] stringcodes 82, 83 and 84 weren't properly converted to openttd codes so they didn't work 2010-06-21 16:49:54 +00:00
yexo 705955b1e6 (svn r19570) -Add: [NewGRF] support for extended text code 0x9A 11, print qword 2010-04-06 23:45:10 +00:00
yexo faf5e19aae (svn r19569) -Fix: possible buffer underflow in newgrf string code 2010-04-06 21:16:36 +00:00
frosch c049bf3f38 (svn r19497) -Fix: [NewGRF] Bytes and words get sign-extended for temporary/persistent storage. (Spotted by yexo) 2010-03-21 11:05:39 +00:00
yexo 4377b5fd44 (svn r19254) -Codechange: simplify newgrf text code by introducing a few helper functions 2010-02-25 20:00:11 +00:00
alberth e0393a3de1 (svn r18492) -Doc: A few Doxygen reference fixes (NewsSubtype reported by Eddi), and a typo fix. 2009-12-13 21:12:36 +00:00
rubidium 485b5a9c2f (svn r18045) -Fix: GCC 4.5@HEAD not compiling OpenTTD anymore because of a "non-placement deallocation function [is] selected for placement delete", or in other words delete(void *, size_t) is 'magic'.
We implemented these delete(void *, size_t) operator functions because MSVC warned that "no matching operator delete found; memory will not be freed if initialization throws an exception" for new(size_t, size_t).
This disables MSVC warning about this because we do not use exceptions in the (constructors that use the) overridden allocation functions, as such they will never be called; delete(void *) remains necessary though.
2009-11-11 21:15:58 +00:00
rubidium ac25ba62d2 (svn r18041) -Codechange: some coding style 2009-11-11 20:43:06 +00:00
frosch 60188f496d (svn r17802) -Feature(ette) [FS#1862]: [NewGRF] Textstack support for CB 37. 2009-10-18 15:36:30 +00:00
rubidium a8c80a5afc (svn r17585) -Fix [FS#3214]: also do the StringID conversion for StringIDs that are pushed on the (NewGRF string) stack 2009-09-20 10:22:27 +00:00
rubidium 47bd3ee4ba (svn r17584) -Codechange: split the NewGRF StringID mapping in a 'global' part and a part that's for NewGRF strings 2009-09-20 10:21:00 +00:00
rubidium e8ddf001c8 (svn r17570) -Fix: a number of Doxygen warnings about missing parameters, which were sometimes missing and sometimes just typos 2009-09-19 09:51:14 +00:00
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 2009-08-21 20:21:05 +00:00
frosch 0d782b0f96 (svn r16498) -Codechange: Remove hardly used HASBITS. 2009-06-01 15:01:54 +00:00
smatz c03ce4b1c7 (svn r16492) -Remove: support for gcc2. It hasn't been able to compile OTTD for months. All attempts to do another workaround failed. 2009-06-01 11:49:46 +00:00
peter1138 b37fda664c (svn r16374) -Fix (r11622): Valid UTF-8 sequences between 0x20 and 0xFF should be allowed as is instead of being treated as control codes. 2009-05-22 12:05:28 +00:00
rubidium b25a4f8231 (svn r15718) -Cleanup: apply some comment coding style on the rest of the sources too 2009-03-15 00:32:18 +00:00
rubidium eb0d43aadd (svn r15696) -Codechange: move the NewGRF language ID into the language file instead of maintaining a table in the code. 2009-03-13 00:30:26 +00:00
smatz 0d3f5e6e74 (svn r15299) -Cleanup: remove many redundant includes 2009-01-31 20:16:06 +00:00
rubidium 11da45ee55 (svn r14949) -Cleanup: pointer coding style 2009-01-10 00:31:47 +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 9648bf3019 (svn r14087) -Fix [FS#2228]: flawed parsing of words (as in 2 bytes) in GRF strings due to sign extension (minime) 2008-08-16 21:48:28 +00:00
rubidium d1073ba574 (svn r14057) -Fix: NewGRF text stack's "push word" didn't move the data around properly (minime) 2008-08-12 22:12:14 +00:00
rubidium 6f15d34fe5 (svn r12495) -Codechange: reduce the dependency on newgrf_station.h (especially because newgrf_station.h includes a lot of stuff). 2008-03-31 06:42:26 +00:00
rubidium 4a1035ab95 (svn r12488) -Codechange: split order.h into order_base.h and order_func.h. 2008-03-30 23:24:18 +00:00
peter1138 9ccce57438 (svn r12317) -Fix [FS#1815]: Map string IDs that are embedded from other strings. 2008-02-29 08:48:01 +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
peter1138 eeeeeb9336 (svn r11981) -Fix [FS#1698]: Use unicode glyph mapping to fix up missing/shuffled sprites in original data files instead of shuffling or skipping
sprites directly. Some required glyphs were not loaded.
-Fix: Large capital U with grave (Ù) along with some other glyphs are broken in the original data files, so do no display them.
2008-01-25 13:48:39 +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
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 38115acf5a (svn r11776) -Codechange: more header splittings to reduce the dependencies. 2008-01-07 14:02:26 +00:00