belugas
15a2c71a01
(svn r9679) -Codechange: use enums to identify transparency widgets and add a bit of documentation (patch by Wolf01)
2007-04-19 18:51:40 +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
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
belugas
addcae43fa
(svn r9664) -Documentation: Doxygen corrections,errors and omissions
2007-04-17 21:09:38 +00:00
belugas
607a55f4ec
(svn r9662) -Documentation: Doxygen corrections and @file omissions
2007-04-17 20:23:13 +00:00
belugas
c39ab93daa
(svn r9658) -Codechange: CT_FOOD is not part of temperate climate, place it accordingly in arctic.
...
It could be put in tropic too, but it can be placed in both, so first to catch it...
2007-04-17 19:08:00 +00:00
belugas
792339554f
(svn r9653) -Codechange: Indicate the proper function names in the GRF messages
2007-04-16 20:56:19 +00:00
belugas
44143b8cdb
(svn r9652) -Fix(r9651): "const" keyword forgotten. Spotted by glx.
...
I guess i'm a bit eager to have a writable array for newindustries ;)
2007-04-16 19:55:17 +00:00
belugas
a5bd48b23d
(svn r9651) -Codechange: make legend system of smallmap a little bit less magic with the help of a struct and not an array of bytes
2007-04-16 19:44:22 +00:00
belugas
fc6cf587cd
(svn r9650) -Documentation: Finalize doxygen comments for town_land.h
2007-04-16 19:26:01 +00:00
belugas
cc647a08a0
(svn r9644) -Codechange: if else cascade into a switch case
2007-04-16 02:56:48 +00:00
belugas
61c99f99a2
(svn r9643) -Codechange: Simplify a test.
2007-04-16 02:53:55 +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
82ad5a6d9c
(svn r9580) -Documentation: Correction of doxygen function declarations
2007-04-09 15:06:24 +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
93acc50678
(svn r9578) -Codechange: Cleanup of industry_cmd (Step-10). Use industry's spec map_colour for smallmap industry color code drawing
2007-04-09 01:14:43 +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
12addc1bbe
(svn r9574) -Fix(r9520, FS#721): Oil Rig ( or industry with behaviour INDUSTRYBEH_BUILT_ONWATER) should check all tiles before leaving the test. A tile in water does not ensure that all required tiles will necessary be on water.
2007-04-08 00:29:12 +00:00
belugas
1c97841ff6
(svn r9569) -Fix(r9567): testing mode leftover...
2007-04-06 12:57:15 +00:00
belugas
d4d5ce7ee5
(svn r9568) -Documentation: doxygen and comment changes: Root of src is finally done. Now, time to start clearing as much as possible
2007-04-06 04:10:19 +00:00
belugas
15d360c7f6
(svn r9567) -Fix(9555, FS#718): The industry ID been collected was just an index in a out of phase array. Now, ensure that the ID will really be an IndustryType
2007-04-06 02:12:15 +00:00
belugas
a1b7fb8909
(svn r9559) -Documentation: doxygen and comment changes: 'U' and 'V' now. Almost done. Yeah. I know, I've already said that...
2007-04-04 04:08:47 +00:00
belugas
f81217bcf4
(svn r9558) -Documentation: doxygen and comment changes: 'T' now. Almost done
2007-04-04 03:21:14 +00:00
belugas
9b6bf9bd16
(svn r9557) -Codechange: Add a forgotten file to the project lists
2007-04-04 02:02:49 +00:00
belugas
dfe5533db6
(svn r9556) -Documentation: doxygen and comment-style changes. 'R', 'S'.. The end of the preliminary work is near
2007-04-04 01:35:16 +00:00
belugas
f12d1a3f0a
(svn r9555) -Codechange: Cleanup of industry_cmd (Step-9). Use in-game appearing chances for industry creation.
2007-04-04 00:32:40 +00:00
belugas
64f2e6ef07
(svn r9552) -Documentation: Some more doxygen work, adding comments too
2007-04-03 17:19:06 +00:00
belugas
56943ab584
(svn r9551) -Documentation: Some more doxygen work
2007-04-03 16:12:28 +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
b1e0fdfd2a
(svn r9549) -Codechange: Add definition of callbacks and callback masks for both industries and industry tiles
2007-04-03 00:01:18 +00:00
belugas
d58f9ef7b4
(svn r9545) -Documentation: Some corrections to previous doxygen work
2007-04-02 14:20:31 +00:00
belugas
65bc46082e
(svn r9542) -Fix(FS# 712): When checking if a vehicle is on a given tile, and you are working on the ground tile, do not take aircrafts into account, as they do not pose any danger for the construction/destruction/conversion itself. Z stuff, in other words
2007-04-01 11:11:49 +00:00
belugas
377fbf9eb7
(svn r9530) -Codechange: Replace a direct industry type access by a behaviour
2007-03-31 01:16:17 +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
386e298acd
(svn r9523) -Cleanup: doxygen changes. Time to take care of "R"
2007-03-28 20:41:35 +00:00
belugas
65cc1ae5e7
(svn r9521) -Fix(9520): Partly revert, accidentally commited an unnecessary change
2007-03-28 20:11:00 +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
fea5d98518
(svn r9470) -Fix: Should not have committed that file
2007-03-26 00:01:42 +00:00
belugas
ac784b5fbe
(svn r9469) -Fix(r3720): The maximum year allowed for to_euro conversion of custom currency was set to 1000, making it impossible to ever have one. Now, with 3000, it should be a little more comfortable
2007-03-25 23:57:09 +00:00
belugas
683aae8abf
(svn r9467) -Fix(FS#703,6108): When resetting the array of currencies, the custom currency was reset too, thus loosing the setting a user could have used for it.(glx)
2007-03-25 23:42:55 +00:00
belugas
ff9bbf6bc3
(svn r9401) -Fix(9400): was not supposed to commit that file
2007-03-22 04:10:05 +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
6e9ab4f7b8
(svn r9399) -Feature: Openttd.cfg will now present landscape patch entry as been temperate, arctic, tropic or toyland.
...
This is the first usage of the callback conversion system of settings loading
2007-03-22 03:35:18 +00:00
belugas
deca0cc3fa
(svn r9398) -Feature: Allow for a conversion callback system while reading configuration file, in case of wrong value.
...
This is the basic step, no patch setting is actually using it, so far
2007-03-22 03:15:58 +00:00
belugas
ca2fc01944
(svn r9391) -Documentation : correct Doxygen of comments and @file inclusion. Time for P and Q files
2007-03-21 17:42:43 +00:00
belugas
57557ba599
(svn r9390) -Documentation : correct Doxygen of comments and @file inclusion. This time, brought to you by the letter O
2007-03-21 15:19:33 +00:00
belugas
dcd510c81f
(svn r9385) -Cleanup: doxygen changes. Today, we are exploring the letter N.
2007-03-21 03:06:21 +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
belugas
78b4c42f17
(svn r9215) -Documentation : correct Doxygen of comments
2007-03-15 17:42:32 +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
6def45089d
(svn r9108) -Fix(9093) : MSVC was a bit unhappy with some of the type changes. So basically, widening the types makes the difference
2007-03-11 02:53:44 +00:00
belugas
e595130668
(svn r9106) -Documentation: forgotten usage of m2 (storing TownID) in statue unmovable tile type
2007-03-11 01:22:21 +00:00
belugas
0a8e1aa8d6
(svn r9089) -Codechange: Remove the 32 widgets limit on News Options window.
...
-Codechange: Use the newly created WWT_TEXT widget.
-Cleanup: remove a lot of magic numbers, make the whole window more flexible, with now the possibility to easily add new type of news events.
Thanks glx for ideas from an old patch
2007-03-10 03:33:43 +00:00
belugas
3e91313326
(svn r9088) -Add : a new type of widget, called WWT_TEXT. It is a simple truncated string. It will be usefull on windows where lot of simple text is always drawn on the WE_PAINT event, making the code clearer. For now, left, right (total size of the window), top, color and data are necessary to use it. Maybe more features will be available soon.
2007-03-10 03:25:15 +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
belugas
7a58642b6c
(svn r9042) -Add : Maedhros as a developper
2007-03-06 22:16:43 +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
ed55f5f073
(svn r8956) -Documentation : complete reference of m6 usage is now available.
...
A few little cleanups here and there.
2007-03-01 20:10:49 +00:00
belugas
7fd21fb29b
(svn r8951) -Cleanup: Another bunch of re-formating and re-ordering.
...
Among which, tiles area now read m1..m6, while the bits are always enumerated from 7 to 0
Hoping it will stay that way...
2007-03-01 04:24:19 +00:00
belugas
978d7da818
(svn r8950) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
2007-03-01 01:24:44 +00:00
belugas
6dbf9f2f41
(svn r8862) -Cleanup: doxygen changes, again. Mostly @files missing tags and a few comments style.
...
Some documentation addition, when i can easily supply them
2007-02-23 18:55:07 +00:00
belugas
6d199fcdb7
(svn r8859) -Cleanup: doxygen changes. Mostly @files missing tags and a few comments style.
2007-02-23 11:50:43 +00:00
belugas
8ace4dd25c
(svn r8854) -Fix(r8853): Ctrl+s (save) without Ctrl does not produce desired result...
2007-02-23 02:18:17 +00:00
belugas
a723770836
(svn r8853) -Cleanup: doxygen changes. Correct forgotten c files to cpp files with the @file tag as well as a few general comments style
2007-02-23 01:48:53 +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
belugas
4d988c3506
(svn r8753) -Regression (r8455): Do not unilateraly decide that this engine is a single-headed. Only do it if it previously had no power and that now there is. Or something...
2007-02-16 01:35:18 +00:00
belugas
2b307647da
(svn r8752) -Cleanup: Reformat, re-arrange, correct tag errors on landscape.html.
...
No addition nor correction on actual data
2007-02-15 22:03:48 +00:00
belugas
1c013055b6
(svn r8535) -Feature: Allow lumbermill to cut trees only when they are full grown.
...
This does not affect output of the mill, but make the visual aspect of it more accurate.
Prior of this, the mill produced cargo of the same amount even if the trees are on their first stages of growth.
2007-02-02 15:14:28 +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
belugas
294723d03f
(svn r8365) -Cleanup: Remove unneeded and dead links, install Owner informations, add attribute m6.
...
More to come on that matter...
2007-01-23 02:31:49 +00:00
belugas
ac9d926606
(svn r8339) -Fix(r8331): MSVC seems to be a little more strict (or less intelligent) then other compilers when it comes to operator precedence.
...
A copy of code from train_gui.cpp to build_vehicle_gui.cpp was not exactly the same.
The earlier version did not require parenthesis to specify correct operator precedence.
2007-01-22 02:59:50 +00:00
belugas
7b9379e0de
(svn r8145) -Featurette: Allow for Tropic Farm to plant fields after producing cargo, like its counterpart in temperate climate.
2007-01-15 16:31:46 +00:00
belugas
a7914ca0b4
(svn r8112) -Codechange: MSVC solution files will now make it so that openttd will be THE startup project.
...
Take note that it will only be the case on a clean checkout, without any other files than those coming from that checkout.
2007-01-14 01:27:19 +00:00
belugas
5f9c891734
(svn r8050) -Codechange: Rename map member extra to m6, since its usage has been widden.
...
Only doc landscape_grid.html has been updated, landscape.html will be done latter.
-CodeChange: Replace a direct access to m6 with SetTropicZone in InitializeLandscape, as it is the only part of m6 still untouched without the brute-forced m6=0
2007-01-11 02:05:13 +00:00
belugas
8e20ae2e95
(svn r7556) -Fix(r7153): By handling the KeyEvent sooner in the events loops, the console command "screenshot no_con" did not had time to actually repaint the screen without the console before the screenshot. Forcing a redraw before it ensure that the feature acts as required. (to be ported to 0.5.0)
...
(thanks glx)
2006-12-25 01:40:33 +00:00
belugas
d23210e048
(svn r7432) -Fix(r7413) : The NO(cargo waiting) button of the StationList Window is now part of the cargo selection scheme. Again.
2006-12-08 02:25:04 +00:00
belugas
3d0820a184
(svn r7428) -Codechange: Give a more explicit name to the enum STATIONLIST_WIDGET_CARGONONE.
...
It is not "No Cargo selected", but rather station with no cargo waiting, thus STATIONLIST_WIDGET_NOCARGOWAITING.
Hoping it is now clearer for everyone (mainly me...).
Will fix the behaviour next time.
2006-12-07 21:21:02 +00:00
belugas
dc6eca9e16
(svn r7413) -Fix[FS#386,#412]: Station list window NONE button now behaves correctly.
...
-Fix: Clicking on SORT button (same window) does not reset everything anymore.
-Featurette: cargo, NONE and both ALL buttons are now shown fully down on pressed, as the text is deported by one pixel on y and y
Some widgets enum and code clean-up
2006-12-07 04:12:29 +00:00
belugas
c26dc76a7d
(svn r7198) -Codechange: Implement a circular tile search function.
...
Just provide the number of tiles per side, a pointer to a test function, the tile to start searching and voila.
Fixes [FS#364] by removing a lengthy and suboptimal random search pattern.
Thanks Rubidium.
2006-11-17 23:01:58 +00:00
belugas
ebd054b8d8
(svn r7121) -Fix(r1): Tell the town that this player has built a statue only if it really did happened
2006-11-09 18:31:06 +00:00
belugas
cfd69f21ff
(svn r7109) -Codechange: use map accessor IsClearWaterTile
2006-11-08 05:05:35 +00:00
belugas
54b0726d58
(svn r7083) -Fix 6631: Protect out of boundaries widget testing
2006-11-06 19:59:19 +00:00
belugas
56c81cc978
(svn r7001) -Codechange: _build_industry_trypes is now only used by industry_gui.c. Move it there.
...
-Codechange: _industry_type_cost is not defined, remove its declaration
2006-10-29 00:39:41 +00:00
belugas
283f7c065d
(svn r6966) -Fix(6965): Little typo while making the comment doxygen friendly
2006-10-27 16:18:47 +00:00
belugas
7effb8fd50
(svn r6965) -CodeChange : Add a climate bitmask member to IndutrySpec.
...
Removed a loop that used the array _build_industry_types for that purpose.
2006-10-27 15:54:24 +00:00
belugas
f48c419467
(svn r6930) -Codechange: Move industry name into IndustrySpec
...
-Codechange: member color_map is more related to random color, rename it as such
2006-10-24 19:19:25 +00:00
belugas
9c1e89b0c0
(svn r6904) -CodeChange : Cleanup of industry_cmd (Step-5).
...
Add member life_type to IndustrySpec and remove the now useless _industry_close_mode array
2006-10-23 16:35:27 +00:00
belugas
ed9ddfaba1
(svn r6793) -Fix(5464): When checking items on an array, make sure to respect boundaries(jez).
...
Made some comments code style compliant
2006-10-17 03:39:30 +00:00
belugas
c22b610c52
(svn r6777) -GuiChange: When painting a lowered button on CargoPaymentsRates, displace the content of one pixel to the right and to the bottom. This will make it look like a normal button
2006-10-15 03:40:53 +00:00
belugas
7c73dacea1
(svn r6730) Fix: Make Build HQ and Relocate HQ buttons of Player window behave as normal placement buttons, and not as push buttons.
2006-10-11 00:48:55 +00:00
belugas
ec87d1fad9
(svn r6663) -Codechange: Remove the 32 widgets limit on landscape generator.
2006-10-06 02:30:50 +00:00
belugas
67b88e7ed9
(svn r6661) Feature: Windows are not restricted to 32 widget items anymore.
...
The functions required to do so are to be found in window.h.
Rather then use the old deprecated disabled_state, hidden_state and click_state uint32 variables,
we now need to use accessors like SetWindowWidgetDisabledState, SetWindowWidgetHiddenState or SetWindowWidgetLoweredState.
This is the final commit for the merge of XTDwidget branch.
2006-10-06 01:33:27 +00:00
belugas
9d24f3df0a
(svn r6660) -Fix(r6631): Prevent the fast-foward button to toggle up and down when pressing shift.
...
The _fastforward and _pause bool are not exactly used as bool.
So, when doing test with them, amek it so that the will appear as such
2006-10-06 01:18:12 +00:00
belugas
7606b2707d
(svn r6645) -Fix(r6631): Forgot two click_state occurences
2006-10-05 02:29:01 +00:00
belugas
66206867fe
(svn r6644) -Fix(r6637): remove inline to allow MSVC compilation
...
-Fix(r5124): Add aircraft.h to MSVC projects
2006-10-05 02:26:27 +00:00
belugas
0257cc1496
(svn r6643) -Fix(r6631): Adjust proper disabled and lowered states of removal button on railtoolbar
2006-10-05 01:43:49 +00:00