summaryrefslogtreecommitdiff
path: root/src/industry_cmd.cpp
AgeCommit message (Collapse)Author
2007-11-11(svn r11402) -Fix [FS#1382]: incorrect handling of industry behaviour 'must ↵glx
be in town with population large than 1200'
2007-11-10(svn r11399) -Feature(ette): transparency settings can now be saved and thus ↵belugas
remembered. -Codechange: Wrap all transparency settings in accessors, hiding the implementation -Change: Clicking "transparent building" menu will toggle Houses And Trees only. The other options can be used in the transparency gui. Initial patch by Smatz (FS#1349), with some rework by BigBB and your humble servant.
2007-11-03(svn r11373) -Fix [FS#1398]: do not even think about building disabled ↵rubidium
industries.
2007-11-03(svn r11371) -Fix [FS#1396]: the industry protection only kicked in when it ↵rubidium
should not kick in.
2007-10-29(svn r11356) -Fix (r11305): funding industries in MP game was causing desyncglx
2007-10-27(svn r11349) -Fix [FS#1372]: crash when moving "invalid" cargo to a station.rubidium
2007-10-20(svn r11305) -Codechange: randomise layout when building an industry ingameglx
2007-10-19(svn r11303) -Fix: EnsureNoVehicle and EnsureNoVehicleOnGround were both ↵rubidium
used to check whether there was no vehicle on the ground, except that the former didn't take care of aircraft shadows. So now we only use EnsureNoVehicleOnGround.
2007-10-19(svn r11302) -Fix (r9520): typoglx
2007-10-19(svn r11301) -Fix: water check when building industries didn't workglx
2007-10-18(svn r11293) -Fix: newgrf defined industry news messages use TTD format for ↵glx
args, which is not the same as our. So we must detect those strings and pass them the right params
2007-10-17(svn r11285) -Fix: 'site unsuitable' was always shown instead specified ↵glx
message when trying to build industry ingame (Csaboka)
2007-10-16(svn r11276) -Codechange: be more consistent with naming of some accessors.rubidium
-Fix: make sure canals are never owned by water. Based on a patch by boekabart.
2007-10-15(svn r11268) -Fix[FS#1336]: Call IsSlopeRefused whenever it is required. ↵belugas
Looks like there was one spot missing. Thanks frosch
2007-10-05(svn r11207) -Fix [FS#1301]: don't use smooth_economy for industries using ↵glx
production callbacks as they may have no production for more than a month
2007-10-03(svn r11197) -Fix: It is not useful to reset the override of an entity every ↵belugas
time a new grf file is been submitted. Since newhouses showed the way to newindustries(meaning I copied/adapted a lot of code and processes from it), the behaviour was there for newhouses too.
2007-10-02(svn r11194) -Fix: industries with not all tiles custom slope checked (but ↵rubidium
at least one) would be build on wrongly sloped tiles.
2007-10-02(svn r11193) -Fix: be more compliant with the specifications of callback #2F ↵rubidium
(and undocumented side effects in TTDP in corner cases).
2007-09-30(svn r11186) -Fix: only fill the accepted cargo fields once, not multiple times.rubidium
2007-09-28(svn r11185) -Codechange: prepare some more code for the introduction of ↵rubidium
NewIndustries. Patch by Belugas.
2007-09-28(svn r11181) -Codechange: add support for newgrf callback 14A (Belugas)glx
2007-09-27(svn r11177) -Codechange: add support for newgrf callbacks 14B and 14Cglx
2007-09-27(svn r11176) -Revert (r9867): as it is needed for newgrf callbacks 14B and 14Cglx
2007-09-26(svn r11171) -Fix [FS#1257]: disable autoslope for automatically changed ↵rubidium
stuff (like towns and industries) and enable it in the scenario editor. Patch by frosch.
2007-09-26(svn r11168) -Fix [FS#1256]: assert on terraforming of industries. Patch by ↵rubidium
frosch.
2007-09-26(svn r11160) -Fix: A gfx of 0xFF does not count when it's time to establish ↵belugas
the size of the industry.
2007-09-22(svn r11144) -Codechange: add support for newgrf callbacks 29 and 35glx
2007-09-22(svn r11142) -Codechange: prepare industry production change code for newgrf ↵glx
callbacks 29 and 35
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-09-14(svn r11107) -Feature: some tool so one can still build tunnels under rails ↵rubidium
(and other structures) when the owner of the structure built it on foundations and if you have enough "empty" space ofcourse. One could use the tool for some other construction needs too. Patch by frosch.
2007-09-14(svn r11102) -Codechange: remove some pointless addition+substractions. ↵rubidium
Patch by frosch.
2007-09-06(svn r11050) -Codechange: Use the translated gfx, not the original one.belugas
2007-09-04(svn r11041) -Fix (r10460) [FS#1195]: the industry's owner was saved twice ↵rubidium
instead of the owner and the founder. Patch by frosch.
2007-08-30(svn r11005) -Codechange: move the tiletype specific terraforming checks to ↵rubidium
the functions for those tile types. -Codechange: barren the rail grounds on terraforming.
2007-08-27(svn r10991) -Codechange: add documentation, enumification and some code ↵rubidium
simplifications to the terraforming code. Patch by frosch.
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 r10962) -Codechange: protect yourself against an illicit substitutionbelugas
2007-08-15(svn r10903) -Feature: [NewGRF] Add support for variable 44 of Variational ↵belugas
Action 2 for Industries
2007-08-06(svn r10813) -Fix (r10799): some destructors were performing too much during ↵rubidium
the pool cleanups, which could cause crashes as already removed pool items could then be dereferenced by other destructors.
2007-08-03(svn r10773) -Codechange: use pool.CleanPool instead of CleanPool(&pool) and ↵rubidium
similarly for AddBlock*.
2007-08-02(svn r10759) -Codechange: make the industry struct use the pool item class ↵rubidium
as super class.
2007-07-27(svn r10701) -Codechange: Make sure to not use an out of bound index when ↵belugas
the index is specified by a grf file. It has a different meaning then.
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-26(svn r10698) -Codechange [FS#1082]: simplify the code related to ↵rubidium
foundations. Primarily removal of (duplicated|magic) code and introduction of few helper functions to ease foundation determination. Patch by frosch.
2007-07-26(svn r10697) -Codechange: give a more sensible names to some of the unkX ↵rubidium
variables.
2007-07-26(svn r10696) -Codechange: remove duplication of the "make sprite ↵rubidium
transparent" code.
2007-07-24(svn r10675) -Codechange: unhardcode the industry types used in several ↵rubidium
locations of the source code.