Commit Graph

1668 Commits (79c94729b5e16deef82264bc959e82bb32e0f838)

Author SHA1 Message Date
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
KUDr ad5a68a282 (svn r10492) -Fix [YAPF, r10491]: commands with no effect (glx) 17 years ago
KUDr 746a33747b (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.
17 years ago
rubidium f183f46561 (svn r10490) -Codechange: add support for industries on non-flat surfaces. 17 years ago
KUDr b1b26ddb79 (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. 17 years ago
miham f0137dea78 (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)
17 years ago
rubidium b1944c8f4b (svn r10487) -Fix: forgot some breaks in a switch statement. 17 years ago
rubidium 2801ccc5f2 (svn r10486) -Fix: do not draw foundations when the "should I draw foundations" callbacks says to do so. 17 years ago
rubidium e207ba425f (svn r10485) -Codechange: add a callback mechanism to determine whether building an industry is allowed at a given location. 17 years ago
rubidium b3ed27adab (svn r10484) -Codechange: reduce code duplication. 17 years ago
rubidium 37748a3152 (svn r10483) -Codechange: add support for callbacks to manipulate the building chance of farm fields and chopping chance for lumber mills. 17 years ago
maedhros 44db937929 (svn r10481) -Codechange: Show a news message with the new industry when primary industry prospecting succeeds. 17 years ago
maedhros e17cbca358 (svn r10480) -Fix: Don't allow building lighthouses and transmitters under bridges in the scenario editor, or during world generation. 17 years ago
miham 73d2e5840a (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)
17 years ago
rubidium 6dfbc5a113 (svn r10478) -Fix [FS#999]: remove the loading indicator when a vehicle is removed. 17 years ago
rubidium 95ea8fd2f1 (svn r10477) -Codechange: add some callbacks to customise the acceptance of industries. 17 years ago
rubidium 064c1ea89e (svn r10476) -Fix: some newgrf callbacks were already implemented even though the comment said they were not. 17 years ago
rubidium b76be6418e (svn r10475) -Fix [FS#996]: some wrong comments for a few of the (vehicle) group related actions. 17 years ago
rubidium 4b70a97fde (svn r10474) -Fix [FS#995]: wrong group count after train crash. 17 years ago
rubidium db16c33194 (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. 17 years ago
peter1138 00c6a8f076 (svn r10472) -Fix (r10741): typos prevented compilation 17 years ago
peter1138 2723db2884 (svn r10471) -Codechange: implement driver probing priority so that 'preferred' drivers are loaded first 17 years ago
peter1138 855e9d0751 (svn r10470) -Fix: clamp station build date to 16 bit value for newgrf, preventing overflow and incorrect graphics shown past a certain date. 17 years ago
rubidium f60d055d8d (svn r10466) -Fix: the minimum amount of waiting cargo shouldn't be 65535; that should be the maximum amount of waiting cargo. 17 years ago
rubidium 6a5d9e28c1 (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. 17 years ago
miham e8bbfb4a70 (svn r10464) -Update: WebTranslator2 update to 2007-07-07 18:44:01
latvian    - 293 fixed, 21 changed by amjaliks (254), pakalns (60)
17 years ago
miham 7afa613fd5 (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)
17 years ago
rubidium db5c9fc9a0 (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. 17 years ago
rubidium cd702d049e (svn r10460) -Codechange: add some more variables needed for newindustries regarding to the creation of the industries. 17 years ago
rubidium b0a8409200 (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. 17 years ago
peter1138 d2f4310bfe (svn r10458) -Fix (r10444): restore original descriptions for win32 drivers 17 years ago
belugas 5f49ffa3ff (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.
17 years ago
belugas 8df65af2d3 (svn r10456) -Codechange: Enable loading newgrf strings for Industries 17 years ago
miham ef5c7a74e5 (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)
17 years ago
glx 7ce2f6ef73 (svn r10454) -Fix r10452: forgot unfinished langs 17 years ago
peter1138 484eb61de1 (svn r10453) -Codechange: Allow save/load of empty (unallocated) strings 17 years ago
rubidium 4854763272 (svn r10452) -Update: remove the string that has been removed in r10451 from all other translations. 17 years ago
rubidium b8f658db94 (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. 17 years ago
peter1138 191a479e8d (svn r10450) -Fix (r10444): Fix search & replace errors 17 years ago
miham ca88ccb623 (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)
17 years ago
belugas e7678f47be (svn r10448) -Codechange: Industry Tiles and Houses share almost the same spritegroup format. 17 years ago
belugas 5e7d4ffe9f (svn r10447) -Codechange: Don't need to specify values on an enum when those values are contiguous 17 years ago
peter1138 666241e925 (svn r10446) -Codechange: Move extmidi's global data into its class. 17 years ago
KUDr 767412f410 (svn r10445) -Fix (Win32, r10444): remove #include "hal.h" 17 years ago
peter1138 5e85e8c5e0 (svn r10444) -Codechange: switch to c++ classes and inheritance for sound/music/video drivers, using self-registration based on the blitter-model. 17 years ago
peter1138 7884a07b43 (svn r10443) -Fix: randomizing triggers should be called with callback type set to 1 17 years ago
rubidium 4c356457e6 (svn r10442) -Codechange: implement the industry production callback. 17 years ago
rubidium aa04ad59f1 (svn r10441) -Fix (r10440): something went wrong "porting" fixes from one place to another; like compiling the wrong checkout. 17 years ago
rubidium 3a73d47351 (svn r10440) -Fix: CBM_IND defines bits to be set, not bitsets. 17 years ago
rubidium c0ba3dba9d (svn r10439) -Codechange: initial steps for customized industry productions. 17 years ago
miham cb5cdfbf9d (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)
17 years ago
peter1138 30de2a0984 (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. 17 years ago
maedhros 6fbfa4498c (svn r10436) -Cleanup: Doxygenise some comments, update others, and make a few statements more consistent with everything else. 17 years ago
maedhros 78d74efd3a (svn r10435) -Fix (r9315): numinfo starts from 1, not 0, so make it possible to define a house with a local id of 255. 17 years ago
maedhros fd475d47d8 (svn r10434) -Fix (r9315): When setting multiple house overrides in one Action 0, don't override them all with the first ID. 17 years ago
maedhros d938a4ffe6 (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.
17 years ago
peter1138 b36d31bb22 (svn r10432) -Codechange: use existing function instead of data duplication 17 years ago
peter1138 2fa2da4070 (svn r10431) -Codechange: constness on static array 17 years ago
peter1138 f4abcb2349 (svn r10430) -Fix: Too many town rating entry lookups (KUDr) 17 years ago
KUDr 21417ebac7 (svn r10429) -Fix: VC8 Code Analyzer warning: buffer overrun 17 years ago
KUDr c5a122d642 (svn r10428) -Fix: some more VC code analyzer warnings disabled 17 years ago
KUDr 35dad3581b (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) 17 years ago
belugas cd62d5130a (svn r10426) -Codechange: Activate the reset of industry/tiles mapping upon initialization or new game. 17 years ago
belugas 2bedfcd3bf (svn r10425) -Fix (r10418): do not compare bitmasks with HASBIT. Strike two. Forgotten code :) 17 years ago
belugas 0805d0b03e (svn r10424) -Fix : Toy shop seems to be working exactly like power stations, water tower and banks, i.e: they require cargo but do nothing with it.
So, make it an INDUSTRYLIFE_BLACK_HOLE, exactly like the above mentioned industries.
Thanks to glx who spotted, and Csaboka who confirmed it could very well be a CS bug.
17 years ago
KUDr 2d31aef236 (svn r10423) -Fix [YAPF, r10301]: INVALID_TRACKDIR causing buffer overrun leading to desync in MP game (many thanks Rubidium) 17 years ago
KUDr effb173457 (svn r10422) -Fix: VC8 Code Analyzer warning C6297: Arithmetic overflow: 32-bit value is shifted, then cast to 64-bit value. Results might not be an expected value 17 years ago
KUDr 94a5310888 (svn r10421) -Fix [MSVC]: suppress some code analyzer warnings for VC8 17 years ago
rubidium 2f14d622ae (svn r10419) -Fix (r10418): do not compare bitmasks with HASBIT. Thanks to Maedhros for spotting this. 17 years ago
rubidium 9534c9795b (svn r10418) -Codechange: implement/resurrect the industry production flags. 17 years ago
glx 265b933b5b (svn r10417) -Fix: r10416 partly reverted r10415 17 years ago
miham be5b8e7db3 (svn r10416) -Update: WebTranslator2 update to 2007-07-03 19:20:58
norwegian_nynorsk - 3 fixed by pollux (3)
slovak     - 3 fixed by lengyel (3)
traditional_chinese - 6 fixed by xbddc (6)
17 years ago
glx ca87b15098 (svn r10415) -Revert (r10403), Fix (r10323): 'message from company' test must use {STRING1}, so pass it the correct params 17 years ago
rubidium f7151d44b7 (svn r10414) -Fix: the network protocol check for required newgrfs sent static newgrfs too. 17 years ago
glx bb3eb6eed4 (svn r10413) -Fix r10211: t->townnamegrfid was not cleared when renaming a town 17 years ago
peter1138 12302ae8c7 (svn r10412) -Codechange: Remove unnecessary inclusion of hal.h in various files (and add one) 17 years ago