Commit Graph

68 Commits

Author SHA1 Message Date
Peter Nelson 2fd9096070
Change: Decouple and remove landscape-dependent cargo types. (#11719)
Cargo types of default engines, industries and houses are now specified in terms of label.
2024-02-04 10:16:08 +00:00
Rubidium eaae0bb5e7 Codechange: automatic adding of _t to (u)int types, and WChar to char32_t
for i in `find src -type f|grep -v 3rdparty/fmt|grep -v 3rdparty/catch2|grep -v 3rdparty/opengl|grep -v stdafx.h`; do sed 's/uint16& /uint16 \&/g;s/int8\([ >*),;[]\)/int8_t\1/g;s/int16\([ >*),;[]\)/int16_t\1/g;s/int32\([ >*),;[]\)/int32_t\1/g;s/int64\([ >*),;[]\)/int64_t\1/g;s/ uint32(/ uint32_t(/g;s/_uint8_t/_uint8/;s/Uint8_t/Uint8/;s/ft_int64_t/ft_int64/g;s/uint64$/uint64_t/;s/WChar/char32_t/g;s/char32_t char32_t/char32_t WChar/' -i $i; done
2023-07-19 19:30:14 +02:00
frosch d9b4413bc9
Codechange: rename sound ids to make more sense. (#8701) 2021-02-20 19:01:04 +01:00
S. D. Cloudt 13cc8a0cee Cleanup: Removed SVN headers 2019-11-10 17:59:20 +00:00
Niels Martin Hansen 53f8d0b815 Codechange: Use std::vector for industry tile layouts 2019-10-19 17:16:25 +01:00
Henry Wilson 7c8e7c6b6e Codechange: Use null pointer literal instead of the NULL macro 2019-04-10 23:22:20 +02:00
Niels Martin Hansen 8859381d30 Add: Industries can produce and accept up to 16 different cargoes 2018-11-03 21:43:54 +01:00
Samu eff09c43cd Fix #4109: Add more water checks to the Oil Rig layout
Prevents Oil Rig docking tile from becoming unreachable by ships when spawning next to each other.
2018-10-25 20:09:42 +02:00
frosch 4846c7ed6b (svn r27137) -Fix (r0): Oilrig empty-tile checks were incorrect due to wrong TileIndexDiff->TileIndexDiffC conversion. 2015-02-06 21:54: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
frosch 844dc8646f (svn r22430) -Fix: COAL, RUBR, SUGR and the coalmine used windows palette colours in smallmap/legends etc.. 2011-05-06 22:10:50 +00:00
frosch 54db5d60fb (svn r22125) -Fix (r9162)[FS#4528]: The animation-ness of two goldmine tiles were swapped, causing the wheeltower to not work properly, and the bottom corner to show the wrong sprite. 2011-02-21 17:38:33 +00:00
rubidium e2e26190d5 (svn r20623) -Codechange: unify the storing of animation related information 2010-08-26 15:31:40 +00:00
rubidium af9d8824bd (svn r20398) -Codechange: move some variables of GRFFileProps into (the new) GRFFilePropsBase 2010-08-07 20:51:07 +00:00
frosch ed4f806f1d (svn r20283) -Codechange: Unify start of doygen comments. 2010-08-01 19:22:34 +00:00
rubidium 398418b8fa (svn r19812) -Codechange: give some unnamed enums a name or, in case they consisted of unrelated values use static const (u)int 2010-05-13 09:44:44 +00:00
frosch fb9b833dc4 (svn r19053) -Codechange: Add an enum for the special flags of industry tiles. (based on andythenorth' work) 2010-02-07 12:04:44 +00:00
frosch 8da21d58a9 (svn r18282) -Codechange: Remove IndustrySpec::raw_industry_cost_multiplier and use 8 * cost_multiplier instead. 2009-11-24 22:02:23 +00:00
frosch aa14dc48d0 (svn r18278) -Cleanup (r1): No need to set a cost multiplier for raw-industry-construction of banks. They have never been raw industries. 2009-11-24 18:27:58 +00:00
smatz 6c7f8fc8b4 (svn r17701) -Codechange: don't start line with a space if it's not inside comment 2009-10-04 20:51:50 +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
smatz 434693b838 (svn r17464) -Codechange: use C++0x mode when compiling with gcc >= 4.3 or icc >= 11.0 2009-09-07 21:01:24 +00:00
rubidium 7fbc33dae1 (svn r17248) -Fix: add GPL license notice where appropriate 2009-08-21 20:21:05 +00:00
rubidium 59d45a04d6 (svn r16118) -Change/cleanup: remove the hexadecimal 'in TTD the string had this ID' from 'some' strings and replace the string name with something more sensible. 2009-04-21 23:40:56 +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
rubidium 00f0bf98ee (svn r12751) -Codechange: do what has been done in r11862 in a different way so it uses less memory. 2008-04-17 11:47:22 +00:00
belugas 7cf2c83462 (svn r12041) -Codechange: Add the loader and the property for action 00 industries, prop 24, nearby station name.
No assignation yet, no real work either.
2008-02-02 03:23:26 +00:00
rubidium 26c621945d (svn r11862) -Fix [FS#1559]: when two NewGRFs 'fight' to define the same cargo it could happen that the strings are defined by one cargo and the 'action2' by another and when one assumes that both come from the same NewGRF... So store the GRF ID with the strings. To be extra sure add the same protection mechanism to industries and towns too. 2008-01-15 13:19:49 +00:00
belugas b10eea628d (svn r11534) -Feature(newgrf): Implement property 23h for Industries.
This will add a cost to the removal of an industry using the cheat magic bulldozer.
Note that the removal of regular or newgrf industries without specified removal cost will have no cost applied to.
This is a difference from original spec, where a default base cost is added.
2007-11-27 17:13:49 +00:00
glx 63b36d9330 (svn r11402) -Fix [FS#1382]: incorrect handling of industry behaviour 'must be in town with population large than 1200' 2007-11-11 00:04:52 +00:00
glx 3e8493c851 (svn r11394) -Fix: default value for input cargo multipliers is 256 even for invalid cargo. Exceptions are temperate banks and oil rigs, default value is 0 for them 2007-11-08 22:29:21 +00:00
glx 1626ff3948 (svn r11384) -Fix: second and third accepted cargo were inverted in original industry tiles 2007-11-05 01:38:49 +00:00
belugas 116de48fdf (svn r10961) -Codechange: Flag default substitutes of industry/tiles with a value that cannot be legal.
This avoids the forest of coal mine error in the futur
2007-08-22 00:52:25 +00:00
rubidium fe8e297995 (svn r10675) -Codechange: unhardcode the industry types used in several locations of the source code. 2007-07-24 19:56:43 +00:00
belugas d87359a827 (svn r10670) -Fix: Use proper initialization for grf_prop override member 2007-07-24 01:29:42 +00:00
rubidium 549893651c (svn r10604) -Fix [FS#1044] (r9866): some industries produced cargo they should not be producing, which would result in the industry offering invalid cargo to a station resulting in crashes.. 2007-07-17 08:18:57 +00:00
rubidium 79d04412b0 (svn r10508) -Codechange: allow customizable animation schemes for industries. 2007-07-11 15:03:29 +00:00
rubidium 0d68a919d9 (svn r10451) -Add: support for "prospecting" raw industries, i.e. you pay an amount of money and then it might (with a given chance) build a raw industry somewhere on the map. 2007-07-06 07:24:10 +00:00
belugas 2c38514a84 (svn r10424) -Fix : Toy shop seems to be working exactly like power stations, water tower and banks, i.e: they require cargo but do nothing with it.
So, make it an INDUSTRYLIFE_BLACK_HOLE, exactly like the above mentioned industries.
Thanks to glx who spotted, and Csaboka who confirmed it could very well be a CS bug.
2007-07-04 00:49:03 +00:00
rubidium b67cfd4825 (svn r10418) -Codechange: implement/resurrect the industry production flags. 2007-07-03 19:16:34 +00:00
rubidium 40cea6c3ef (svn r10054) -Codechange: make the industries cost modifier look more like the original one, so it's much easier to support industries that use this original format. 2007-06-07 09:20:04 +00:00
belugas f8da1b6e1a (svn r10001) -Codechange: Add support for removing dynamically allocated newgrf data 2007-05-31 15:40:36 +00:00
belugas 0cb8413a8f (svn r9976) -Codechange: Declare a writable array of specs for industry and industry tiles.
It will be initialized by the original data upon game start.
Rename some enums to be more consistent too
2007-05-29 17:41:59 +00:00
belugas 0af97d4ab2 (svn r9975) -Codechange: Adjust the industry/tile spec arrays, moving the enabled member out of GRFFileProps (end of previous commit). 2007-05-29 14:44:22 +00:00
rubidium 4726fdc0d0 (svn r9972) -Fix (r9969): silence a warning. 2007-05-29 08:20:38 +00:00
belugas 35ccad33dd (svn r9969) -Codechange: Cleanup of industries (Step-14). Remove hardcoded-run-time tile acceptance and put in corresponding tile 2007-05-29 00:15:34 +00:00
belugas f3cf7f6b2d (svn r9906) -Codechange: Add common properties for both industry and industry tiles specs 2007-05-24 01:12:00 +00:00
belugas 88042df6bb (svn r9886) -Codechange: Cleanup of industries (Step-13). Include the sounds table into the industry's spec. 2007-05-20 00:50:06 +00:00
rubidium 44ddf033ed (svn r9866) -Codechange: remove the technical one-input-cargo-creates-one-output-cargo limit in the factories, sawmills, steelmills and the ones I'm forgetting to mention right now. Use of this functionality will come later. 2007-05-17 20:19:55 +00:00
belugas 803b073c59 (svn r9704) -Documentation: Add comments on industry data macro 2007-04-21 02:42:51 +00:00