summaryrefslogtreecommitdiff
path: root/src/industry.h
AgeCommit message (Collapse)Author
2009-05-16(svn r16326) -Codechange: replace GetPoolItemPoolSize() by ↵smatz
PoolItem::GetPoolSize()
2009-05-16(svn r16325) -Codechange: replace GetPoolItem(index) by PoolItem::Get(index)smatz
2009-03-15(svn r15726) -Codechange: unify coding style for const pointerssmatz
2009-02-09(svn r15428) -Codechange: consistently use colour instead of having both ↵rubidium
color and colour.
2009-01-03(svn r14807) -Codechange: use INVALID_TILE instead of 0 to mark invalid ↵smatz
depots, industries, towns and waypoints
2008-12-26(svn r14746) -Fix: don't let any disaster vehicle (Helicopter or Airplane) ↵smatz
target invalid industry
2008-09-15(svn r14332) -Fix[FS#1885]: Balance the monthly random industry changes, by ↵belugas
introducing a daily random industry change. This will allow to perform more changes per month on big maps and less on smaller maps, while not overtaxing the IndustryMonthlyLoop process. Thanks to frosch, for nice code ideas and rewrites
2008-08-20(svn r14105) -Fix: Some typos that are more grammatical errors, as it seems.belugas
Provided by ln I've added a little fix on currency.cpp too, why not :)
2008-05-18(svn r13174) -Codechange: make a class of the IndustryDirectoryWindow.glx
2008-05-07(svn r12986) -Codechange: move the landscape and transport related types ↵rubidium
from openttd.h to their own headers.
2008-05-06(svn r12971) -Documentation: add @file in files that missed them and add ↵rubidium
something more than whitespace as description of files that don't have a description.
2008-04-17(svn r12751) -Codechange: do what has been done in r11862 in a different way ↵rubidium
so it uses less memory.
2008-02-02(svn r12041) -Codechange: Add the loader and the property for action 00 ↵belugas
industries, prop 24, nearby station name. No assignation yet, no real work either.
2008-01-15(svn r11862) -Fix [FS#1559]: when two NewGRFs 'fight' to define the same ↵rubidium
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-13(svn r11828) -Codechange: include table/* as the last includes and remove an ↵rubidium
unneeded include from openttd.h.
2008-01-07(svn r11776) -Codechange: more header splittings to reduce the dependencies.rubidium
2007-12-26(svn r11702) -Codechange: move all date related stuff to date*.rubidium
2007-12-26(svn r11701) -Codechange: removal unnecessary inclusions of map.h (and split ↵rubidium
map.h).
2007-12-25(svn r11700) -Codechange: reduce the amount of unnecessary includes.rubidium
2007-12-21(svn r11680) -Codechange: refactor more out of openttd.h and functions.h.rubidium
2007-11-27(svn r11534) -Feature(newgrf): Implement property 23h for Industries.belugas
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-11(svn r11410) -Codechange: implement random triggers for industries.rubidium
2007-10-19(svn r11302) -Fix (r9520): typoglx
2007-09-28(svn r11185) -Codechange: prepare some more code for the introduction of ↵rubidium
NewIndustries. Patch by Belugas.
2007-09-27(svn r11176) -Revert (r9867): as it is needed for newgrf callbacks 14B and 14Cglx
2007-09-26(svn r11170) -Fix (r11152): a variable's type was too small for the data ↵rubidium
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-22(svn r11143) -Fix: the random bits were not set for the production callback ↵rubidium
when the NewGRF asked for it.
2007-09-22(svn r11139) -Codechange: add support for persistent storage for NewGRFs.rubidium
2007-09-22(svn r11137) -Feature: [NewGRF] Add support for bit 17 of property 1A for ↵belugas
Industries. This bit enables the protection of the last instance of an industry type once raise.
2007-08-30(svn r11009) -Codechange: unvirtualise IsValid as that isn't needed with ↵rubidium
templates. This gives up to 10% performance increase in games with lots of vehicles.
2007-08-26(svn r10980) -Fix [FS#1158] : This will hopefully fix the case of an assert ↵belugas
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-24(svn r10972) -Codechange: Implement the ↵belugas
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-22(svn r10963) -Revert(10700): Although the idea was good, it was more prone ↵belugas
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(svn r10961) -Codechange: Flag default substitutes of industry/tiles with a ↵belugas
value that cannot be legal. This avoids the forest of coal mine error in the futur
2007-08-15(svn r10903) -Feature: [NewGRF] Add support for variable 44 of Variational ↵belugas
Action 2 for Industries
2007-08-02(svn r10759) -Codechange: make the industry struct use the pool item class ↵rubidium
as super class.
2007-07-27(svn r10700) -Codechange: Enable to jump (by default) to the overriding ↵belugas
industry tile spec of the one been queried. Only on certain very specific circumstances do we need the original spec
2007-07-24(svn r10675) -Codechange: unhardcode the industry types used in several ↵rubidium
locations of the source code.
2007-07-20(svn r10639) -Codechange: Give meaninfull name to a magic numberbelugas
2007-07-15(svn r10570) -Codechange: Add enum required for Callback 0x22: ↵belugas
CBID_INDUSTRY_AVAILABLE -Documentation: Add documentation for enum IndustryConstructionType, which describes how the industry has been created
2007-07-11(svn r10508) -Codechange: allow customizable animation schemes for industries.rubidium
2007-07-07(svn r10460) -Codechange: add some more variables needed for newindustries ↵rubidium
regarding to the creation of the industries.
2007-07-06(svn r10459) -Codechange: add helper functions to determine whether an ↵rubidium
industry is a primary industry and how much it costs to build such an industry.
2007-07-06(svn r10451) -Add: support for "prospecting" raw industries, i.e. you pay an ↵rubidium
amount of money and then it might (with a given chance) build a raw industry somewhere on the map.
2007-07-05(svn r10447) -Codechange: Don't need to specify values on an enum when those ↵belugas
values are contiguous
2007-07-04(svn r10439) -Codechange: initial steps for customized industry productions.rubidium
2007-07-03(svn r10418) -Codechange: implement/resurrect the industry production flags.rubidium
2007-07-01(svn r10406) -Fix [FS#968]: only industries in the temperate climate should ↵rubidium
be affected by the "do not increase production" flag.
2007-06-28(svn r10379) -Codechange: silence a compiler warning (which was right) about ↵belugas
a variable too little for what's been asked to do
2007-06-10(svn r10088) -Codechange: A typo and a code-stylebelugas