Commit Graph

1762 Commits

Author SHA1 Message Date
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