belugas
0682dc3a0d
(svn r14332) -Fix[FS#1885]: Balance the monthly random industry changes, by 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-09-15 17:18:22 +00:00
belugas
f2f2bcf23c
(svn r14105) -Fix: Some typos that are more grammatical errors, as it seems.
...
Provided by ln
I've added a little fix on currency.cpp too, why not :)
2008-08-20 01:38:12 +00:00
glx
17a1873843
(svn r13174) -Codechange: make a class of the IndustryDirectoryWindow.
2008-05-18 23:36:33 +00:00
rubidium
7ccda80b0b
(svn r12986) -Codechange: move the landscape and transport related types from openttd.h to their own headers.
2008-05-07 09:07:19 +00:00
rubidium
d03994098b
(svn r12971) -Documentation: add @file in files that missed them and add something more than whitespace as description of files that don't have a description.
2008-05-06 15:11:33 +00:00
rubidium
00f0bf98ee
(svn r12751) -Codechange: do what has been done in r11862 in a different way so it uses less memory.
2008-04-17 11:47:22 +00:00
belugas
7cf2c83462
(svn r12041) -Codechange: Add the loader and the property for action 00 industries, prop 24, nearby station name.
...
No assignation yet, no real work either.
2008-02-02 03:23:26 +00:00
rubidium
26c621945d
(svn r11862) -Fix [FS#1559]: when two NewGRFs 'fight' to define the same 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-15 13:19:49 +00:00
rubidium
d4e6a6bf57
(svn r11828) -Codechange: include table/* as the last includes and remove an unneeded include from openttd.h.
2008-01-13 01:21:35 +00:00
rubidium
38115acf5a
(svn r11776) -Codechange: more header splittings to reduce the dependencies.
2008-01-07 14:02:26 +00:00
rubidium
b9046c97fb
(svn r11702) -Codechange: move all date related stuff to date*.
2007-12-26 13:50:40 +00:00
rubidium
2786d789a1
(svn r11701) -Codechange: removal unnecessary inclusions of map.h (and split map.h).
2007-12-26 11:45:43 +00:00
rubidium
aac835171e
(svn r11700) -Codechange: reduce the amount of unnecessary includes.
2007-12-25 23:42:52 +00:00
rubidium
6a9e77e079
(svn r11680) -Codechange: refactor more out of openttd.h and functions.h.
2007-12-21 22:50:51 +00:00
belugas
b10eea628d
(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
af5c2a785f
(svn r11410) -Codechange: implement random triggers for industries.
2007-11-11 17:56:37 +00:00
glx
9371ac1307
(svn r11302) -Fix (r9520): typo
2007-10-19 21:14:38 +00:00
rubidium
136d726b6f
(svn r11185) -Codechange: prepare some more code for the introduction of NewIndustries. Patch by Belugas.
2007-09-28 21:24:25 +00:00
glx
5e45e73037
(svn r11176) -Revert (r9867): as it is needed for newgrf callbacks 14B and 14C
2007-09-27 21:39:13 +00:00
rubidium
7455676941
(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
c00db50edc
(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
60f1eb21fa
(svn r11139) -Codechange: add support for persistent storage for NewGRFs.
2007-09-22 13:56:38 +00:00
belugas
47dd4989a8
(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
8a6cc3aa10
(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
36c5b4e1ef
(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
99158287fd
(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
d921cf88a3
(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
116de48fdf
(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
fafe33cdd2
(svn r10903) -Feature: [NewGRF] Add support for variable 44 of Variational Action 2 for Industries
2007-08-15 00:49:34 +00:00
rubidium
e4149482ec
(svn r10759) -Codechange: make the industry struct use the pool item class as super class.
2007-08-02 23:21:52 +00:00
belugas
8ad3a6f8fd
(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
fe8e297995
(svn r10675) -Codechange: unhardcode the industry types used in several locations of the source code.
2007-07-24 19:56:43 +00:00
belugas
f9d3463af1
(svn r10639) -Codechange: Give meaninfull name to a magic number
2007-07-20 17:14:03 +00:00
belugas
6d22aa54cf
(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
79d04412b0
(svn r10508) -Codechange: allow customizable animation schemes for industries.
2007-07-11 15:03:29 +00:00
rubidium
9a55c79fd1
(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
c86015203a
(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
0d68a919d9
(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
f21f6554d8
(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
1bdb72ebd4
(svn r10439) -Codechange: initial steps for customized industry productions.
2007-07-04 18:27:21 +00:00
rubidium
b67cfd4825
(svn r10418) -Codechange: implement/resurrect the industry production flags.
2007-07-03 19:16:34 +00:00
rubidium
d73e490c52
(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
42f0593b82
(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
94200b63b8
(svn r10088) -Codechange: A typo and a code-style
2007-06-10 23:40:29 +00:00
belugas
08c9365971
(svn r10078) -Codechange: Centralize all industry counts data and access
2007-06-10 01:25:21 +00:00
belugas
f51b869e69
(svn r10064) -Fix(r10063): compile again, when changing stuff. DOn't trust first run
2007-06-08 15:59:03 +00:00
belugas
7586143e3b
(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
8a74b2ebe1
(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
40cea6c3ef
(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
f8da1b6e1a
(svn r10001) -Codechange: Add support for removing dynamically allocated newgrf data
2007-05-31 15:40:36 +00:00
belugas
0cb8413a8f
(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
4cb32f903e
(svn r9974) -Codechange: Remove the enabled member of GRFFileProps, since it'snot really grf related
2007-05-29 14:32:46 +00:00
belugas
35ccad33dd
(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
f3cf7f6b2d
(svn r9906) -Codechange: Add common properties for both industry and industry tiles specs
2007-05-24 01:12:00 +00:00
belugas
88042df6bb
(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
49570edfe9
(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
2196abd71d
(svn r9868) -Codechange: bring external declaration of functions togueter and adjust a comment
2007-05-18 14:34:15 +00:00
belugas
380d18fb69
(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
44ddf033ed
(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
5912b08890
(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
belugas
95ae29b470
(svn r9676) -Codechange: introduce NUM_INDUSTRYTYPES instead of IT_END.
...
This makes the code clearer.
2007-04-19 14:50:01 +00:00
belugas
cdb910d64b
(svn r9577) -Codechange: Add notion and data for industry map colour, used in the smallmap_gui. Not used yet.
...
-Move the check proc array, in order to make it more useful latter.
-Add basic newGRF stuff on the industry spec. Not used yet.
2007-04-09 01:08:11 +00:00
belugas
0d691539a4
(svn r9550) -Codechange: Add notion and data of industry appearing chances, both in game and in creation mode.
...
Not used yet.
2007-04-03 00:13:59 +00:00
belugas
72fc068844
(svn r9520) -Codechange: Add the notion of Industry behaviour. It means what an industry can do (plant fields, cut trees, do not change production), what can be done to it (disasters like mine subsidence, jet/chopper attack), when it can be built etc...
2007-03-28 20:06:28 +00:00
belugas
eb1e6c19ad
(svn r9190) -Fix: Little typo in an enum.
2007-03-15 01:17:20 +00:00
belugas
65ce0e36db
(svn r9162) -Codechange: Cleanup of industry_cmd (Step-8). Gather tile animation data into IndustryTileSpec array
...
Added a few documentation on remaining animation arrays (mostly ToyLand ones)
2007-03-14 02:52:50 +00:00
belugas
8eb0a220e6
(svn r9075) -Codechange: Cleanup of industry_cmd (Step-7). Small step that is. The new industry messages do not need a series of tests. Only one property to use.
2007-03-09 02:04:07 +00:00
rubidium
24c4d5b06d
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
2007-03-07 12:11:48 +00:00
rubidium
36bb92ae24
(svn r9050) -Codechange: Foo(void) -> Foo()
2007-03-07 11:47:46 +00:00
belugas
b71354dc40
(svn r8987) -Cleanup: doxygen changes. Again. Mostly (still) @files missing tags and (more than just) a few comments style.
2007-03-03 04:04:22 +00:00
belugas
771932d889
(svn r8827) -Codechange: Cleanup of industry_cmd (Step-6). Implementation of IndustryTileSPec, the alter ego of IndustrySpec.
...
It offers identification of the different industry tiles in a more distinct manner, as well as regrouping scattered pieces of data across the sources. More to come
2007-02-21 02:22:43 +00:00
rubidium
f35ed4bbc2
(svn r8038) -Merge: the cpp branch. Effort of KUDr, Celestar, glx, Smoovius, stillunknown and pv2b.
2007-01-10 18:56:51 +00:00
rubidium
66bbf336c6
(svn r7759) -Merge: makefile rewrite. This merge features:
...
- A proper ./configure, so everything needs to be configured only once, not for every make.
- Usage of makedepend when available. This greatly reduces the time needed for generating the dependencies.
- A generator for all project files. There is a single file with sources, which is used to generate Makefiles and the project files for MSVC.
- Proper support for OSX universal binaries.
- Object files for non-MSVC compiles are also placed in separate directories, making is faster to switch between debug and release compiles and it does not touch the directory with the source files.
- Functionality to make a bundle of all needed files for for example a nightly or distribution of a binary with all needed GRFs and language files.
Note: as this merge moves almost all files, it is recommended to make a backup of your working copy before updating your working copy.
2007-01-02 19:19:48 +00:00