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
belugas
24a34eec9b
(svn r6641) -Fix(6639): Wongly converted SetWidgetLoweredState
2006-10-04 19:27:53 +00:00
belugas
6444b0e781
(svn r6639) -CodeChange : Conversion of SetWidgetLoweredState to SetWindowWidgetLoweredState, in order to follow pre-established standard
2006-10-04 19:11:43 +00:00
belugas
0305adeb12
(svn r6634) -Fix(r6377): Do not change a widget state after a DrawWindowWidgets, as it is a bit useless
...
-Fix(r6562): Use the correct widget index for enabling
2006-10-04 00:51:13 +00:00
belugas
17eb65050b
(svn r6631) -Codechange: Use accessors for click_state.
...
Another step toward merging XTDwidget.
The only two files not converted (window.h and widget.c) will be done at the very last commit)
2006-10-03 20:16:20 +00:00
belugas
753b572400
(svn r6619) -Codechange: Use accessors for disabled_state.
...
Another step toward merging XTDwidget.
The only two files not converted (window.h and widget.c) will be done at the very last commit)
2006-10-03 02:08:15 +00:00
belugas
2c45339e0a
(svn r6612) -Codechange: Use accessors for hidden_state.
...
Another step toward merging XTDwidget.
The only two files not converted (window.h and widget.c) will be done at the very last commit)
2006-10-02 00:28:31 +00:00
belugas
4ebb3857e7
(svn r6599) -Codechange: Add accessors around the members click/disabled/hidden_state of Window
...
This is the first step toward merging XTDwidget.
2006-10-01 01:32:07 +00:00
belugas
a113295622
(svn r6596) -Fix(r6562) : Add missing resize_window_widget.h to MSVC projects
2006-10-01 00:38:46 +00:00
belugas
1445dfddbb
(svn r6576) -CodeChange : Move depot_gui.c on "Gui Source codes" section of MSVC project files
2006-09-29 16:57:12 +00:00
belugas
1c56a5ae0f
(svn r6499) -Codechange: Finally, got "byte event" outside of the union WindowEvent, which is now a struct
2006-09-23 02:39:24 +00:00
belugas
b51d58a44c
(svn r6485) -NewGRF Feature: Match the order of TTDPatch's currencies with those used in OTTD.
...
This will not reorder OTTD's currencies, but will make it so that
currencies affected by a grf will be those aimed by the writer.
2006-09-20 00:34:06 +00:00
belugas
32077448ba
(svn r6484) -Undo (partly)r6289. If a grf writer wants a string been only a space, why should it be blocked?
...
It is the wrong test at the wrong place
2006-09-20 00:24:38 +00:00
belugas
f9ea48bf3d
(svn r6454) -Fix(r6108) : Allow custom currency to display both prefix and suffix
...
-Codechange : Divide rate of conversion from grf by 1000, to match OTTD internal system
2006-09-15 02:52:17 +00:00
belugas
79971ac119
(svn r6453) -Feature: FS#305 Turkish currency (jnmbk)
2006-09-15 02:33:40 +00:00
belugas
f01e761f80
(svn r6423) -Codechange: Replace two magic numbers by appropriate enum/define value
2006-09-08 03:59:38 +00:00
belugas
c05c81f35c
(svn r6289) -Fix(r6108) : case 0x48 (generic text) should not have been set over newstations.
...
It grabbed everyting. Instead, we are now using ids for that purpose, 0xC9, oxD0, 0xDC (FS#304 by Osai)
- Protect newgrf text from entries of 1 char and fewer
- Protect currency name from an overrun of ids
Thanks to glx
2006-09-01 02:56:02 +00:00
belugas
5771cd10f9
(svn r6205) -CodeChange : use a switch case instead of a cascade of if
...
-CodeChange : rename var Engine *e to Engine *eng, since we have WindowEvent *e in same fnct
-CodeChange : fix a broken tabulation on a switch case. SOme breathing spaces too
2006-08-29 00:17:47 +00:00
belugas
a4d69aa9f7
(svn r6131) -Codechange : Complete all missing _ttdpatch_flags entries
...
-Feature : both unifiedmaglevmode are now set.
Maglev and monorail are not allowed to run on each other tracks and will not be.
Setting those flags will allow grfsets as the Norvegian one to be loaded
-Codechange : link the TTDPatch's irregularstations with OTTD's nonuniform_stations
-Codechange : Reformat the whole array (thanks Rubidium, it sure looks better now)
2006-08-25 19:18:16 +00:00
belugas
c9b32982fc
(svn r6108) -NewGRF Feature: Implement currencies replacment via grf file.
...
All properties can now be modified i.e:
Introduction date for euro conversion
Currency name, decimal separator, currency symbol (before or after amount)
and the rate compared to the base currency, the british pound
2006-08-25 00:41:10 +00:00
belugas
0189b8994d
(svn r6107) -Fix r6089: add STRGEN preprocessor flag and string.c to strgen vs 80 project
...
Carbon copy of Darkvater's r6105
2006-08-25 00:35:11 +00:00
belugas
8561879ea6
(svn r6082) -CodeChange : Remove the unneeded table/sprites.h include in newgrf_cargo.h.
...
Set it in genworld_gui.c instead, as it is really needed
2006-08-24 01:25:00 +00:00
belugas
9bb2a97e57
(svn r6081) -Fix(6054) : Silenced a MSVC warning on compiling (thanks MaulinMonkey)
2006-08-23 23:23:14 +00:00
belugas
4c2abf1de5
(svn r6046) CodeChange : Rename WWT_5 Widget type to WWT_LABEL : a centered label
...
CodeChange : Move almost all fixed strings from ON_PAINT event to Widget array using WWT_LABEL.
Feature : All "Select Refit Cargo" are now centered, instead of been left aligned
2006-08-22 15:23:25 +00:00
belugas
811e79ba4c
(svn r5839) Fix : A ship in a depot must be stopped before allowed to be cloned.
...
As this is standard behaviour for all other vehicle types...
2006-08-11 03:07:46 +00:00
belugas
5280b9302c
(svn r5785) Fix(5771) : Silenced a warning in MSVC that prevented from compiling.
2006-08-06 01:51:57 +00:00
belugas
b36cbeba58
(svn r5627) Fix (r5626) : Forgot to rename one instance make_screenshot to current_screenshot_type
2006-07-28 22:01:43 +00:00
belugas
ecc89d5965
(svn r5626) CodeChange : Remove the global _make_screenshot and implement a more flexible mechanism
...
Simplification of the handling of the main_gui menus,
Removal of repetitions and Hiding the internals of screenshots.
Thanks to glx, Rubidium and Truelight for pointers
2006-07-28 21:51:00 +00:00
belugas
6082507fea
(svn r5609) CodeChange : Apply coding style
2006-07-26 03:33:12 +00:00
belugas
507cc6146e
(svn r5512) Fix : Remove a warning on MakeItalianTownName.
...
While at it, adjust the different parts of the generator.
Now, masculin is not linked to generic suffix,
and feminin is not linked to river-name suffix
2006-07-17 20:27:17 +00:00
belugas
40021f15f0
(svn r5504) Feature : Added Italian town name generator. (sidew)
2006-07-16 00:32:00 +00:00
belugas
5606e6d7b6
(svn r5496) -CodeChange: Removed two compiler warnings
...
- add newline at end of file in currency.c
- remove unused (for now) CargosChangeInfo
2006-07-14 17:54:04 +00:00
belugas
94692a2905
(svn r5464) [Behaviour Fix] : When starting the game, the system will now verify the presence of music files in gm forlder.
...
A song can now be removed from the programmed list (in custom list 1 and 2) by clicking on it.
Added music.c[ch] files, to make it all a bit cleaner.
Now, the name of the gm file is associated with the title of the song.
2006-07-07 02:44:51 +00:00
belugas
48a7edd81f
(svn r5431) Language : Remove some unused airport related strings
2006-06-29 17:39:14 +00:00
belugas
91c9f46a5f
(svn r5404) Fix (r5391) : Yet another typo. Nothing specatular :)
...
Spotted by gigajum
2006-06-28 17:46:55 +00:00