Commit Graph

1880 Commits

Author SHA1 Message Date
rubidium a4898699c5 (svn r10719) -Codechange: since DParams are now 64 bits we should make NUM and COMMA handle writing 64 bit integers to the strings. 2007-07-29 12:13:22 +00:00
rubidium b0f2653eb8 (svn r10718) -Fix (r10698): when having a road corner on a slope removing the road bit perpendicular on the slope made the foundation disappear. 2007-07-29 12:11:50 +00:00
rubidium aeb992ce90 (svn r10717) -Fix: in-game console had a "transparent" part when opened in a game, while it did not in the menu. 2007-07-28 21:00:31 +00:00
rubidium b6c3a127af (svn r10716) -Codechange: not all windows' minimum size is actually their minimum size, so take the size of the window after WE_CREATE has been called as bare minimum size. 2007-07-28 20:59:30 +00:00
truelight 3a45534e4e (svn r10715) -Fix: limited-fs code was broken 2007-07-28 12:45:27 +00:00
glx 94fa0ec289 (svn r10714) -Fix r10696: MSVC performance warning 2007-07-28 00:19:49 +00:00
KUDr 5eb4036eb2 (svn r10713) -Cleanup (r10711): too long string buffers, unsafe sprintf used (Darkvater) 2007-07-27 23:49:48 +00:00
KUDr 51b26f96d2 (svn r10712) -Fix (r10711): \0 at the end of string constant (glx) 2007-07-27 22:32:48 +00:00
KUDr f9411f30c4 (svn r10711) -Fix [Win32]: take default language from current user's locale on Windows (In-) 2007-07-27 22:19:19 +00:00
rubidium 1c4b953f06 (svn r10710) -Codechange: allow automatic downsizing of the group window. Same as idea as for the previous commits, i.e. you could already do so but the button would be out of reach. 2007-07-27 22:13:12 +00:00
rubidium b54b275ee4 (svn r10709) -Codechange: allow automatic downsizing of the load game/save game windows. These windows also already supported downsizing, but again the resize button would be unreachable. 2007-07-27 22:11:22 +00:00
rubidium db0a4153a6 (svn r10708) -Codechange: allow automatic downsizing of the smallmap window in case of low resolutions; one could already make the window smaller, but the resize button was unreachable. 2007-07-27 22:10:21 +00:00
rubidium e68a3e9777 (svn r10707) -Codechange: account for the main toolbar and status bar when determining the maximum height for a window. 2007-07-27 22:08:59 +00:00
rubidium 705696f736 (svn r10706) -Codechange: allow resizing the multiplayer server list window. 2007-07-27 19:57:52 +00:00
rubidium 8b5961d5e0 (svn r10705) -Fix (r10704): some windows were not correctly initialized as they resized the window themselves and that should be interfered by making sure the window is resized in the right "step" size.
-Fix (r10704): call the WE_RESIZE when resizing during initialization of the windows.
2007-07-27 19:09:31 +00:00
rubidium c03cb2c8db (svn r10704) -Codechange: provide an infrastructure to have resizable windows that are smaller than the default window size. 2007-07-27 12:49:04 +00:00
miham f01f2c3a66 (svn r10703) -Update: WebTranslator2 update to 2007-07-27 10:33:19
croatian   - 1 fixed, 6 changed by knovak (7)
2007-07-27 08:33:33 +00:00
rubidium e8acc3d35d (svn r10702) -Fix: "Can't build ..." instead of "Can't remove ..." message shown for road stops for trucks/cargo trams. 2007-07-27 03:27:16 +00:00
belugas 3f7a7261d6 (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. 2007-07-27 03:07:05 +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 205e700b26 (svn r10699) -Fix (r10698): bridge middle parts were drawn too high if the southern bridge head has a foundation. 2007-07-26 18:36:32 +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 5bd241eb5b (svn r10697) -Codechange: give a more sensible names to some of the unkX variables. 2007-07-26 15:37:19 +00:00
rubidium 02ab86631e (svn r10696) -Codechange: remove duplication of the "make sprite transparent" code. 2007-07-26 14:07:11 +00:00
rubidium d031da78d8 (svn r10695) -Fix [FS#1079]: building single pieces of road over tramtrack or vice versa on slopes did not work as expected. 2007-07-26 11:19:03 +00:00
rubidium fda75ae603 (svn r10694) -Codechange: update the server information in the game list every once in a while so the information stays fairly up-to-date when you are looking through the servers. 2007-07-26 09:53:58 +00:00
rubidium 715c5566a3 (svn r10692) -Fix (r10691): those good old days that LT_NORMAL was still called LT_NORMAL :) 2007-07-25 19:36:51 +00:00
rubidium aa36c607b4 (svn r10691) -Codechange [FS#509]: simplify GetTransportedGoodsIncome to make it more obvious and less hidden what actually happens. Based on a patch by rfalke. 2007-07-25 19:26:33 +00:00
rubidium 9e3ee0e689 (svn r10690) -Codechange: use the enum that describes all callback IDs in favor of "just" using an untyped integer. 2007-07-25 19:06:29 +00:00
rubidium 77b0e30b76 (svn r10689) -Documentation [FS#1057]: lots of function documentation written by Progman. 2007-07-25 19:03:23 +00:00
rubidium 5833ceb5a2 (svn r10688) -Cleanup: coding style cleanups missed in the last few cleanups. 2007-07-25 17:18:13 +00:00
rubidium 669f879632 (svn r10687) -Fix (r10686): subversion does not like it when you change code when you are typing the commit message. 2007-07-25 17:07:38 +00:00
rubidium 8131ce7e21 (svn r10686) -Fix [FS#1058]: determining whether there is a tunnel going under the lowered area is only needed in two directions instead of all four, so take the directions (one for each axis) to the nearest border (along the given axis). Furthermore GetTileZ did much more than absolutely necessary. 2007-07-25 15:45:46 +00:00
rubidium 122ce21f32 (svn r10685) -Fix [FS#1076]: graphical glitches when the "link landscape toolbar" patch is turned on when opening one of the construction toolbars. 2007-07-25 11:27:30 +00:00
rubidium b290268645 (svn r10684) -Codechange: some more coding style related changes. Primarily moving { to a new line. 2007-07-25 00:16:30 +00:00
rubidium e640900e8a (svn r10681) -Codechange: do not determine whether a tile is a hangar based on the graphics index to be drawn on the given tile, but do it based on the specification of the location of hangars of the airport. 2007-07-24 21:48:50 +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 5d3f058b65 (svn r10673) -Cleanup: some assorted style cleanups. Primarily type* var -> type *var. 2007-07-24 17:01:23 +00:00
rubidium 0d9a51de6d (svn r10672) -Codechange: typify some parameters/variables. 2007-07-24 13:03:24 +00:00
truelight 01d08680e1 (svn r10671) -Codechange: don't mix both lookup and temp-variable-with-value-of-lookup (skidd13) 2007-07-24 12:29:47 +00:00
belugas d87359a827 (svn r10670) -Fix: Use proper initialization for grf_prop override member 2007-07-24 01:29:42 +00:00
belugas 7da7523caa (svn r10669) -Codechange: Removed redundant comment
-Codechange: Add placeholder for yet another industry "variable" to code
2007-07-24 01:26:57 +00:00
truelight b0d618c66b (svn r10665) -Codechange: replace magic 15 with MAX_TILE_HEIGHT (bilbo)
-Codechange: replace magic 13 with MAX_SNOWLINE_HEIGHT (bilbo)
-Codechange: assure _map_height_bits is always of correct size (Rubidium)
2007-07-23 19:30:36 +00:00
truelight 33d78635ef (svn r10664) -Codechange: simplify a small piece of code (skidd13) 2007-07-23 19:24:32 +00:00
truelight 155b912ebb (svn r10663) -Fix r10662: bad me, didn't comply with coding style, as penalty I updated the surrounding code to comply with coding style too; I will never do it again (I hope :p) 2007-07-23 16:48:19 +00:00
truelight ef0be0e1dc (svn r10662) -Add: added 'V' as new shortcut for new viewport (bilbo)
-Add: added 'M' as new shortcut for smallmap (bilbo)
-Add: added '+' and '-' as shortcuts to zoom in the mainview (bilbo)
-Add: added support for other keycodes to be possible used in the future (bilbo)
2007-07-23 16:39:27 +00:00
truelight 4c1912f881 (svn r10661) -Documentation: documented slope.h (Progman) 2007-07-23 16:30:59 +00:00
truelight 2f0448ddba (svn r10660) -Codechange: simplified tunnel cost algorithm (bilbo) 2007-07-23 16:15:40 +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
glx 8367e16809 (svn r10658) -Add: support for autosave_on_exit in the console, so dedicated servers can use it 2007-07-23 15:28:02 +00:00
truelight 045a51ce62 (svn r10657) -Fix r10655: commit didn't comply with coding style (tnx glx :)) 2007-07-23 15:20:20 +00:00
truelight 3ce600a644 (svn r10656) -Fix [FS#1068]: GetPartialZ returned wrong value for SLOPE_STEEP_E (frosch) 2007-07-23 15:18:53 +00:00
truelight c4e47c07c9 (svn r10655) -Fix [FS#1070]: Trolly AI didn't know about steep slopes, and used wrong tileh in some cases (frosch) 2007-07-23 15:14:45 +00:00
orudge 6196ff1263 (svn r10651) -Fix: Fix chdir problem with open/save dialog on OS/2 (Paul Smedley) 2007-07-22 17:21:25 +00:00
peter1138 724ac18d1e (svn r10649) -Fix (r9962): autoscroll (pointer near screen edge) didn't work 2007-07-22 13:16:49 +00:00
miham 251a445438 (svn r10648) -Update: WebTranslator2 update to 2007-07-21 20:34:31
croatian   - 44 fixed, 143 changed by knovak (187)
2007-07-21 18:34:43 +00:00
KUDr d3c20d65bd (svn r10647) -Fix: AutoPtrT::operator =() didn't delete old object 2007-07-21 14:01:12 +00:00
KUDr 43ddd64817 (svn r10646) -Cleanup: AutoPtrT<>::Release() renamed to Detach()
-better describes what it does
 -was inconsistent with CCountedPtr<>::Release()
2007-07-21 13:45:15 +00:00
KUDr af39f3a084 (svn r10645) -Fix (r10644): file contents seems to be 3x there 2007-07-21 12:39:46 +00:00
rubidium 5083f22d1d (svn r10644) -Merge (from NoAI): framework for reference counted objects (pointers). 2007-07-20 18:44:04 +00:00
rubidium 3f983ff1f2 (svn r10643) -Merge (from NoAI): properly counting the amount of signs instead of using the size of the sign pool. 2007-07-20 18:35:33 +00:00
belugas b9b59ec169 (svn r10641) -Fix(r10638): Forgotten Son... err...include 2007-07-20 17:32:27 +00:00
belugas fabd64e1e6 (svn r10640) -Fix(r10638): little typo... 2007-07-20 17:25:07 +00:00
belugas f9d3463af1 (svn r10639) -Codechange: Give meaninfull name to a magic number 2007-07-20 17:14:03 +00:00
belugas d847b30c98 (svn r10638) -Codechange: Save the mapping of the industries and tiles, making them persistent. 2007-07-20 16:50:11 +00:00
belugas 1b1fbdd331 (svn r10637) -Fix: Enable the Random Industries in scenario editor if setting Number of Industries is not NONE.
Spotted by skiddl13.
Thanks to glx for help in finding and better looking code :)
2007-07-20 16:08:28 +00:00
belugas c0b044ac45 (svn r10635) -Codechange: Correct some typos and code beautifying (a little bit) 2007-07-20 14:49:41 +00:00
peter1138 d93fcea1f8 (svn r10628) -Fix (r10606,FS#1055): Revert r10606 and fix the plural problem another way. 2007-07-19 17:28:55 +00:00
rubidium 58a3b5e60d (svn r10627) -Fix [FS#1052]: be consistent with the space between the company name and the player number, i.e. always put a space between them. 2007-07-19 17:27:49 +00:00
miham 6cc34e8cb7 (svn r10626) -Update: WebTranslator2 update to 2007-07-19 19:23:12
american   - 4 fixed by WhiteRabbit (4)
2007-07-19 17:23:28 +00:00
rubidium 4a52a6833e (svn r10624) -Fix [FS#1047]: the production of banks could not be modified (either in scenario editor or with the cheat). 2007-07-19 16:24:48 +00:00
belugas 7a656fde4e (svn r10622) -Feature: Introduction of the CBID_INDUSTRY_AVAILABLE's handling, in fund industry window.
In order to stay as much consistent with the specs, the fund window will perform (if required) the callback every game-day.  TTDPatch performs the same call every second, but after discussions with Csaboka, we agreed that it was not required to be that intensive.  So a game-day is plenty enough.
2007-07-19 01:47:32 +00:00
belugas f7f6ad362e (svn r10621) -Codechange: install a struct holding the user's selection from _fund_gui.
-Codechange: merge WE_TIMEOUT and WE_ABORT_PLACE_OBJ, as they both do  the same thing. 
-Feature: Any time you place an industry, even if it fails, the button will reset and the cursor will return to normal.
2007-07-19 01:35:48 +00:00
miham 53dd79bf9a (svn r10620) -Update: WebTranslator2 update to 2007-07-18 19:37:17
czech      - 10 fixed, 13 changed by Hadez (23)
estonian   - 20 changed by kristjans (20)
galician   - 34 fixed, 5 changed by Condex (39)
slovak     - 4 fixed by lengyel (4)
2007-07-18 17:37:34 +00:00
belugas f47f1e723c (svn r10619) -Codechange: Use shorter variable/member names and add some code separation.
-Codechange: Use a stringID variable instead of always refering to the _fund_gui.text[foo] member
-Documentation: Add a few explanatory comments here and there
2007-07-18 17:05:23 +00:00
belugas c62d0719ae (svn r10618) -Fix(r10167): remove unneeded comment 2007-07-18 16:02:42 +00:00
belugas 0fada78480 (svn r10617) -Codechange: code style changes (removing an erroneous tab plus switch case alignment)
-Codechange: give enum values to widgets
2007-07-18 15:59:08 +00:00
glx d8690139b4 (svn r10607) -Fix r10605: use '&&' in preprocessor directives (MSVC doesn't like 'and') 2007-07-18 02:08:56 +00:00
peter1138 b6d6e407ad (svn r10606) -Fix (r8826): plural and single cargo names were mixed up. 2007-07-17 20:32:27 +00:00
rubidium 736eafaf8e (svn r10605) -Fix [FS#1046]: also OpenBSD does not know wchar. Patch by Matthias. 2007-07-17 16:59:21 +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
peter1138 306c21d6c9 (svn r10603) -Codechange: avoid direct access to _engine_info 2007-07-17 06:56:09 +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
belugas 0f8e7e79be (svn r10600) -Codechange: code-stylising the gui switch-case code 2007-07-16 23:48:25 +00:00
rubidium a58a18bb50 (svn r10593) -Fix [FS#1038]: one could not remove locks that were build in a (very) old version of OpenTTD. 2007-07-16 21:00:40 +00:00
miham 3cf51c6188 (svn r10592) -Update: WebTranslator2 update to 2007-07-16 19:35:30
brazilian_portuguese - 4 fixed by tucalipe (4)
catalan    - 4 fixed by arnaullv (4)
croatian   - 7 fixed by knovak (7)
danish     - 10 fixed, 7 changed by ThomasA (17)
dutch      - 4 fixed by habell (4)
estonian   - 4 fixed by kristjans (4)
finnish    - 30 fixed by habazi (30)
korean     - 4 fixed by darkttd (4)
norwegian_nynorsk - 16 fixed by pollux (16)
piglatin   - 12 fixed by adammw (12)
portuguese - 4 changed by izhirahider (4)
russian    - 4 fixed by Smoky555 (4)
slovenian  - 4 fixed by Necrolyte (4)
spanish    - 4 fixed by eusebio (4)
ukrainian  - 4 fixed by fevral13 (4)
2007-07-16 17:37:40 +00:00
rubidium efc7fdf2fd (svn r10587) -Codechange: move the string/dparam related stuff from variables.h to strings.h 2007-07-16 09:16:58 +00:00
miham 4896d437b1 (svn r10584) -Fix: [Translations] Fixed translations screwed up by translator 2007-07-15 18:14:21 +00:00
miham 3a4f5a9d26 (svn r10583) -Update: WebTranslator2 update to 2007-07-15 19:17:18
croatian   - 135 fixed, 2 changed by knovak (137)
czech      - 3 changed by Hadez (3)
finnish    - 29 fixed by habazi (29)
french     - 4 fixed by Skiper (4)
german     - 21 fixed, 1 changed by chu (22)
hungarian  - 4 fixed by miham (4)
italian    - 4 fixed by lorenzodv (4)
japanese   - 4 fixed by ickoonite (4)
portuguese - 4 fixed by izhirahider (4)
romanian   - 10 fixed by kneekoo (10)
traditional_chinese - 4 fixed by xbddc (4)
2007-07-15 17:17:44 +00:00
KUDr d71d48434d (svn r10578) -Fix [YAPF, ships]: Ships received curve penalty for non-diagonal straight move. (JazzyJaffa)
-The fix in cost calculation uncovered bug in estimate calculation. Ships now use the same estimate algorithm as trains.
2007-07-15 11:45:38 +00:00
glx 6474a5a957 (svn r10575) -Fix r10573: misplaced ) 2007-07-15 00:45:02 +00:00
belugas 89d872a625 (svn r10573) -Codechange: Use function CheckIfCallBackAllowsAvailability for random map generation as well as for ingame random industry creation 2007-07-15 00:26:12 +00:00
belugas 318f19f5a4 (svn r10572) -Codechange: Add function CheckIfCallBackAllowsAvailability for industries 2007-07-15 00:19:40 +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 7aec26887c (svn r10567) -Add [FS#915]: a "group" with ungrouped vehicles. Patch by Matthias Wolf. 2007-07-14 23:10:27 +00:00
rubidium 197245eefe (svn r10566) -Fix [FS#1025]: a NewGRF could have a information message that is too long for the internal buffers to handle. We should not crash on such a case even though the message is too big for the window anyway. 2007-07-14 22:37:40 +00:00
rubidium b8e302d2a0 (svn r10562) -Fix: most of the MorphOS issues; MorphOS doesn't know about wchars, so disable all code that has to use wchars for MorphOS. 2007-07-14 20:30:35 +00:00
truelight a2a3b7da24 (svn r10561) -Fix: don't give 'unused variable' warnings when disabling asserts 2007-07-14 20:21:02 +00:00
miham 452d20487e (svn r10559) -Update: WebTranslator2 update to 2007-07-14 19:32:31
american   - 8 fixed by WhiteRabbit (8)
catalan    - 15 changed by arnaullv (15)
estonian   - 6 fixed by kristjans (6)
slovenian  - 6 fixed by Necrolyte (6)
2007-07-14 17:32:50 +00:00
rubidium 2763a427de (svn r10555) -Codechange/Fix: add a soft limit of 4096 "entities" in a station's waiting queue and a hard limit of 32768 so (malicious) people cannot cause a "denial of service" attack by filling cargo lists. 2007-07-13 20:46:53 +00:00
truelight a757ed52fd (svn r10552) -Fix [FS#1034, r10546]: opening Available Aircrafts segfaulted 2007-07-13 19:06:12 +00:00
miham 90a9c3acb8 (svn r10550) -Update: WebTranslator2 update to 2007-07-13 18:55:52
german     - 3 fixed by Neonox (3)
hungarian  - 2 fixed by miham (2)
slovak     - 6 fixed by lengyel (6)
traditional_chinese - 6 fixed by xbddc (6)
2007-07-13 16:56:07 +00:00
rubidium 02f00a254d (svn r10549) -Fix [FS#1031]: wrong tram catenary poles drawn in some bridge directions. 2007-07-13 15:12:36 +00:00
truelight 84303d0396 (svn r10548) -Fix [FS#1020]: don't segfault when you quit in the end-of-the-game screen 2007-07-13 15:02:22 +00:00
truelight fe952911f5 (svn r10547) -Fix: when Cheat-Window is open and a new month happens, the window wasn't redrawn instantly 2007-07-13 15:01:16 +00:00
truelight a84dcf7682 (svn r10546) -Fix [FS#1026]: you can now have both Available Train as Available Ship window open 2007-07-13 14:51:55 +00:00
peter1138 243c59be6f (svn r10542) -Codechange: use class member instead of global variable for null ticks value 2007-07-13 13:03:20 +00:00
rubidium 5ed3482aac (svn r10541) -Fix [FS#1028]: cargo payment rates overflow.
-Fix: cargo payment rates diverge from cost rates making it impossible to make any profit after a certain number of years.
 Both are solved by stopping the inflation after 170 years; there is absolutely no point in continueing the inflation after that as it only makes the game have overflows at some point that cannot be solved; using larger variables only delays the inevitable.
2007-07-13 12:08:37 +00:00
truelight 3d684e3477 (svn r10537) -Backport r10536: added option for null-driver to configure how long it should run (-vnull:ticks=10000) 2007-07-13 10:46:07 +00:00
miham 1e08060929 (svn r10532) -Update: WebTranslator2 update to 2007-07-12 19:08:41
catalan    - 3 changed by arnaullv (3)
portuguese - 1 changed by izhirahider (1)
russian    - 6 fixed by Smoky555 (6)
ukrainian  - 6 fixed by fevral13 (6)
2007-07-12 17:08:56 +00:00
rubidium 7cd00468d6 (svn r10522) -Fix: the "build truck station" GUI showed that it would accept tourists when it does not, whereas the "build bus station" GUI did not show them when it did accept them. 2007-07-12 13:40:24 +00:00
rubidium 6f0db273d6 (svn r10521) -Fix: some NewGRFs did not check whether the newindustries bit was set, which breaks with a not-yet-finished-implementation of newindustries. 2007-07-12 13:25:06 +00:00
rubidium 07a1d4379e (svn r10520) -Fix: when a "can I build this industry tile here" callback did not fail, it doesn't automatically mean that the industry tile can be built there. 2007-07-12 09:15:57 +00:00
rubidium de084ace1c (svn r10519) -Fix: when getting a "nearby" tile, make sure you never roam outside of the map. 2007-07-12 08:10:40 +00:00
rubidium 9dee540233 (svn r10518) -Fix: use the location of the industry and not INVALID_TILE for production callbacks; makes looking at the environment of an industry a lot more useful. 2007-07-12 07:57:08 +00:00
rubidium bbe5d876cf (svn r10517) -Fix: the "closest distance to water/land" calculation gave the distance to the north-eastern border instead of the closest water/land. 2007-07-12 07:55:35 +00:00
rubidium be822ef976 (svn r10516) -Fix: if doing a lookup for a ID, scan the whole range instead of only the "new" ones because the old ones could be overriden too. 2007-07-12 07:53:53 +00:00
rubidium 5f7f99e381 (svn r10515) -Codechange: allow getting some more data about the environment of an industry. 2007-07-11 23:10:22 +00:00
rubidium 57268fa7e3 (svn r10514) -Codechange: add support for getting the nearest industry with a given type. 2007-07-11 22:57:47 +00:00
peter1138 1aaab031b2 (svn r10513) -Fix [FS#1022]: use vehicle subtile position to update cache, not tile, so that collision detection works on bridges and tunnels. 2007-07-11 21:31:34 +00:00
miham 2c517a3026 (svn r10510) -Update: WebTranslator2 update to 2007-07-11 19:01:42
brazilian_portuguese - 8 fixed by tucalipe (8)
bulgarian  - 33 fixed by thetitan (33)
catalan    - 6 fixed, 81 changed by arnaullv (87)
dutch      - 6 fixed by habell (6)
french     - 6 fixed by glx (6)
hungarian  - 4 fixed by miham (4)
italian    - 6 fixed by lorenzodv (6)
japanese   - 8 fixed by ickoonite (8)
korean     - 6 fixed, 17 changed by leejaeuk5 (23)
latvian    - 10 fixed by amjaliks (10)
portuguese - 6 fixed by izhirahider (6)
spanish    - 6 fixed by eusebio (6)
swedish    - 6 fixed by daishan (6)
2007-07-11 17:02:15 +00:00
peter1138 42c58e913c (svn r10509) -Codechange: cache expensive newgrf station variables during
sprite lookups/callbacks.
2007-07-11 16:37:20 +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 e497167dfd (svn r10506) -Fix: the (manual) building of banks was always rejected. 2007-07-11 08:20:57 +00:00
belugas fb92e30dfb (svn r10505) -Fix(r10249)[FS#1016]: Town was still trying to gather information for tiles on which it could not build. aising the values to 2 will prevent further invasion of the water-at-the-edge :) 2007-07-11 02:13:00 +00:00
belugas 5111c6205c (svn r10504) -Codechange: Shorten the test if no track bit has been found 2007-07-11 01:45:44 +00:00
belugas 8b17441704 (svn r10503) -Codechange: Mark Callback CBID_INDUSTRY_FUND_MORE_TEXT (cb38) as implemented. 2007-07-11 00:36:03 +00:00
rubidium 255102d223 (svn r10502) -Fix [FS#1017]: trying to get the town from a tile that can never be associated with a town. 2007-07-10 22:45:09 +00:00
rubidium 872e74c028 (svn r10501) -Fix [FS#1015]: error dialog was sometimes shown on all clients when a command failed instead of only the client that actually did the command. 2007-07-10 20:59:41 +00:00
rubidium 0cd8274658 (svn r10500) -Fix [FS#1007]: cannot navigate using arrow keys in the game name text box. Patch by benc. 2007-07-10 20:58:07 +00:00
rubidium e1bdad1e57 (svn r10498) -Fix [FS#1008]: remove inconsistency between a warning and the actual behaviour. 2007-07-10 07:46:58 +00:00
peter1138 0f2d37a113 (svn r10497) -Fix (FS#1013,r8464): Ship max speed wrongly shown (benc) 2007-07-10 07:10:23 +00:00
belugas a5da0e6609 (svn r10496) -Feature: Replace all the windows for Industry building by a more flexible one.
Thanks to Csaboka (from TTDPatch dev team) for his hints and original design (which i've found while it was halfway done, so i could make it more compliant ;)).  Don't expect it to be a carbon-copy though.  A few differences can be found here and there.
Thanks to Rubidium for his helping hand. Hope you will like it as we do :)
2007-07-10 00:59:00 +00:00
belugas b690bef878 (svn r10495) -Codechange: Add the Action 00 property handlers for Industries and Industry tiles 2007-07-10 00:10:19 +00:00
rubidium 09eb6623ab (svn r10494) -Fix (r10490): possible null dereference in some exotic newgrfs. 2007-07-09 20:08:25 +00:00
rubidium b876be0064 (svn r10493) -Codechange: update some callback ID enums to reflect their changed usage, add a few and update the comments. 2007-07-09 19:38:12 +00:00
KUDr 0452fc482d (svn r10492) -Fix [YAPF, r10491]: commands with no effect (glx) 2007-07-09 19:24:45 +00:00
KUDr 3efc078e2f (svn r10491) -Fix [FS#988, YAPF]: When rail segment was cached using electric engine and it ended with non-electric rail it was incorrectly cached with the end reason ESRB_DEAD_END instead of ESRB_RAIL_TYPE. (Eddi)
- It caused YAPF to end prematurely there when it was searching for another path (for non-electric engine).
 - It can lead to sub-optimal path taken or 'train is lost' message.
 - In MP game it can also cause desync.
 - Uses changes made in r10489.
2007-07-09 18:57:12 +00:00
rubidium 25511e0e26 (svn r10490) -Codechange: add support for industries on non-flat surfaces. 2007-07-09 18:53:43 +00:00
KUDr d3c7a7fa8c (svn r10489) -Codechange [YAPF]: FollowTrack_t now has new data member - m_err. It indicates the reason why the given track/trackdir can't be followed when method CFollowTrackT<>::Follow() returned false. 2007-07-09 18:27:42 +00:00
miham d9a2e25dd7 (svn r10488) -Update: WebTranslator2 update to 2007-07-09 18:32:28
estonian   - 2 fixed by kristjans (2)
italian    - 1 changed by lorenzodv (1)
korean     - 6 fixed by leejaeuk5 (6)
latvian    - 53 fixed by amjaliks (53)
portuguese - 5 fixed, 9 changed by izhirahider (14)
russian    - 2 fixed by Smoky555 (2)
slovak     - 2 fixed by lengyel (2)
spanish    - 2 fixed by eusebio (2)
swedish    - 8 fixed by giddorah (8)
ukrainian  - 2 fixed by fevral13 (2)
2007-07-09 16:32:52 +00:00
rubidium 5bea6503a7 (svn r10487) -Fix: forgot some breaks in a switch statement. 2007-07-09 16:24:00 +00:00
rubidium 6cf2aad165 (svn r10486) -Fix: do not draw foundations when the "should I draw foundations" callbacks says to do so. 2007-07-09 13:59:07 +00:00
rubidium bb8923c336 (svn r10485) -Codechange: add a callback mechanism to determine whether building an industry is allowed at a given location. 2007-07-09 13:21:49 +00:00
rubidium c29b4a7720 (svn r10484) -Codechange: reduce code duplication. 2007-07-09 13:10:04 +00:00
rubidium 70d6fdeca0 (svn r10483) -Codechange: add support for callbacks to manipulate the building chance of farm fields and chopping chance for lumber mills. 2007-07-08 19:54:51 +00:00
maedhros 165dd778af (svn r10481) -Codechange: Show a news message with the new industry when primary industry prospecting succeeds. 2007-07-08 18:41:34 +00:00
maedhros fc3764ef4b (svn r10480) -Fix: Don't allow building lighthouses and transmitters under bridges in the scenario editor, or during world generation. 2007-07-08 18:40:15 +00:00
miham c9ef554e01 (svn r10479) -Update: WebTranslator2 update to 2007-07-08 19:44:48
american   - 4 fixed by WhiteRabbit (4)
catalan    - 2 fixed by arnaullv (2)
czech      - 67 fixed by joeprusa (67)
danish     - 6 fixed by ThomasA (6)
dutch      - 2 fixed by webfreakz (2)
french     - 2 fixed by glx (2)
german     - 23 fixed by chu (23)
hungarian  - 2 fixed by miham (2)
italian    - 2 fixed, 4 changed by lorenzodv (6)
latvian    - 49 fixed by amjaliks (49)
portuguese - 66 fixed by izhirahider (66)
romanian   - 2 fixed by kneekoo (2)
slovenian  - 2 fixed by Necrolyte (2)
traditional_chinese - 2 fixed, 75 changed by xbddc (77)
turkish    - 7 fixed by jnmbk (7)
2007-07-08 17:45:36 +00:00
rubidium 26985a0128 (svn r10478) -Fix [FS#999]: remove the loading indicator when a vehicle is removed. 2007-07-08 17:44:46 +00:00
rubidium 283a06e4a1 (svn r10477) -Codechange: add some callbacks to customise the acceptance of industries. 2007-07-08 17:40:04 +00:00
rubidium fd2d677849 (svn r10476) -Fix: some newgrf callbacks were already implemented even though the comment said they were not. 2007-07-08 14:23:15 +00:00
rubidium 640421fb79 (svn r10475) -Fix [FS#996]: some wrong comments for a few of the (vehicle) group related actions. 2007-07-08 09:35:39 +00:00
rubidium 7ba2e75f3e (svn r10474) -Fix [FS#995]: wrong group count after train crash. 2007-07-08 09:29:28 +00:00
rubidium 8b54aab214 (svn r10473) -Codechange: make the industry "window", the one that shows when you click on an industry, more flexible to allow easier integration with newindustries. 2007-07-08 00:25:05 +00:00
peter1138 e51d9d4fbd (svn r10472) -Fix (r10741): typos prevented compilation 2007-07-07 21:14:36 +00:00
peter1138 8b81cdd2a6 (svn r10471) -Codechange: implement driver probing priority so that 'preferred' drivers are loaded first 2007-07-07 20:31:23 +00:00
peter1138 0543657b75 (svn r10470) -Fix: clamp station build date to 16 bit value for newgrf, preventing overflow and incorrect graphics shown past a certain date. 2007-07-07 20:17:01 +00:00
rubidium 576128159a (svn r10466) -Fix: the minimum amount of waiting cargo shouldn't be 65535; that should be the maximum amount of waiting cargo. 2007-07-07 17:36:01 +00:00
rubidium 5b90b91ce3 (svn r10465) -Fix: first run the WE_CREATE callback and then perform the dirtying of the window, so you won't get glitches if you resize a window in the WE_CREATE callback. 2007-07-07 17:33:29 +00:00
miham 282bb875af (svn r10464) -Update: WebTranslator2 update to 2007-07-07 18:44:01
latvian    - 293 fixed, 21 changed by amjaliks (254), pakalns (60)
2007-07-07 16:44:10 +00:00
miham d2556e1107 (svn r10463) -Update: WebTranslator2 update to 2007-07-07 18:42:35
catalan    - 4 fixed by arnaullv (4)
estonian   - 15 fixed by kristjans (15)
japanese   - 4 fixed by ickoonite (4)
piglatin   - 28 fixed by adammw (23), miham (5)
romanian   - 7 fixed by kneekoo (7)
slovenian  - 4 fixed by Necrolyte (4)
traditional_chinese - 1 changed by xbddc (1)
2007-07-07 16:43:00 +00:00
rubidium 3b52a6bfc4 (svn r10462) -Add: a command dumper/loader that could be enabled compile-time and server side only to aid debugging some desyncs, i.e. dump the stream of commands so it could be replayed in exactly the same way later. This should primarily be used to make desyncs more easily reproducable, so it can be properly debugged. 2007-07-07 10:06:10 +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
peter1138 472bfba5f8 (svn r10458) -Fix (r10444): restore original descriptions for win32 drivers 2007-07-06 22:15:00 +00:00
belugas 7c2b432670 (svn r10457) -Codechange: Load the newly read definitions of Industries and Industry tiles.
No, this is not the final commit for newindustries (far from it), just another step.
2007-07-06 20:40:58 +00:00
belugas 26a7f3df84 (svn r10456) -Codechange: Enable loading newgrf strings for Industries 2007-07-06 20:36:32 +00:00
miham c70a275a50 (svn r10455) -Update: WebTranslator2 update to 2007-07-06 20:02:29
brazilian_portuguese - 4 fixed by tucalipe (4)
dutch      - 4 fixed by habell (4)
estonian   - 3 fixed by t2t2 (3)
french     - 4 fixed by glx (4)
galician   - 32 fixed by Condex (32)
hungarian  - 4 fixed by miham (4)
italian    - 4 fixed by lorenzodv (4)
korean     - 2 changed by darkttd (2)
russian    - 4 fixed, 1 changed by Smoky555 (5)
slovak     - 4 fixed by lengyel (4)
spanish    - 4 fixed by eusebio (4)
traditional_chinese - 4 fixed by xbddc (4)
turkish    - 10 fixed by jnmbk (10)
ukrainian  - 4 fixed by mad (4)
2007-07-06 18:03:09 +00:00
glx 281718011a (svn r10454) -Fix r10452: forgot unfinished langs 2007-07-06 13:43:50 +00:00
peter1138 a8b385d77d (svn r10453) -Codechange: Allow save/load of empty (unallocated) strings 2007-07-06 08:32:00 +00:00
rubidium 1af0fc0a33 (svn r10452) -Update: remove the string that has been removed in r10451 from all other translations. 2007-07-06 07:29:04 +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
peter1138 94315ff15f (svn r10450) -Fix (r10444): Fix search & replace errors 2007-07-05 18:21:53 +00:00
miham 463b851ad8 (svn r10449) -Update: WebTranslator2 update to 2007-07-05 18:40:00
catalan    - 1 changed by arnaullv (1)
french     - 4 changed by glx (4)
russian    - 2 fixed by Smoky555 (2)
2007-07-05 16:40:19 +00:00
belugas b9dad0d82f (svn r10448) -Codechange: Industry Tiles and Houses share almost the same spritegroup format. 2007-07-05 16:39:56 +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
peter1138 b953493930 (svn r10446) -Codechange: Move extmidi's global data into its class. 2007-07-05 13:19:35 +00:00
KUDr c4aff8b0a4 (svn r10445) -Fix (Win32, r10444): remove #include "hal.h" 2007-07-05 12:30:22 +00:00
peter1138 68c6add8cc (svn r10444) -Codechange: switch to c++ classes and inheritance for sound/music/video drivers, using self-registration based on the blitter-model. 2007-07-05 12:23:54 +00:00
peter1138 b507907176 (svn r10443) -Fix: randomizing triggers should be called with callback type set to 1 2007-07-05 06:35:09 +00:00
rubidium 86c14c239f (svn r10442) -Codechange: implement the industry production callback. 2007-07-05 05:41:56 +00:00
rubidium 9bc6a1cc8e (svn r10441) -Fix (r10440): something went wrong "porting" fixes from one place to another; like compiling the wrong checkout. 2007-07-04 22:24:57 +00:00
rubidium 997871063f (svn r10440) -Fix: CBM_IND defines bits to be set, not bitsets. 2007-07-04 22:18:33 +00:00
rubidium 1bdb72ebd4 (svn r10439) -Codechange: initial steps for customized industry productions. 2007-07-04 18:27:21 +00:00
miham 2d1a3d920c (svn r10438) -Update: WebTranslator2 update to 2007-07-04 19:52:16
american   - 20 fixed by WhiteRabbit (20)
danish     - 21 fixed, 1 changed by ThomasA (22)
portuguese - 10 fixed by izhirahider (10)
traditional_chinese - 2 changed by xbddc (2)
2007-07-04 17:52:32 +00:00
peter1138 efef78f786 (svn r10437) -Feature: Automatic signal completion, enabled by pressing ctrl when dragging signals. Signals will continue following track until an existing signal, junction or station are reached. This currently replaces the existing use of ctrl-drag for changing existing signal type. 2007-07-04 17:21:28 +00:00
maedhros 156f149625 (svn r10436) -Cleanup: Doxygenise some comments, update others, and make a few statements more consistent with everything else. 2007-07-04 13:30:33 +00:00
maedhros facf261b63 (svn r10435) -Fix (r9315): numinfo starts from 1, not 0, so make it possible to define a house with a local id of 255. 2007-07-04 13:01:55 +00:00
maedhros b863e50ac8 (svn r10434) -Fix (r9315): When setting multiple house overrides in one Action 0, don't override them all with the first ID. 2007-07-04 12:57:07 +00:00
maedhros 122bd53809 (svn r10433) -Codechange: Remove FOR_EACH_OBJECT by moving the for loops in the Action 0
handlers outside the switch statements. This allows ignoring only the invalid
IDs when changing the properties for many objects, rather than ignoring the
whole block if one ID is invalid.
2007-07-04 12:52:43 +00:00
peter1138 ca49b1e997 (svn r10432) -Codechange: use existing function instead of data duplication 2007-07-04 09:42:47 +00:00
peter1138 0645454aaa (svn r10431) -Codechange: constness on static array 2007-07-04 09:41:35 +00:00
peter1138 e9c38a97b0 (svn r10430) -Fix: Too many town rating entry lookups (KUDr) 2007-07-04 06:37:43 +00:00
KUDr 415d5af03d (svn r10429) -Fix: VC8 Code Analyzer warning: buffer overrun 2007-07-04 02:41:39 +00:00
KUDr 255389a963 (svn r10428) -Fix: some more VC code analyzer warnings disabled 2007-07-04 02:37:48 +00:00
KUDr 1d5b84d808 (svn r10427) -Fix: snprintf behaves differently in gcc than in VC causing unreadable artifacts in output. Now CStrT::AddFormatL() should behave correctly also when compiled by gcc (Rubidium) 2007-07-04 02:35:40 +00:00
belugas a85d72c60d (svn r10426) -Codechange: Activate the reset of industry/tiles mapping upon initialization or new game. 2007-07-04 01:34:28 +00:00
belugas de43302419 (svn r10425) -Fix (r10418): do not compare bitmasks with HASBIT. Strike two. Forgotten code :) 2007-07-04 00:54:38 +00:00