Commit Graph

63 Commits

Author SHA1 Message Date
rubidium
db73addb43 (svn r11702) -Codechange: move all date related stuff to date*. 2007-12-26 13:50:40 +00:00
rubidium
f82aeb82c5 (svn r11701) -Codechange: removal unnecessary inclusions of map.h (and split map.h). 2007-12-26 11:45:43 +00:00
rubidium
7058b2cce2 (svn r11700) -Codechange: reduce the amount of unnecessary includes. 2007-12-25 23:42:52 +00:00
rubidium
3074bca136 (svn r11680) -Codechange: refactor more out of openttd.h and functions.h. 2007-12-21 22:50:51 +00:00
belugas
b98847e489 (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
rubidium
c1cf9f3396 (svn r11410) -Codechange: implement random triggers for industries. 2007-11-11 17:56:37 +00:00
glx
3b08339a10 (svn r11302) -Fix (r9520): typo 2007-10-19 21:14:38 +00:00
rubidium
09182386fb (svn r11185) -Codechange: prepare some more code for the introduction of NewIndustries. Patch by Belugas. 2007-09-28 21:24:25 +00:00
glx
18de82b000 (svn r11176) -Revert (r9867): as it is needed for newgrf callbacks 14B and 14C 2007-09-27 21:39:13 +00:00
rubidium
82851876f2 (svn r11170) -Fix (r11152): a variable's type was too small for the data that is going to put into it when NewIndustries are finally activated. For now it just removes a warning and doesn't really fix anything. 2007-09-26 14:21:23 +00:00
rubidium
46940be717 (svn r11143) -Fix: the random bits were not set for the production callback when the NewGRF asked for it. 2007-09-22 23:14:32 +00:00
rubidium
81555c732d (svn r11139) -Codechange: add support for persistent storage for NewGRFs. 2007-09-22 13:56:38 +00:00
belugas
a0946e5d7e (svn r11137) -Feature: [NewGRF] Add support for bit 17 of property 1A for Industries. This bit enables the protection of the last instance of an industry type once raise. 2007-09-22 00:59:27 +00:00
rubidium
5ff81aca18 (svn r11009) -Codechange: unvirtualise IsValid as that isn't needed with templates. This gives up to 10% performance increase in games with lots of vehicles. 2007-08-30 20:40:33 +00:00
belugas
182283a67c (svn r10980) -Fix [FS#1158] : This will hopefully fix the case of an assert that happens when an industry uses a special gfx index (tile spec 0xFF). This 0xFF is the sentinel of a special check done for oil rigs, where water need to be around, but no tile will be constructed on it.
Problem is that the upper limit of gfx tiles is currently at 175.  So, of course the system will assert with 255 ;)
2007-08-26 00:23:32 +00:00
belugas
40d4d2f2ca (svn r10972) -Codechange: Implement the counterpart(GetTranslatedIndustryTileID) of getindustileid of TTDPatch. This allows to ensure that the ID of a tile (taken out of the map or not) is still a valid one regarding the possible override it may have been flagged to.
It is not the strict same thing, but is what we need regarding the slightly different approach we took for newindustries.
2007-08-24 00:23:35 +00:00
belugas
69f9545a20 (svn r10963) -Revert(10700): Although the idea was good, it was more prone of errors than usefull.
So now, it will be better to jump to the overriden tile when it is been marked as an override
2007-08-22 01:16:08 +00:00
belugas
dd61fd374f (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
belugas
f48e05ec73 (svn r10903) -Feature: [NewGRF] Add support for variable 44 of Variational Action 2 for Industries 2007-08-15 00:49:34 +00:00
rubidium
2f89fef353 (svn r10759) -Codechange: make the industry struct use the pool item class as super class. 2007-08-02 23:21:52 +00:00
belugas
3880be2fa8 (svn r10700) -Codechange: Enable to jump (by default) to the overriding industry tile spec of the one been queried.
Only on certain very specific circumstances do we need the original spec
2007-07-27 02:41:29 +00:00
rubidium
151262c1eb (svn r10675) -Codechange: unhardcode the industry types used in several locations of the source code. 2007-07-24 19:56:43 +00:00
belugas
71637303a9 (svn r10639) -Codechange: Give meaninfull name to a magic number 2007-07-20 17:14:03 +00:00
belugas
e37affa1d3 (svn r10570) -Codechange: Add enum required for Callback 0x22: CBID_INDUSTRY_AVAILABLE
-Documentation: Add documentation for enum IndustryConstructionType, which describes how the industry has been created
2007-07-15 00:03:17 +00:00
rubidium
d1ef87f914 (svn r10508) -Codechange: allow customizable animation schemes for industries. 2007-07-11 15:03:29 +00:00
rubidium
cd702d049e (svn r10460) -Codechange: add some more variables needed for newindustries regarding to the creation of the industries. 2007-07-07 08:53:19 +00:00
rubidium
b0a8409200 (svn r10459) -Codechange: add helper functions to determine whether an industry is a primary industry and how much it costs to build such an industry. 2007-07-06 22:33:16 +00:00
rubidium
b8f658db94 (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
5e7d4ffe9f (svn r10447) -Codechange: Don't need to specify values on an enum when those values are contiguous 2007-07-05 16:26:56 +00:00
rubidium
c0ba3dba9d (svn r10439) -Codechange: initial steps for customized industry productions. 2007-07-04 18:27:21 +00:00
rubidium
9534c9795b (svn r10418) -Codechange: implement/resurrect the industry production flags. 2007-07-03 19:16:34 +00:00
rubidium
0debbfd73d (svn r10406) -Fix [FS#968]: only industries in the temperate climate should be affected by the "do not increase production" flag. 2007-07-01 17:21:25 +00:00
belugas
f9935f1fa7 (svn r10379) -Codechange: silence a compiler warning (which was right) about a variable too little for what's been asked to do 2007-06-28 19:03:14 +00:00
belugas
7f8b42b598 (svn r10088) -Codechange: A typo and a code-style 2007-06-10 23:40:29 +00:00
belugas
a8e4af3c52 (svn r10078) -Codechange: Centralize all industry counts data and access 2007-06-10 01:25:21 +00:00
belugas
dc89ed73ee (svn r10064) -Fix(r10063): compile again, when changing stuff. DOn't trust first run 2007-06-08 15:59:03 +00:00
belugas
256ee60545 (svn r10063) -Codechange: Change VARDEF for extern
-CodeChange: Add the count of industries, basic support for variable 67, var action02 forindustries
2007-06-08 15:48:48 +00:00
rubidium
d255041365 (svn r10058) -Codechange: give some industry variable sensible names (like not telling "last_mo_production" when it is the production of the current month). 2007-06-07 14:38:45 +00:00
rubidium
b0421273f2 (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
78151810d7 (svn r10001) -Codechange: Add support for removing dynamically allocated newgrf data 2007-05-31 15:40:36 +00:00
belugas
e4785e0376 (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
6271144452 (svn r9974) -Codechange: Remove the enabled member of GRFFileProps, since it'snot really grf related 2007-05-29 14:32:46 +00:00
belugas
e7bbb79ff5 (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
a4c6bca9c2 (svn r9906) -Codechange: Add common properties for both industry and industry tiles specs 2007-05-24 01:12:00 +00:00
belugas
2e65d6e4e7 (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
belugas
662bee5b12 (svn r9870) -Codechange: Silence two compiler warnings and give proper type to the "type" member of industry struct 2007-05-18 17:55:07 +00:00
belugas
2a7442fda4 (svn r9868) -Codechange: bring external declaration of functions togueter and adjust a comment 2007-05-18 14:34:15 +00:00
belugas
c4b90f3137 (svn r9867) -Codechange: Remove data duplication. The exact same values can be found in the industry spec, so take it from there instead. 2007-05-18 00:33:47 +00:00
rubidium
b007a3419c (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
73a0ccdf9a (svn r9721) -Codechange: -Codechange: Cleanup of industry_cmd (Step-12). Dynamically build the legends (name and color) for industries in the smallmap_gui.
All the tiny fonts industry names should be removed from language files soon.
2007-04-26 20:20:12 +00:00