Commit Graph

121 Commits (f6907db7088216bec78bf092f6d6db1a9b2e706e)

Author SHA1 Message Date
glx f6907db708 (svn r11293) -Fix: newgrf defined industry news messages use TTD format for args, which is not the same as our. So we must detect those strings and pass them the right params 17 years ago
glx 34f8fd2d2b (svn r11285) -Fix: 'site unsuitable' was always shown instead specified message when trying to build industry ingame (Csaboka) 17 years ago
rubidium 3bcfe14cd1 (svn r11276) -Codechange: be more consistent with naming of some accessors.
-Fix: make sure canals are never owned by water. Based on a patch by boekabart.
17 years ago
belugas 1280c7636d (svn r11268) -Fix[FS#1336]: Call IsSlopeRefused whenever it is required. Looks like there was one spot missing. Thanks frosch 17 years ago
glx d796519e49 (svn r11207) -Fix [FS#1301]: don't use smooth_economy for industries using production callbacks as they may have no production for more than a month 17 years ago
belugas 23eed48a92 (svn r11197) -Fix: It is not useful to reset the override of an entity every 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.
17 years ago
rubidium 8c25b4575c (svn r11194) -Fix: industries with not all tiles custom slope checked (but at least one) would be build on wrongly sloped tiles. 17 years ago
rubidium 5093d8b1cd (svn r11193) -Fix: be more compliant with the specifications of callback #2F (and undocumented side effects in TTDP in corner cases). 17 years ago
rubidium 69488b521c (svn r11186) -Fix: only fill the accepted cargo fields once, not multiple times. 17 years ago
rubidium 09182386fb (svn r11185) -Codechange: prepare some more code for the introduction of NewIndustries. Patch by Belugas. 17 years ago
glx cc6ac7f539 (svn r11181) -Codechange: add support for newgrf callback 14A (Belugas) 17 years ago
glx 52f10b2fbd (svn r11177) -Codechange: add support for newgrf callbacks 14B and 14C 17 years ago
glx 18de82b000 (svn r11176) -Revert (r9867): as it is needed for newgrf callbacks 14B and 14C 17 years ago
rubidium e582e6364c (svn r11171) -Fix [FS#1257]: disable autoslope for automatically changed stuff (like towns and industries) and enable it in the scenario editor. Patch by frosch. 17 years ago
rubidium 03191bba4b (svn r11168) -Fix [FS#1256]: assert on terraforming of industries. Patch by frosch. 17 years ago
belugas bd9d8c08ed (svn r11160) -Fix: A gfx of 0xFF does not count when it's time to establish the size of the industry. 17 years ago
glx b1fa49d3fa (svn r11144) -Codechange: add support for newgrf callbacks 29 and 35 17 years ago
glx af3f96957f (svn r11142) -Codechange: prepare industry production change code for newgrf callbacks 29 and 35 17 years ago
rubidium 81555c732d (svn r11139) -Codechange: add support for persistent storage for NewGRFs. 17 years ago
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. 17 years ago
rubidium 3055d42fc4 (svn r11107) -Feature: some tool so one can still build tunnels under rails (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. 17 years ago
rubidium 556035f448 (svn r11102) -Codechange: remove some pointless addition+substractions. Patch by frosch. 17 years ago
belugas 71a23846d3 (svn r11050) -Codechange: Use the translated gfx, not the original one. 17 years ago
rubidium cadf412dcd (svn r11041) -Fix (r10460) [FS#1195]: the industry's owner was saved twice instead of the owner and the founder. Patch by frosch. 17 years ago
rubidium f4482907da (svn r11005) -Codechange: move the tiletype specific terraforming checks to the functions for those tile types.
-Codechange: barren the rail grounds on terraforming.
17 years ago
rubidium 759255df12 (svn r10991) -Codechange: add documentation, enumification and some code simplifications to the terraforming code. Patch by frosch. 17 years ago
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 ;)
17 years ago
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.
17 years ago
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
17 years ago
belugas 339579e22a (svn r10962) -Codechange: protect yourself against an illicit substitution 17 years ago
belugas f48e05ec73 (svn r10903) -Feature: [NewGRF] Add support for variable 44 of Variational Action 2 for Industries 17 years ago
rubidium 341281a7d4 (svn r10813) -Fix (r10799): some destructors were performing too much during the pool cleanups, which could cause crashes as already removed pool items could then be dereferenced by other destructors. 17 years ago
rubidium 655b2048e5 (svn r10773) -Codechange: use pool.CleanPool instead of CleanPool(&pool) and similarly for AddBlock*. 17 years ago
rubidium 2f89fef353 (svn r10759) -Codechange: make the industry struct use the pool item class as super class. 17 years ago
belugas 05a5967fbb (svn r10701) -Codechange: Make sure to not use an out of bound index when the index is specified by a grf file. It has a different meaning then. 17 years ago
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
17 years ago
rubidium 903a0a08c2 (svn r10698) -Codechange [FS#1082]: simplify the code related to foundations. Primarily removal of (duplicated|magic) code and introduction of few helper functions to ease foundation determination. Patch by frosch. 17 years ago
rubidium a67957866a (svn r10697) -Codechange: give a more sensible names to some of the unkX variables. 17 years ago
rubidium a26ef1ee3a (svn r10696) -Codechange: remove duplication of the "make sprite transparent" code. 17 years ago
rubidium 151262c1eb (svn r10675) -Codechange: unhardcode the industry types used in several locations of the source code. 17 years ago
belugas b6ba945486 (svn r10641) -Fix(r10638): Forgotten Son... err...include 17 years ago
belugas 79c94729b5 (svn r10640) -Fix(r10638): little typo... 17 years ago
belugas 71637303a9 (svn r10639) -Codechange: Give meaninfull name to a magic number 17 years ago
belugas 1dd61a2249 (svn r10638) -Codechange: Save the mapping of the industries and tiles, making them persistent. 17 years ago
belugas 05e4b47613 (svn r10635) -Codechange: Correct some typos and code beautifying (a little bit) 17 years ago
rubidium df009178d4 (svn r10587) -Codechange: move the string/dparam related stuff from variables.h to strings.h 17 years ago
glx 9f2ca45987 (svn r10575) -Fix r10573: misplaced ) 17 years ago
belugas 1bee873376 (svn r10573) -Codechange: Use function CheckIfCallBackAllowsAvailability for random map generation as well as for ingame random industry creation 17 years ago
rubidium d1ef87f914 (svn r10508) -Codechange: allow customizable animation schemes for industries. 17 years ago
rubidium a9249181c7 (svn r10506) -Fix: the (manual) building of banks was always rejected. 17 years ago