Commit Graph

212 Commits

Author SHA1 Message Date
glx 63b36d9330 (svn r11402) -Fix [FS#1382]: incorrect handling of industry behaviour 'must be in town with population large than 1200' 2007-11-11 00:04:52 +00:00
glx 3e8493c851 (svn r11394) -Fix: default value for input cargo multipliers is 256 even for invalid cargo. Exceptions are temperate banks and oil rigs, default value is 0 for them 2007-11-08 22:29:21 +00:00
rubidium 32e5e8db72 (svn r11391) -Change: print all error messages related to missing/corrupted files in one message including the location where they can get said missing/corrupted files. 2007-11-07 23:29:43 +00:00
glx 1626ff3948 (svn r11384) -Fix: second and third accepted cargo were inverted in original industry tiles 2007-11-05 01:38:49 +00:00
rubidium c0747d26f0 (svn r11350) -Change: add missing elrail sprites for some rail build buttons/cursors. Sprites by skidd13. 2007-10-27 11:23:13 +00:00
rubidium 2c1bfe10ac (svn r11339) -Add: autoroad; same as autorail, but for road and trams and only on X and Y direction. Patch by Octopussy and skidd13. 2007-10-22 19:11:50 +00:00
rubidium fce4c5e2c2 (svn r11321) -Codechange: add support to load different graphics for halftile slopes using a NewGRF. Patch by frosch. 2007-10-20 21:39:50 +00:00
rubidium 5718567d1e (svn r11316) -Codechange: add support for the half-tile (selection) graphics. 2007-10-20 20:06:55 +00:00
belugas e74e187006 (svn r11266) -Documentation: Add a few comments. Parts of BigBB's work on shores 2007-10-15 00:06:59 +00:00
rubidium 240285b8d8 (svn r11145) -Codechange: add support for "decoding" TTDPs string codes wrt to registers 0x100 to 0x10F. 2007-09-22 23:55:34 +00:00
rubidium 7d325672eb (svn r11128) -Fix: a lot of graphical glitches by changing some bounding boxes. It's not perfect yet, but a *very* good step into the right direction. Patch by frosch. 2007-09-19 16:36:42 +00:00
rubidium 6f296b9870 (svn r11102) -Codechange: remove some pointless addition+substractions. Patch by frosch. 2007-09-14 21:32:21 +00:00
rubidium 8daaea0398 (svn r11054) -Fix [FS#944]: mismatch between TTDP's and OTTD's placement of catenary, creating graphical glitches when loading a catenary replacement. Patch by frosch. 2007-09-07 21:11:12 +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
rubidium c46e445e69 (svn r10820) -Codechange: make negative currencies red and restore the colour from before the currency was printed; this removes the need to make two strings for printing currencies (one for positive currencies and one for negative currencies).
-Fix [FS#1036]: do not use green for currencies as it is practically unreadable on CRT monitors.
2007-08-07 15:20:31 +00:00
rubidium d624f66c79 (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. 2007-07-26 16:51:10 +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
rubidium 0d9a51de6d (svn r10672) -Codechange: typify some parameters/variables. 2007-07-24 13:03:24 +00:00
belugas d87359a827 (svn r10670) -Fix: Use proper initialization for grf_prop override member 2007-07-24 01:29:42 +00:00
truelight 98b23edeb3 (svn r10659) -Codechange: updated documentation around RAIL_GROUND_FENCE_VERT[12] (frosch)
-Codechange: added documentation and SPR_ enums for track fences (frosch)
2007-07-23 16:08:58 +00:00
rubidium 549893651c (svn r10604) -Fix [FS#1044] (r9866): some industries produced cargo they should not be producing, which would result in the industry offering invalid cargo to a station resulting in crashes.. 2007-07-17 08:18:57 +00:00
rubidium 3dd6362bb8 (svn r10601) -Codechange: store (and use) the type of stations instead of hardcoding station types by graphics IDs. 2007-07-16 23:55:22 +00:00
rubidium 79d04412b0 (svn r10508) -Codechange: allow customizable animation schemes for industries. 2007-07-11 15:03:29 +00:00
rubidium 8d4b7ac33b (svn r10507) -Fix [FS#1019]: apparantly we used the wrong sprites for some pieces of the tram catenary (even though TTDP did so too). 2007-07-11 08:35:14 +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 2c38514a84 (svn r10424) -Fix : Toy shop seems to be working exactly like power stations, water tower and banks, i.e: they require cargo but do nothing with it.
So, make it an INDUSTRYLIFE_BLACK_HOLE, exactly like the above mentioned industries.
Thanks to glx who spotted, and Csaboka who confirmed it could very well be a CS bug.
2007-07-04 00:49:03 +00:00
rubidium b67cfd4825 (svn r10418) -Codechange: implement/resurrect the industry production flags. 2007-07-03 19:16:34 +00:00
peter1138 d69589b3c2 (svn r10324) -Codechange: reference engine names by index 2007-06-25 14:46:32 +00:00
peter1138 eb6594caa8 (svn r10323) -Codechange: reference company name, number and player (president) name
by index
2007-06-25 13:30:38 +00:00
peter1138 fd73ea2058 (svn r10321) -Codechange: refer to sign text by index 2007-06-25 10:40:56 +00:00
peter1138 fc7418d19d (svn r10314) -Codechange: Refer to vehicle names by index 2007-06-24 22:42:11 +00:00
rubidium fb7964e902 (svn r10261) -Cleanup: we do not need CURRENCY64 and CURRCOMPACT64 anymore, because everything is already 64 bits by default. 2007-06-21 17:38:59 +00:00
rubidium 3afa69052d (svn r10185) -Codechange: make the bounding boxes of the drive through road stops a little larger so NewGRFs authors have more possibilities when replacing them (minime). 2007-06-17 18:22:43 +00:00
rubidium cc4d18ecc4 (svn r10098) -Codechange: bilbo cared about the performance of the AI with respect to the airport placement, so he rewrote the aircraft handling of the AI; now it can actually make lots of money again :) 2007-06-11 14:23:04 +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
glx 6e653cd1ab (svn r10017) -Add (FS#790): more languages flags for servers 2007-06-01 23:06:01 +00:00
belugas f8da1b6e1a (svn r10001) -Codechange: Add support for removing dynamically allocated newgrf data 2007-05-31 15:40:36 +00:00
rubidium 253aa1b0b0 (svn r9999) -Feature: make it possible to disallow busses and lorries to go a specific way on straight pieces of road. 2007-05-31 15:15:00 +00:00
belugas 425ea50854 (svn r9984) -Codechange: Remove an obsolete structure and a now meaningless enum, in favor of the "real thing" 2007-05-30 02:08:18 +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 0af97d4ab2 (svn r9975) -Codechange: Adjust the industry/tile spec arrays, moving the enabled member out of GRFFileProps (end of previous commit). 2007-05-29 14:44:22 +00:00
rubidium 4726fdc0d0 (svn r9972) -Fix (r9969): silence a warning. 2007-05-29 08:20:38 +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
rubidium 1a8a44165b (svn r9961) -Fix (r7182): some file were still in iso8859-15 instead of utf8. 2007-05-28 04:15:32 +00:00
rubidium 8cd950e06a (svn r9926) -Fix (r9923): the vehicle should continue on the next tile, not 'finishing' the turn. 2007-05-25 23:32:30 +00:00
rubidium 17390241e6 (svn r9923) -Add: support for Action 0 Road vehicles, property 1C, bit 0. 2007-05-25 22:07:40 +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
rubidium 7d4be11516 (svn r9874) -Feature: advanced vehicle lists a.k.a. group interface. Now you can make groups of vehicles and perform all kinds of tasks on that given group. Original code by nycom and graphics by skidd13. 2007-05-19 09:40:18 +00:00
peter1138 b8a82dcb05 (svn r9871) -Fix (r8826): Some cargo costs were wrong for different climates. Multiple definitions of the same cargo type are sometimes required. 2007-05-18 21:50:32 +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
peter1138 c9018d3e7c (svn r9825) -Codechange: [NewGRF] Add support for early vehicle retirement. 2007-05-10 23:10:23 +00:00
maedhros 3cc31aae86 (svn r9823) -Feature: Add support for house property 1F - minimum life span. 2007-05-10 16:03:06 +00:00
maedhros d098e88035 (svn r9814) -Fix (r1): Remove the duplicate sign sprite from openttd.grf since it's in the original data files. 2007-05-08 14:28:55 +00:00
rubidium 5869384530 (svn r9813) -Fix (r9799): wagons must have EC_STEAM, otherwise they don't show up in the purchase list (mart3p). 2007-05-08 08:41:16 +00:00
rubidium fe1306ce65 (svn r9799) -Codechange: separate engine class and engine running cost class (mart3p). 2007-05-06 19:44:22 +00:00
peter1138 37a873e03c (svn r9797) -Feature: [NewGRF] Add action 1, 2 and 3 support for canals. 2007-05-06 18:14:33 +00:00
rubidium 5c0a52149d (svn r9795) -Codechange: enumify the EngineClass. 2007-05-06 15:01:44 +00:00
belugas 3a1e7679d8 (svn r9705) -Codechange: Merge some data arrays together, making a bit more logical units.
Calculate with a macro (for _industry_anim_offs_toys) the value of x, instead of doing it at run time.
And give some more descriptive names too...
2007-04-21 02:47:33 +00:00
belugas 803b073c59 (svn r9704) -Documentation: Add comments on industry data macro 2007-04-21 02:42:51 +00:00
rubidium 80c259f64f (svn r9672) -Cleanup: lots of coding style fixes around operands. 2007-04-18 22:10:36 +00:00
belugas 4eb87ac62b (svn r9669) -Documentation: some more doxygen fixes 2007-04-18 18:00:33 +00:00
belugas d6651c1741 (svn r9665) -Documentation: Doxygen corrections,errors, corrections of corrections... 2007-04-18 00:41:09 +00:00
maedhros 2a32b3b8db (svn r9654) -Fix: Add string colours for the DOS palette and use them when playing with the DOS data files. 2007-04-17 10:08:17 +00:00
belugas fc6cf587cd (svn r9650) -Documentation: Finalize doxygen comments for town_land.h 2007-04-16 19:26:01 +00:00
belugas 83c269d071 (svn r9642) -Documentation: Having a different macro name for _original_house_specs (MS) than for _town_tile_data (M) might teach doxygen that we are dealing with two entities... 2007-04-16 02:47:01 +00:00
belugas 39735f7b54 (svn r9619) -Documentation: Comments on drawing arrays of houses and industries 2007-04-13 17:15:06 +00:00
belugas e161e60af6 (svn r9590) -Fix(r9550, fs728): some wrongfully entered data caused some industries to appear where they should not have 2007-04-10 20:58:04 +00:00
belugas ec03c72afb (svn r9579) -Codechange: Cleanup of industry_cmd (Step-11). Use industry's spec appear_creation during random map creation. 2007-04-09 01:43:29 +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
rubidium d2634aaeec (svn r9553) -Documentation: fix ambiguity issue. 2007-04-03 19:19:04 +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 77b3767f2f (svn r9526) -Fix(9520): a temperate sawmill is not a tropic lumber mill. Thus, it cannot cut trees 2007-03-30 13:51:03 +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
peter1138 68572f1076 (svn r9418) -Codechange: Implement actions 1/2/3 for cargos, callback handler and custom icon sprites 2007-03-23 20:55:45 +00:00
belugas 06d3669bb5 (svn r9400) -Codechange: Use some more representative enum names for landscape types. 2007-03-22 03:42:43 +00:00
belugas b82ed41a19 (svn r9366) -Codechange: Unify the different houses acceptances attributes on their cargo counterpart, as well as specifying cargo slot. 2007-03-20 02:24:14 +00:00
maedhros 73ff939ddb (svn r9315) -Merge: The newhouses branch. With this merge comes almost complete support for
the newhouses grf specs, so all newhouses grfs will be playable in the game.

Many thanks to everyone who contributed code and ideas, and all the testers
who found things we missed.
2007-03-19 11:27:30 +00:00
richk 408442d575 (svn r9298) -Fix (r1): A34-1000, Z-Shuttle, and Kelling K1 should be listed as small aircraft. 2007-03-18 21:38:30 +00:00
peter1138 c5313e3479 (svn r9243) -Fix (r9162,FS#683): One too many table rows caused cargo acceptance mixup. 2007-03-16 00:55:59 +00:00
peter1138 99577265de (svn r9236) -Codechange: Add 'town effect' attribute to cargo types. This will be used to specify how the cargo behaves wrt towns, instead of relying on fixed cargo IDs. 2007-03-15 22:48:46 +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
rubidium 2e1bda2c1a (svn r9077) -Fix [FS#612]: the wrong catenary wires were drawn for tunnel entrances. 2007-03-09 14:41:39 +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
celestar f621608f7d (svn r8973) -Feature/Codechange: Changed the internal unit for aircraft velocities to from 8mph to 1km/h (peter1138), also give aircraft realsitic velocities (so that 1km/h is 1km/h independent of vehicle type) (peter1138). Introduce a flag to reduce aircraft speed in holding patterns to some realistic velocity. Use this flag for the city airport for the time being and make use of the different entry points for this airport type. 2007-03-02 12:01:24 +00:00
rubidium 8ac0e7be21 (svn r8880) -Codechange: make anim cursors an array of structs. 2007-02-24 15:05:14 +00:00
rubidium 6ddef3f743 (svn r8877) -Cleanup: remove already implemented @todo 2007-02-24 12:50:05 +00:00
maedhros f2d63dcecf (svn r8838) -Feature: Show newgrf error messages loaded in Action B in the newgrf gui
window. GRFs with an error have a warning symbol shown before the name.
2007-02-21 23:18:08 +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
peter1138 ef2daa5060 (svn r8826) -Codechange: Replace _cargoc's separate arrays with a regular struct array (with accessor) and implement new initialization method using cargo labels. 2007-02-20 22:09:21 +00:00
glx aa24d59966 (svn r8793) -Fix: corrected spelling of real french townnames and 'removed' a duplicate 2007-02-17 23:53:17 +00:00
miham c810aef43b (svn r8791) -Revert: r8790 Committed too much in last commit 2007-02-17 22:01:07 +00:00
miham 6e5dd7942f (svn r8790) [Namegen] -Revert: r8789 (Tron kinda convinced me it is a bad thing, sorry for it) 2007-02-17 21:56:22 +00:00
miham b447e57131 (svn r8789) [Namegen] -Change: Sorted townnameparts for hungarian, and added a few more 2007-02-17 21:50:00 +00:00
rubidium 79dda0fa07 (svn r8741) -Fix (r8735): make the saveguards of CmdBuildRoadStop more robust and add roadstops.grf to the list of required grfs. 2007-02-14 20:58:19 +00:00
rubidium 0e8f006dc1 (svn r8735) -Feature: drive-through road stops made possible by the hard work of mart3p. 2007-02-14 16:37:16 +00:00
rubidium 59284954ae (svn r8723) -Codechange: replace yet another couple of magic numbers with enums. 2007-02-14 01:00:57 +00:00
rubidium 6bbbedc8cc (svn r8635) -Fix: draw canal edges under buoys that are in a canal. 2007-02-08 14:04:02 +00:00
belugas 0c45071bb0 (svn r8455) -Codechange: Give a more meaningful name (railveh_type)to member flags of RailVehInfo, as well as changing the code to reflect the fact that it was not a flag but rather a one value only variable. Doing so, some evaluations have been simplified.
-Codechange: Add and use RAILVEH_SINGLEHEAD when railveh_type is set to 0, which was implicit before.
-Cleanup: Remove some extraneous parenthesis.
2007-01-30 11:53:35 +00:00
Darkvater 08c21c0c61 (svn r8429) -Codechange: Add a name for AircraftVehicleInfo subtype helicopter and remove some magic numbers related to the subtype. 2007-01-27 12:45:55 +00:00
truelight 40f966958e (svn r8412) [MorphOS] -Fix: assert_compile(x != y) doesn't work, but assert_compile(!(x == y)) does.. don't ask me why! 2007-01-26 08:36:02 +00:00
tron 0996de79df (svn r8385) -Fix
-Regression (r8314): I only did half the necessary changes to move railtype from Engine to RailVehicleInfo. Now do the rest.
2007-01-24 07:14:09 +00:00
tron 8ac3272e85 (svn r8321) -Fix
Reduce the size of EngineInfo (from 28 to 24 bytes) by moving one of its attributes
2007-01-21 19:00:31 +00:00
tron bc523186e0 (svn r8314) -Fix
-Codechange: Move the railtype from EngineInfo to RailVehicleInfo, because having a railtype for non-rail vehicles isn't that useful
2007-01-21 16:08:18 +00:00
maedhros 7a7562d8e2 (svn r8300) -Codechange: Add a prototype for DrawPlayerIcon to players.h and include that
instead of using externs. Also move DrawPlayerIcon from graph_gui.cpp to
players.cpp.
2007-01-21 11:49:18 +00:00
tron 7af3094bc3 (svn r8275) -Fix
Factor common data tables and use a bit more sensible names
2007-01-19 06:08:04 +00:00
peter1138 4b4c5a403b (svn r8129) -Codechange: Change data tables to use split off palette map. And
include a file missed last time...
2007-01-14 19:59:25 +00:00
peter1138 92d418b031 (svn r8128) -Codechange: Split sprite and palette remap into separate 32 bit values.
This lets us increase the sprite width from 14 to up to 29 bits, 
effectively nulling the old sprite limit. Table changes in next commit.
2007-01-14 19:57:49 +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