Commit Graph

1743 Commits (a15df67f9a3d78f1b55b9fdd7b780b26f2cf60d3)

Author SHA1 Message Date
rubidium 59d33d0f7c (svn r10673) -Cleanup: some assorted style cleanups. Primarily type* var -> type *var. 17 years ago
rubidium 9c9fc1a79e (svn r10672) -Codechange: typify some parameters/variables. 17 years ago
truelight e66ab3b6f1 (svn r10671) -Codechange: don't mix both lookup and temp-variable-with-value-of-lookup (skidd13) 17 years ago
belugas 0bc5d4b768 (svn r10670) -Fix: Use proper initialization for grf_prop override member 17 years ago
belugas 81c6469700 (svn r10669) -Codechange: Removed redundant comment
-Codechange: Add placeholder for yet another industry "variable" to code
17 years ago
truelight 7031cc3c0b (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)
17 years ago
truelight 2418db4c23 (svn r10664) -Codechange: simplify a small piece of code (skidd13) 17 years ago
truelight 59702af996 (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) 17 years ago
truelight e15c5fc6b0 (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)
17 years ago
truelight e0c31b63db (svn r10661) -Documentation: documented slope.h (Progman) 17 years ago
truelight c239884287 (svn r10660) -Codechange: simplified tunnel cost algorithm (bilbo) 17 years ago
truelight 1583b5b4db (svn r10659) -Codechange: updated documentation around RAIL_GROUND_FENCE_VERT[12] (frosch)
-Codechange: added documentation and SPR_ enums for track fences (frosch)
17 years ago
glx 79f4d4d0de (svn r10658) -Add: support for autosave_on_exit in the console, so dedicated servers can use it 17 years ago
truelight e5aca34acb (svn r10657) -Fix r10655: commit didn't comply with coding style (tnx glx :)) 17 years ago
truelight 568f851aa3 (svn r10656) -Fix [FS#1068]: GetPartialZ returned wrong value for SLOPE_STEEP_E (frosch) 17 years ago
truelight 6fe791a200 (svn r10655) -Fix [FS#1070]: Trolly AI didn't know about steep slopes, and used wrong tileh in some cases (frosch) 17 years ago
orudge 05f8f7cf93 (svn r10651) -Fix: Fix chdir problem with open/save dialog on OS/2 (Paul Smedley) 17 years ago
peter1138 0c3b6a7285 (svn r10649) -Fix (r9962): autoscroll (pointer near screen edge) didn't work 17 years ago
miham 692f20c3c3 (svn r10648) -Update: WebTranslator2 update to 2007-07-21 20:34:31
croatian   - 44 fixed, 143 changed by knovak (187)
17 years ago
KUDr 18c8a920d2 (svn r10647) -Fix: AutoPtrT::operator =() didn't delete old object 17 years ago
KUDr fc58c73bc5 (svn r10646) -Cleanup: AutoPtrT<>::Release() renamed to Detach()
-better describes what it does
 -was inconsistent with CCountedPtr<>::Release()
17 years ago
KUDr 1f693e8ce8 (svn r10645) -Fix (r10644): file contents seems to be 3x there 17 years ago
rubidium 478e009ac6 (svn r10644) -Merge (from NoAI): framework for reference counted objects (pointers). 17 years ago
rubidium f7682403e3 (svn r10643) -Merge (from NoAI): properly counting the amount of signs instead of using the size of the sign pool. 17 years ago
belugas b6ba945486 (svn r10641) -Fix(r10638): Forgotten Son... err...include 17 years ago
belugas 79c94729b5 (svn r10640) -Fix(r10638): little typo... 17 years ago
belugas 71637303a9 (svn r10639) -Codechange: Give meaninfull name to a magic number 17 years ago
belugas 1dd61a2249 (svn r10638) -Codechange: Save the mapping of the industries and tiles, making them persistent. 17 years ago
belugas a79ed67f76 (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 :)
17 years ago
belugas 05e4b47613 (svn r10635) -Codechange: Correct some typos and code beautifying (a little bit) 17 years ago
peter1138 a6aba9c83d (svn r10628) -Fix (r10606,FS#1055): Revert r10606 and fix the plural problem another way. 17 years ago
rubidium f6ca271375 (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. 17 years ago
miham 95fc1a5057 (svn r10626) -Update: WebTranslator2 update to 2007-07-19 19:23:12
american   - 4 fixed by WhiteRabbit (4)
17 years ago
rubidium e8a73a0591 (svn r10624) -Fix [FS#1047]: the production of banks could not be modified (either in scenario editor or with the cheat). 17 years ago
belugas 917c536031 (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.
17 years ago
belugas e32c72e35a (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.
17 years ago
miham 50d988b396 (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)
17 years ago
belugas 15429e3d9d (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
17 years ago
belugas 3121256978 (svn r10618) -Fix(r10167): remove unneeded comment 17 years ago
belugas eaf946e23b (svn r10617) -Codechange: code style changes (removing an erroneous tab plus switch case alignment)
-Codechange: give enum values to widgets
17 years ago
glx fef1907c39 (svn r10607) -Fix r10605: use '&&' in preprocessor directives (MSVC doesn't like 'and') 17 years ago
peter1138 bcc93b45bc (svn r10606) -Fix (r8826): plural and single cargo names were mixed up. 17 years ago
rubidium 524e306650 (svn r10605) -Fix [FS#1046]: also OpenBSD does not know wchar. Patch by Matthias. 17 years ago
rubidium 5b15a202ea (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.. 17 years ago
peter1138 61e41b24b4 (svn r10603) -Codechange: avoid direct access to _engine_info 17 years ago
rubidium 45b0b7755d (svn r10601) -Codechange: store (and use) the type of stations instead of hardcoding station types by graphics IDs. 17 years ago
belugas 210e3c7085 (svn r10600) -Codechange: code-stylising the gui switch-case code 17 years ago
rubidium f30a71ab82 (svn r10593) -Fix [FS#1038]: one could not remove locks that were build in a (very) old version of OpenTTD. 17 years ago
miham b356343d30 (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)
17 years ago
rubidium df009178d4 (svn r10587) -Codechange: move the string/dparam related stuff from variables.h to strings.h 17 years ago
miham 1f447d10b4 (svn r10584) -Fix: [Translations] Fixed translations screwed up by translator 17 years ago
miham a75fd13d93 (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)
17 years ago
KUDr 3df88dada8 (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.
17 years ago
glx 9f2ca45987 (svn r10575) -Fix r10573: misplaced ) 17 years ago
belugas 1bee873376 (svn r10573) -Codechange: Use function CheckIfCallBackAllowsAvailability for random map generation as well as for ingame random industry creation 17 years ago
belugas 7829add2bb (svn r10572) -Codechange: Add function CheckIfCallBackAllowsAvailability for industries 17 years ago
belugas e37affa1d3 (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
17 years ago
rubidium 13692798e6 (svn r10567) -Add [FS#915]: a "group" with ungrouped vehicles. Patch by Matthias Wolf. 17 years ago
rubidium c598d1b446 (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. 17 years ago
rubidium 25028759c1 (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. 17 years ago
truelight 68c5bcf960 (svn r10561) -Fix: don't give 'unused variable' warnings when disabling asserts 17 years ago
miham 08780621cc (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)
17 years ago
rubidium 7ed3c49bcd (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. 17 years ago
truelight 988d9b8da8 (svn r10552) -Fix [FS#1034, r10546]: opening Available Aircrafts segfaulted 17 years ago
miham db0ad29b81 (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)
17 years ago
rubidium 46a6b03940 (svn r10549) -Fix [FS#1031]: wrong tram catenary poles drawn in some bridge directions. 17 years ago
truelight 73e2c46e8a (svn r10548) -Fix [FS#1020]: don't segfault when you quit in the end-of-the-game screen 17 years ago
truelight 4b818368b1 (svn r10547) -Fix: when Cheat-Window is open and a new month happens, the window wasn't redrawn instantly 17 years ago
truelight 1845b5633d (svn r10546) -Fix [FS#1026]: you can now have both Available Train as Available Ship window open 17 years ago
peter1138 3f4a0eb806 (svn r10542) -Codechange: use class member instead of global variable for null ticks value 17 years ago
rubidium 9b105c28bd (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.
17 years ago
truelight 56dfe3031c (svn r10537) -Backport r10536: added option for null-driver to configure how long it should run (-vnull:ticks=10000) 17 years ago
miham 86e2e2f1c3 (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)
17 years ago
rubidium 690a27f8ce (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. 17 years ago
rubidium 009a47dfcd (svn r10521) -Fix: some NewGRFs did not check whether the newindustries bit was set, which breaks with a not-yet-finished-implementation of newindustries. 17 years ago
rubidium 469e1e2596 (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. 17 years ago
rubidium 3378095add (svn r10519) -Fix: when getting a "nearby" tile, make sure you never roam outside of the map. 17 years ago
rubidium ac0440495c (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. 17 years ago
rubidium 358758e33b (svn r10517) -Fix: the "closest distance to water/land" calculation gave the distance to the north-eastern border instead of the closest water/land. 17 years ago
rubidium b779959c27 (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. 17 years ago
rubidium 0c6f628fa6 (svn r10515) -Codechange: allow getting some more data about the environment of an industry. 17 years ago
rubidium a616f0bd1e (svn r10514) -Codechange: add support for getting the nearest industry with a given type. 17 years ago
peter1138 dcf4881b07 (svn r10513) -Fix [FS#1022]: use vehicle subtile position to update cache, not tile, so that collision detection works on bridges and tunnels. 17 years ago
miham 2121112cc8 (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)
17 years ago
peter1138 556a5ebcc3 (svn r10509) -Codechange: cache expensive newgrf station variables during
sprite lookups/callbacks.
17 years ago
rubidium d1ef87f914 (svn r10508) -Codechange: allow customizable animation schemes for industries. 17 years ago
rubidium 00afab46ab (svn r10507) -Fix [FS#1019]: apparantly we used the wrong sprites for some pieces of the tram catenary (even though TTDP did so too). 17 years ago
rubidium a9249181c7 (svn r10506) -Fix: the (manual) building of banks was always rejected. 17 years ago
belugas a59b7f492d (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 :) 17 years ago
belugas 95c877cf71 (svn r10504) -Codechange: Shorten the test if no track bit has been found 17 years ago
belugas b9db8ecf41 (svn r10503) -Codechange: Mark Callback CBID_INDUSTRY_FUND_MORE_TEXT (cb38) as implemented. 17 years ago
rubidium fd93cd0411 (svn r10502) -Fix [FS#1017]: trying to get the town from a tile that can never be associated with a town. 17 years ago
rubidium 3ba01bec84 (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. 17 years ago
rubidium 5ef18e693c (svn r10500) -Fix [FS#1007]: cannot navigate using arrow keys in the game name text box. Patch by benc. 17 years ago
rubidium b1ab5f3e1c (svn r10498) -Fix [FS#1008]: remove inconsistency between a warning and the actual behaviour. 17 years ago
peter1138 400203fb5b (svn r10497) -Fix (FS#1013,r8464): Ship max speed wrongly shown (benc) 17 years ago
belugas b0989a369c (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 :)
17 years ago
belugas 7ca5c337ca (svn r10495) -Codechange: Add the Action 00 property handlers for Industries and Industry tiles 17 years ago
rubidium e84363b4db (svn r10494) -Fix (r10490): possible null dereference in some exotic newgrfs. 17 years ago
rubidium 7cb7488836 (svn r10493) -Codechange: update some callback ID enums to reflect their changed usage, add a few and update the comments. 17 years ago