summaryrefslogtreecommitdiff
path: root/src/newgrf_text.cpp
AgeCommit message (Collapse)Author
2021-07-10Fix 11ab3c4: [NewGRF] Overflow when determining cargo mask for string code 9A 1ERubidium
9A 1E: Print unsigned word as name of a cargo type (translated for GRF version >= 7).
2021-06-13Codechange: convert printf DEBUG statements to fmt Debug statementsrubidium42
2021-06-10Codechange: [Network] Use std::string to get a NewGRF's namerubidium42
2021-05-27Cleanup: remove dead code; ++ on ostreambuf_iterator is a no-oprubidium42
2021-01-08Codechange: Remove min/max functions in favour of STL variants (#8502)Charles Pigott
2020-05-21Codechange: Use std::string when translating TTDP NewGRF string codes.Michael Lutz
2020-05-21Codechange: Replace custom linked list for GRF texts with STL vectors and ↵Michael Lutz
strings.
2020-05-21Codechange: Replace SmallPair with std::pair.Michael Lutz
std::pair is already the smallest possible pair, and it already handles non-POD types correctly.
2019-11-10Cleanup: Removed SVN headersS. D. Cloudt
2019-09-30Fix: GCC9's warnings about deprecated implicit assignment operatorsCharles Pigott
2019-09-29Fix: Some typos found using codespellJMcKiern
2019-04-20Add: NewGRF string codes to access PUSH/POP_COLOUR. (#7527)PeterN
2019-04-10Codechange: Use null pointer literal instead of the NULL macroHenry Wilson
2019-03-26Codechange: Removed SmallVector completelyHenry Wilson
2019-03-26Codechange: Replaced SmallVector::[Begin|End]() with std alternativesHenry Wilson
2018-10-31Doc: Lots and lots of doxymentation fixesCharles Pigott
2017-04-09(svn r27851) -Fix [FS#6555]: StringID truncation to 16 bits broke string ↵peter1138
remapping test.
2017-02-26(svn r27758) -Change: Increase the maximum number of GameScript texts to ↵frosch
64k, and NewGRF texts to 512k.
2017-02-26(svn r27756) -Codechange: Add StringTab enumfrosch
2017-02-26(svn r27755) -Codechange: Move TAB_SIZE to strings_type.h and use it ↵frosch
consistently.
2016-12-23(svn r27707) -Fix: Make the result of NewGRF's CARGO_NAME string code ↵frosch
reliably print 'Nothing', if an invalid type is provided.
2016-12-23(svn r27706) -Feature: [NewGRF] String command 9A 1E to print the name of a ↵frosch
cargo type.
2014-08-03(svn r26713) -Fix (r23027): [NewGRF] Parameters to SCC_NEWGRF_PUSH_WORD and ↵frosch
SCC_NEWGRF_UNPRINT were not skipped during drawing.
2014-04-25(svn r26509) -Codechange: replace strdup with stredup (the latter ensures ↵rubidium
the return is not NULL)
2014-04-23(svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵rubidium
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values
2014-01-12(svn r26244) -Feature: [NewGRF] Add StringCodes 9A 1B, 9A 1C and 9A 1D to ↵frosch
display amounts of cargo.
2014-01-12(svn r26243) -Cleanup: Move TTDPStringIDToOTTDStringIDMapping to newgrf.cpp, ↵frosch
it's only used there.
2014-01-12(svn r26242) -Codechange: Use GRFFile that filled the TextRefStack to ↵frosch
translate StringIDs from the TextRefStack, instead of passing stuff via global vars.
2014-01-12(svn r26241) -Codechange: Remember the GRFFile which filled the TextRefStack ↵frosch
in the TextRefStack.
2014-01-12(svn r26239) -Fix: Check that there is space left in the string parameter ↵frosch
array, before pushing NewGRF parameters to it.
2013-11-23(svn r26065) -Fix: possible dereference of NULL for texts from game scriptsrubidium
2013-11-23(svn r26057) -Fix: a number of possibly uninitialised variablesrubidium
2013-06-24(svn r25454) -Remove/Fix/Cleanup: SETX(Y) does not work at all with other ↵rubidium
than default fonts, so get rid of it
2013-01-08(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by ↵planetmaker
Eagle_rainbow)
2012-01-21(svn r23830) -Revert (r23804) [FS#4986]: while the idea was good, it causes ↵yexo
too much trouble
2012-01-15(svn r23812) -Fix [FS#4977] (r23804): custom ActionB messages were brokenyexo
2012-01-15(svn r23804) -Fix: [NewGRF] Make string code 80 more secure by not crashing ↵yexo
when it's used in strings where it's not supposed to be used
2011-11-19(svn r23269) -Codechange: rename some control/string codes/IDs to be more ↵rubidium
consistent
2011-10-29(svn r23064) -Fix (r23062): incrementing hexadecimal numbers is hard...yexo
2011-10-29(svn r23063) -Add: [NewGRF] stringscodes 9A 19 and 9A 20 to print 'short ↵yexo
volume' and 'short weight' respectively
2011-10-14(svn r23029) -Fix: [NewGRF] support for cases in strings was brokenyexo
2011-10-12(svn r23027) -Fix: in some cases NewGRF string arguments were popped twice ↵yexo
from the newgrf textstack
2011-10-01(svn r22970) -Fix [FS#4769]: strip newlines from NewGRF strings that should ↵rubidium
not have newlines, e.g. the NewGRF's name
2011-09-23(svn r22956) -Codechange: Enhance TEXTID_TO_STRINGID() with an assert_compile().frosch
2011-09-23(svn r22954) -Feature: [NewGRF] Allow Action4 to change text IDs 0x00D1 to ↵frosch
0x00E0 for feature 48.
2011-09-23(svn r22952) -Fix: properly limit the length of strings in a choice listyexo
2011-09-03(svn r22882) -Fix [FS#4758]: [NewGRF] DCxx text references via the textstack ↵frosch
are not allowed, but caused crash.
2011-08-20(svn r22780) -Fix: [NewGRF] String codes 84 and 87 print signed values.frosch
2011-08-20(svn r22779) -Add: [NewGRF] Stringcode for printing a unsinged word in power ↵frosch
units. (Hirundo)
2011-08-20(svn r22778) -Add: [NewGRF] Stringcodes for printing 0-based dates. (Hirundo)frosch