frosch
48bd683010
(svn r26715) [1.4] -Backport from trunk:
...
- Fix: [NewGRF] Parameters to SCC_NEWGRF_PUSH_WORD and SCC_NEWGRF_UNPRINT were not skipped during drawing (r26713)
- Fix: [OSX] Compilation fails with some lzo2 versions, if __LP64__ is defined to 0 instead of checking whether it is defined [FS#6069] (r26709)
- Codechange: Use awk instead of trying to convince cpp to preprocess nfo files (r26708)
- Fix: Wrong breakdown sound was played for ships [FS#6015] (r26706)
2014-08-03 14:06:04 +00:00
frosch
e9c22ef16f
(svn r26244) -Feature: [NewGRF] Add StringCodes 9A 1B, 9A 1C and 9A 1D to display amounts of cargo.
2014-01-12 18:01:33 +00:00
frosch
00e7ceeca4
(svn r26243) -Cleanup: Move TTDPStringIDToOTTDStringIDMapping to newgrf.cpp, it's only used there.
2014-01-12 18:01:16 +00:00
frosch
4f419b8f84
(svn r26242) -Codechange: Use GRFFile that filled the TextRefStack to translate StringIDs from the TextRefStack, instead of passing stuff via global vars.
2014-01-12 18:00:55 +00:00
frosch
ba1779b978
(svn r26241) -Codechange: Remember the GRFFile which filled the TextRefStack in the TextRefStack.
2014-01-12 18:00:39 +00:00
frosch
477c15383d
(svn r26239) -Fix: Check that there is space left in the string parameter array, before pushing NewGRF parameters to it.
2014-01-12 18:00:02 +00:00
rubidium
c29f18f357
(svn r26065) -Fix: possible dereference of NULL for texts from game scripts
2013-11-23 18:06:27 +00:00
rubidium
b3e93d6520
(svn r26057) -Fix: a number of possibly uninitialised variables
2013-11-23 13:12:19 +00:00
rubidium
7c0f34130c
(svn r25454) -Remove/Fix/Cleanup: SETX(Y) does not work at all with other than default fonts, so get rid of it
2013-06-24 18:39:19 +00:00
planetmaker
c24374f99c
(svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow)
2013-01-08 22:46:42 +00:00
yexo
f917ac0a0f
(svn r23830) -Revert (r23804) [FS#4986]: while the idea was good, it causes too much trouble
2012-01-21 13:57:24 +00:00
yexo
fab78a7bf2
(svn r23812) -Fix [FS#4977] (r23804): custom ActionB messages were broken
2012-01-15 19:29:49 +00:00
yexo
15292fa080
(svn r23804) -Fix: [NewGRF] Make string code 80 more secure by not crashing when it's used in strings where it's not supposed to be used
2012-01-15 13:17:02 +00:00
rubidium
b8866be093
(svn r23269) -Codechange: rename some control/string codes/IDs to be more consistent
2011-11-19 22:15:44 +00:00
yexo
bd6d490987
(svn r23064) -Fix (r23062): incrementing hexadecimal numbers is hard...
2011-10-29 21:00:11 +00:00
yexo
307ca24427
(svn r23063) -Add: [NewGRF] stringscodes 9A 19 and 9A 20 to print 'short volume' and 'short weight' respectively
2011-10-29 20:56:58 +00:00
yexo
47aaf41d40
(svn r23029) -Fix: [NewGRF] support for cases in strings was broken
2011-10-14 16:51:30 +00:00
yexo
bac8ce6b41
(svn r23027) -Fix: in some cases NewGRF string arguments were popped twice from the newgrf textstack
2011-10-12 19:25:52 +00:00
rubidium
7de22e25da
(svn r22970) -Fix [FS#4769]: strip newlines from NewGRF strings that should not have newlines, e.g. the NewGRF's name
2011-10-01 20:31:21 +00:00
frosch
514fa060a2
(svn r22956) -Codechange: Enhance TEXTID_TO_STRINGID() with an assert_compile().
2011-09-23 19:27:08 +00:00
frosch
f65a1bd847
(svn r22954) -Feature: [NewGRF] Allow Action4 to change text IDs 0x00D1 to 0x00E0 for feature 48.
2011-09-23 18:40:54 +00:00
yexo
babe53351e
(svn r22952) -Fix: properly limit the length of strings in a choice list
2011-09-23 12:26:25 +00:00
frosch
0dca1941ad
(svn r22882) -Fix [FS#4758]: [NewGRF] DCxx text references via the textstack are not allowed, but caused crash.
2011-09-03 16:10:42 +00:00
frosch
aefee3d375
(svn r22780) -Fix: [NewGRF] String codes 84 and 87 print signed values.
2011-08-20 23:16:49 +00:00
frosch
3edfd1c9d2
(svn r22779) -Add: [NewGRF] Stringcode for printing a unsinged word in power units. (Hirundo)
2011-08-20 23:07:37 +00:00
frosch
26530063f1
(svn r22778) -Add: [NewGRF] Stringcodes for printing 0-based dates. (Hirundo)
2011-08-20 22:35:11 +00:00
frosch
cc89bec4a2
(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.
2011-08-20 22:14:27 +00:00
frosch
8d3d7b4e01
(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)
2011-08-20 22:06:38 +00:00
frosch
7394bcb813
(svn r22775) -Fix: [NewGRF] Stringcodes 82 and 83 are the same as the date codes in old OpenTTD. (Hirundo)
2011-08-20 21:42:05 +00:00
frosch
ca00f98d51
(svn r22774) -Fix: [NewGRF] String codes for dates should use unsigned words, like old OpenTTD did before it learned dates before 1920. (Hirundo)
2011-08-20 21:32:34 +00:00
rubidium
14fae95134
(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
2011-08-12 18:14:15 +00:00
frosch
5ea8b07e05
(svn r22630) -Cleanup: Remove SwitchToNormalRefStack() and SwitchToErrorRefStack().
2011-07-03 14:33:17 +00:00
frosch
2158f4f1bf
(svn r22628) -Codechange: Allow passing the textref stack values to use to StartTextRefStackUsage() instead of always using the temporary NewGRF registers.
2011-07-03 13:53:42 +00:00
frosch
f93c8ce5aa
(svn r22627) -Codechange: Rename PrepareTextRefStackUsage() to StartTextRefStackUsage() to make it more obvious that you must call StopTextRefStackUsage() at some point. Also extent the documentation.
2011-07-03 13:49:29 +00:00
terkhen
0749c65d74
(svn r22564) -Codechange: Rename Get and Store persistent storage functions to GetValue and StoreValue.
2011-06-12 20:40:21 +00:00
yexo
0cdb1c78cd
(svn r21885) -Fix [FS#4422]: NewGRF string codes 0x80 and 0x81 were broken since the typechecking of string parameters
2011-01-21 23:10:02 +00:00
yexo
ac0e83a7e2
(svn r21435) -Fix: NewGRF strings that referenced a value that was set by a string command later in the string failed
2010-12-08 13:44:01 +00:00
yexo
5c181fe556
(svn r21433) -Fix: [NewGRF] a newgrf with incomplete string codes at the end of a string could cause invalid memory reads
2010-12-07 22:34:30 +00:00
rubidium
fad75f5d5a
(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
2010-11-25 23:14:25 +00:00
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