summaryrefslogtreecommitdiff
path: root/src/newgrf.cpp
AgeCommit message (Collapse)Author
2018-06-15Codechange: Address some MSVC compiler warningsNiels Martin Hansen
2018-05-21Change: Add CargoTypes type for cargo masks. (#6790)PeterN
2018-04-16Codechange #6729: mute bogus GCC 7 warning (#6733)Patric Stout
We do a memset of (byte - byte), which strictly seen ranges from -254 .. 255, for which GCC warns. But just before this memset is an if() which says the first byte has to be bigger than the second. So this is a bogus warning.
2018-03-11(svn r27989) -Fix (r27985): VA2 optimisation failed in various special cases:frosch
- nvar=0 is meant to return the calculated result. - Missing references resolve to NULL and got identified with the default result. - Missing 'break' broke overlapping cases. - Splitting into non-overlapping cases could result in more than 256 cases.
2018-03-11(svn r27985) -Codechange: Convert VA2 switches into ones with ↵frosch
non-overlapping ranges, sort them and resolve them using binary search. Speedup sprite resolving by about 7 percent.
2018-03-06(svn r27974) -Fix (r27907) [FS#6627]: free() called on static airport ↵peter1138
rotation data (JGR)
2017-08-31(svn r27908) -Codechange: Mark airport tile tables and FTAs "const" to be ↵adf88
sure that they are really constant
2017-08-31(svn r27907) -Fix: AirportSpec::rotation was memleakingadf88
2017-08-13(svn r27893) -Codechange: Use fallthrough attribute. (LordAro)frosch
2017-03-05(svn r27769) -Change: [NewGRF] Extend the DCxx range to D800-DFFF.frosch
2017-03-05(svn r27768) -Codechange: Use if and IsInsideMM instead of switch-case ↵frosch
sequences to test for consecutive values.
2017-03-05(svn r27767) -Codechange: Industries and houses should just use the ↵frosch
default-case in Action 4.
2017-03-05(svn r27766) -Fix: Obiwan opposed translations for text id D3FF and DCFF in ↵frosch
Action 13.
2017-01-14(svn r27732) -Change: Turn the message about 'missing baseset sprites' from ↵frosch
a popup into a static message that only shows in non-release versions, just like the 'missing translations' message.
2017-01-14(svn r27730) -Change: Split openttd.grf into openttd.grf and orig_extra.grffrosch
openttd.grf is now always loaded and provides all extra graphics in case the (possibly outdated) baseset does not. orig_extra.grf contains graphics specific to the original baseset only.
2017-01-14(svn r27729) -Codechange: Do not count static NewGRF when checking for the ↵frosch
maximum number of NewGRFs in a game. -Codechange: Remove LAST_GRF_SLOT and MAX_NEWGRFS. Now NETWORK_MAX_GRF_COUNT is the only constant to specify the maximum number of non-static NewGRF. -Codechange: Increase the number of file slots, effectively increasing the maximum number of static NewGRF and baseset GRFs.
2017-01-07(svn r27725) -Codechange: Remove IsOpenTTDBaseGRF and test for GCF_CONFIG ↵frosch
instead, which does the same in all use-cases.
2017-01-07(svn r27722) -Fix (r7490): GCF_SYSTEM was never set correctly.frosch
2016-11-05(svn r27676) -Codechange: Rename catenary functions, so that they refer ↵frosch
unambiguously to either RoadCatenary or RailCatenary.
2016-05-11(svn r27560) -Fix: typos in comments and stringmatthijs
2016-02-08(svn r27507) -Add: [NewGRF] Allow custom sound IDs in RV property 0x12, ship ↵frosch
property 0x10 and aircraft property 0x12.
2016-01-13(svn r27497) -Change: [NewGRF] Allow static NewGRF to enable the second ↵frosch
rocky tile set.
2015-02-06(svn r27138) -Fix: [NewGRF] Negative positions in industry layouts were ↵frosch
interpreted incorrectly; however since the wrong behaviour is saner, define as the correct behaviour for GRFv8.
2015-01-17(svn r27119) -Fix: Action 7/9 condition 0A failed for present, but disabled, ↵frosch
NewGRF.
2014-10-11(svn r26990) -Feature: Add option to choose normal, double or quad-size ↵peter1138
interface.
2014-09-21(svn r26884) -Change: scale the NewGRF's snow line level according to the ↵rubidium
configured maximum map height
2014-09-21(svn r26869) -Add: support for an all black palette to prevent the need of ↵rubidium
having a black tile of all different slopes (ic111)
2014-04-25(svn r26509) -Codechange: replace strdup with stredup (the latter ensures ↵rubidium
the return is not NULL)
2014-04-24(svn r26506) -Codechange: replace most of vsnprintf with vseprintfrubidium
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-04-20(svn r26475) -Fix: potentially undefined shifts in NewGRF coderubidium
2014-04-12(svn r26458) -Doc: Correct a few spelling mistakes (__ln__)planetmaker
2014-01-12(svn r26245) -Codechange: No need for a map, if a vector suffices.frosch
2014-01-12(svn r26243) -Cleanup: Move TTDPStringIDToOTTDStringIDMapping to newgrf.cpp, ↵frosch
it's only used there.
2013-11-26(svn r26130) -Codechange: add some guards against using invalid image indicesrubidium
2013-11-23(svn r26069) -Fix: missing break in NewGRF object handlingrubidium
2013-11-23(svn r26067) -Fix: possible NULL dereference when getting NewGRF versionrubidium
2013-11-09(svn r25961) -Fix [FS#5779]: [NewGRF] A powered rail type implies it is ↵rubidium
compatible as well, but some NewGRF didn't state that causing the path reservation code to bail out in some cases because there wasn't a compatible path
2013-10-17(svn r25878) -Feature: [NewGRF] Object property 0x18 to allow specifying the ↵planetmaker
number of objects of that type being placed upon map creation
2013-10-12(svn r25842) -Codechange: Rename MAX_STATIONS to NUM_STATIONS_PER_GRF.frosch
2013-10-12(svn r25841) -Codechange: Use NUM_AIRPORTTILES_PER_GRF instead of ↵frosch
NUM_AIRPORTTILES to properly distinguish limits per NewGRF and limits of the pool. -Change: [NewGRF] Lower the limit of airport tile types per NewGRF from 256 to 255 to prevent usage of ID 0xFF in Action3, and thus allowing it to become an extended byte somewhen.
2013-10-12(svn r25840) -Codechange: Use NUM_AIRPORTS_PER_GRF instead of NUM_AIRPORTS ↵frosch
to properly distinguish limits per NewGRF and limits of the pool.
2013-10-12(svn r25839) -Codechange: Use NUM_HOUSES_PER_GRF instead of NUM_HOUSES to ↵frosch
properly distinguish limits per NewGRF and limits of the pool. -Change: [NewGRF] Lower the limit of house types per NewGRF from 256 to 255 to prevent usage of ID 0xFF in Action3, and thus allowing it to become an extended byte somewhen.
2013-10-12(svn r25838) -Codechange: Rename HOUSE_MAX to NUM_HOUSES.frosch
2013-10-12(svn r25837) -Codechange: Use NUM_INDUSTRYTILES_PER_GRF instead of ↵frosch
NUM_INDUSTRYTILES to properly distinguish limits per NewGRF and limits of the pool. -Change: [NewGRF] Lower the limit of industry tile types per NewGRF from 256 to 255 to prevent usage of ID 0xFF in Action3, and thus allowing it to become an extended byte somewhen.
2013-10-12(svn r25836) -Codechange: Use NUM_INDUSTRYTYPES_PER_GRF instead of ↵frosch
NUM_INDUSTRYTYPES to properly distinguish limits per NewGRF and limits of the pool.
2013-10-12(svn r25834) -Codechange: Use NUM_OBJECTS_PER_GRF instead of NUM_OBJECTS to ↵frosch
properly distinguish limits per NewGRF and limits of the pool. -Change: [NewGRF] Lower the limit of object types per NewGRF from 256 to 255 to prevent usage of ID 0xFF in Action3, and thus allowing it to become an extended byte somewhen.
2013-08-09(svn r25705) -Fix: a number of typos (inspired by ↵rubidium
90c920601c84975acb694f3673e2beb08b013753)
2013-06-01(svn r25312) -Fix-ish: missing spaces after comma + realignment of tables; ↵rubidium
quite boring with -x -w
2013-05-19(svn r25262) -Feature: linkgraph overlay for smallmaprubidium