Commit Graph

94 Commits (894d32eccfa1c5cf84fb59eed43fdb1b2ba01f7d)

Author SHA1 Message Date
rubidium 27644093c2 (svn r22970) -Fix [FS#4769]: strip newlines from NewGRF strings that should not have newlines, e.g. the NewGRF's name 13 years ago
frosch a44a7e02c6 (svn r22956) -Codechange: Enhance TEXTID_TO_STRINGID() with an assert_compile(). 13 years ago
frosch e7387f21af (svn r22954) -Feature: [NewGRF] Allow Action4 to change text IDs 0x00D1 to 0x00E0 for feature 48. 13 years ago
yexo 04013f7540 (svn r22952) -Fix: properly limit the length of strings in a choice list 13 years ago
frosch fdf6b8daa6 (svn r22882) -Fix [FS#4758]: [NewGRF] DCxx text references via the textstack are not allowed, but caused crash. 13 years ago
frosch a3a8486aff (svn r22780) -Fix: [NewGRF] String codes 84 and 87 print signed values. 13 years ago
frosch 37ef2d70ad (svn r22779) -Add: [NewGRF] Stringcode for printing a unsinged word in power units. (Hirundo) 13 years ago
frosch a5b594f85d (svn r22778) -Add: [NewGRF] Stringcodes for printing 0-based dates. (Hirundo) 13 years ago
frosch a85719d340 (svn r22777) -Fix-ish: [NewGRF] Stringcode 9A 01 is signed, and 9A 0B is kind of unsigned. But since both were already casted to the right types later, this makes actually no difference. 13 years ago
frosch 701a865391 (svn r22776) -Codechange: Unify the naming of NewGRF string codes; always include the size of the parameter on the stack. (based on patch by Hirundo) 13 years ago
frosch ffbfd6de88 (svn r22775) -Fix: [NewGRF] Stringcodes 82 and 83 are the same as the date codes in old OpenTTD. (Hirundo) 13 years ago
frosch c457737b23 (svn r22774) -Fix: [NewGRF] String codes for dates should use unsigned words, like old OpenTTD did before it learned dates before 1920. (Hirundo) 13 years ago
rubidium 49de245564 (svn r22735) -Fix [FS#4718]: triggering NOT_REACHED when playing with a NewGRF that supplies genders/cases for a language that you removed from your installation 13 years ago
frosch df02515cf1 (svn r22630) -Cleanup: Remove SwitchToNormalRefStack() and SwitchToErrorRefStack(). 13 years ago
frosch 600c6c0f2e (svn r22628) -Codechange: Allow passing the textref stack values to use to StartTextRefStackUsage() instead of always using the temporary NewGRF registers. 13 years ago
frosch e7971ab5df (svn r22627) -Codechange: Rename PrepareTextRefStackUsage() to StartTextRefStackUsage() to make it more obvious that you must call StopTextRefStackUsage() at some point. Also extent the documentation. 13 years ago
terkhen 3d96adb03f (svn r22564) -Codechange: Rename Get and Store persistent storage functions to GetValue and StoreValue. 13 years ago
yexo 024869f33c (svn r21885) -Fix [FS#4422]: NewGRF string codes 0x80 and 0x81 were broken since the typechecking of string parameters 14 years ago
yexo 70fe377930 (svn r21435) -Fix: NewGRF strings that referenced a value that was set by a string command later in the string failed 14 years ago
yexo a2f8d89444 (svn r21433) -Fix: [NewGRF] a newgrf with incomplete string codes at the end of a string could cause invalid memory reads 14 years ago
rubidium 0e59d09ada (svn r21327) -Fix: cases are always "off-by-one" w.r.t. to the case table as there is an implicit default case with index 0 14 years ago
rubidium 6e425d3e72 (svn r21326) -Fix: off-by-one in case choice list construction causing case lists to fail completely 14 years ago
rubidium 4958bf44d9 (svn r21228) -Fix: some MSVC 64 bits warnings 14 years ago
rubidium 85791c4783 (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 14 years ago
rubidium 3552be9616 (svn r21216) -Feature: [NewGRF] Allow specifying a "choice list" for plurals 14 years ago
rubidium 6b0ee92bc9 (svn r21211) -Feature: [NewGRF] Allow specifying a "choice list" for cases and genders 14 years ago
rubidium 17dd6099d9 (svn r21209) -Feature: [NewGRF] Allow setting the gender of the current string or select the case of the next substring 14 years ago
rubidium 3c09b725d6 (svn r21207) -Codechange: replace the magic 0x00DE constant with something less magic 14 years ago
rubidium e090d8acad (svn r21206) -Document: that, and why string code 9A 02 (skip/ignore next colour code) is not implemented 14 years ago
rubidium f79d7f4c93 (svn r21204) -Codechange: unify style of string code conversion 14 years ago
rubidium fca95882cb (svn r21202) -Codechange: allow strings with embedded '\0' in GRFText. 14 years ago
rubidium 83d1edc2a7 (svn r21201) -Document: some GRFText methods/fields 14 years ago
rubidium 2a29b99681 (svn r21178) -Codechange: pass the language_id to TranslateTTDPatchCodes as well 14 years ago
rubidium 77c1838b3d (svn r21086) -Feature-ish: [NewGRF] String code to print the weight in format based on settings 14 years ago
rubidium 16a2f22741 (svn r21085) -Feature-ish: [NewGRF] Implement stringcode 9A 0C (station name) 14 years ago
rubidium 6a82d9f508 (svn r21084) -Codechange: name a variable to cover its actual implementation better 14 years ago
frosch 5b86c79fce (svn r20283) -Codechange: Unify start of doygen comments. 14 years ago
rubidium 8c85b4ce3d (svn r20281) -Codechange: unify case scope closure + break coding style 14 years ago
yexo 6117b0abc7 (svn r20249) -Codechange: change the newgrf name/description from a char* to a GRFText* to make translations possible 14 years ago
alberth a25db128cc (svn r20019) -Codechange: Apply function code style to a few small functions. 14 years ago
yexo eb763bf537 (svn r20004) -Fix: [NewGRF] stringcodes 82, 83 and 84 weren't properly converted to openttd codes so they didn't work 14 years ago
yexo 5d37ff11ba (svn r19570) -Add: [NewGRF] support for extended text code 0x9A 11, print qword 14 years ago
yexo 043ff01b4a (svn r19569) -Fix: possible buffer underflow in newgrf string code 14 years ago
frosch d006eff7a9 (svn r19497) -Fix: [NewGRF] Bytes and words get sign-extended for temporary/persistent storage. (Spotted by yexo) 14 years ago
yexo d60fb0640b (svn r19254) -Codechange: simplify newgrf text code by introducing a few helper functions 15 years ago
alberth f7e40c76e4 (svn r18492) -Doc: A few Doxygen reference fixes (NewsSubtype reported by Eddi), and a typo fix. 15 years ago
rubidium eeb6cf766b (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.
15 years ago
rubidium 407c541c82 (svn r18041) -Codechange: some coding style 15 years ago
frosch c1e005ac88 (svn r17802) -Feature(ette) [FS#1862]: [NewGRF] Textstack support for CB 37. 15 years ago
rubidium 73c99b3b8b (svn r17585) -Fix [FS#3214]: also do the StringID conversion for StringIDs that are pushed on the (NewGRF string) stack 15 years ago