Commit Graph

2474 Commits

Author SHA1 Message Date
smatz 701e9d27fc (svn r11639) -Codechange: simplify EnsureNoVehicleOnGround 2007-12-15 20:30:43 +00:00
smatz d0ad7688f2 (svn r11638) -Codechange: use faster check in SignalVehicleCheck for tunnel/bridge 2007-12-15 19:46:34 +00:00
smatz 4b22e57b33 (svn r11637) -Fix: mark viewports dirty when removing visible vehicle chain 2007-12-15 16:11:29 +00:00
smatz 46724104fe (svn r11636) -Fix: it was possible to build/remove road/tram in tunnel/bridge when there was vehicle in it 2007-12-15 13:59:38 +00:00
belugas 828c242291 (svn r11635) -Codechange: Give a more informative debug message when encountering unknown newgrf feature in action 00 handling.(FS#1551, Bilbo) 2007-12-15 03:42:41 +00:00
smatz 5992187a85 (svn r11634) -Fix: update signals when deleting crashed train on a bridge, update even when train is rotated 2007-12-15 00:04:01 +00:00
smatz 4b7f8f04a3 (svn r11633) -Codechange: merge CheckTunnelEmpty and IsVehicleOnBridge into GetVehicleTunnelBridge 2007-12-14 23:21:20 +00:00
rubidium dedb15786c (svn r11632) -Fix [FS#1541]: vehicles were still followed when sold. 2007-12-14 21:11:30 +00:00
glx ea1ae563c7 (svn r11631) -Fix (r11585, r11626): remove MSVC warnings 2007-12-14 00:25:00 +00:00
rubidium 2921e7482b (svn r11630) -Fix [FS#1544] (r11556): the chat GUI got broken. 2007-12-13 23:26:00 +00:00
rubidium a0f2366e40 (svn r11629) -Fix [FS#1527]: many viewports could crash the scenario editor. 2007-12-13 18:46:04 +00:00
miham 98d18c5337 (svn r11628) -Update: WebTranslator2 update to 2007-12-13 09:47:23
american   - 30 fixed by WhiteRabbit (30)
brazilian_portuguese - 22 fixed by fukumori (9), tucalipe (13)
bulgarian  - 8 fixed by thetitan (8)
catalan    - 22 fixed by arnaullv (22)
croatian   - 17 fixed by knovak (17)
czech      - 22 fixed by Hadez (22)
danish     - 1 fixed, 4 changed by Bjarni (5)
dutch      - 22 fixed by habell (22)
estonian   - 10 fixed by kristjans (10)
french     - 7 fixed, 2 changed by glx (9)
italian    - 7 fixed, 2 changed by lorenzodv (9)
japanese   - 23 fixed by ickoonite (23)
korean     - 33 fixed, 7 changed by leejaeuk5 (40)
norwegian_nynorsk - 9 fixed by pollux (9)
romanian   - 13 fixed, 3 changed by CrystyB (16)
slovak     - 22 fixed by lengyel (22)
slovenian  - 22 fixed by Necrolyte (22)
swedish    - 10 fixed by daishan (10)
turkish    - 20 fixed by jnmbk (20)
ukrainian  - 22 fixed by mad (22)
2007-12-13 08:53:09 +00:00
glx 1a8afc5fb4 (svn r11627) -Fix [FS#1532] (r11145): poping from text reference stack must be done in a precise order. But some compiler (MSVC) over optimised it and inverted this order. 2007-12-13 02:04:09 +00:00
skidd13 1d9c27e235 (svn r11626) -Fix [FS#1529]: Pause state wasn't set correctly in multiplayer saves 2007-12-12 21:56:10 +00:00
smatz 5acc147c1c (svn r11625) -Codechange: add CO_* enum at some places, add includes of order.h too 2007-12-12 14:37:35 +00:00
belugas e0646af976 (svn r11624) -Fix[FS#1530]: An error in the translation of bitset to scroll directions made it so that up-down-right arrow keys did scrolled up, while it should have scrolled right instead. It was initially interpreted as left-right-up. 2007-12-12 02:28:08 +00:00
smatz ed54703db8 (svn r11623) -Fix [FS#1533] (r11619): assert when train is going over two crossings next to each other 2007-12-11 22:50:13 +00:00
rubidium 78ae599790 (svn r11622) -Codechange: support the unicode version of the 'control' characters. 2007-12-11 21:25:48 +00:00
rubidium a5bcce4fc8 (svn r11621) -Fix [FS#1525]: there were still some cases where one could not build a tram track, but the tram could become blocked. 2007-12-11 20:28:53 +00:00
belugas a85c832919 (svn r11620) -Change: Some are going, some are coming, some we do not know exactly. Little update on the OpenTTD Team 2007-12-11 19:59:53 +00:00
smatz 359c9aea3f (svn r11619) -Fix [FS#1531]: do not make crossing red behind depot the train is entering 2007-12-11 19:09:36 +00:00
glx fb1d768924 (svn r11618) -Fix: buoys are just waypoints, so don't allow load/unload/transfert for them 2007-12-11 17:44:55 +00:00
belugas 6f73382317 (svn r11617) -Feature(ette): Add the same game-mode keyboard shortcuts in scenario more.(Bilbo) 2007-12-11 03:41:33 +00:00
rubidium a1dbb10c26 (svn r11616) -Fix [FS#1526]: sometimes large values could go off the chart. 2007-12-10 22:26:24 +00:00
glx ac7c79f039 (svn r11615) -Fix (r11609): temperate banks can only be built in towns (over a house) 2007-12-10 17:26:49 +00:00
skidd13 9124331b0d (svn r11614) -Fix: The about dialog scrolling was connected to the mouse instead of the internal ticks 2007-12-09 22:14:41 +00:00
glx 6a83f9141b (svn r11611) -Codechange: it is now possible to use a define to enable asserts and show them in crash.log for MSVC release builds 2007-12-09 21:20:21 +00:00
glx 46c0edc80b (svn r11610) -Cleanup (r8572): remove orphan comment 2007-12-09 20:20:52 +00:00
rubidium 6aaa72c918 (svn r11609) -Fix [FS#1524]: wrong error messages were shown when trying to build some industries in the scenario editor. 2007-12-09 18:51:25 +00:00
rubidium c3ea7e4dc4 (svn r11608) -Fix: do not trigger industries, but only the industry's tiles. 2007-12-09 18:27:40 +00:00
skidd13 f20e414e2e (svn r11607) -Codechange: Enumify the industry widgets
-Feature: Enable doubleclick in the found new industries window to build an industries
2007-12-09 17:07:50 +00:00
rubidium 079c0fd66a (svn r11606) -Revert (r11584): since FS#1482 is solved, we do not need the extra checking and such anymore. 2007-12-09 15:17:49 +00:00
rubidium 5dc0e86d1b (svn r11605) -Fix [FS#1482, FS#1523]: wrong count of Kirby trains when a ship was build. 2007-12-09 15:15:26 +00:00
smatz 5cd0013e5c (svn r11604) -Fix: canal tiles were not marked dirty when surrounding tile got flooded, causing glitches 2007-12-08 21:57:24 +00:00
smatz dfba33819b (svn r11603) -Fix [FS#1481]: make price for railtype conversion more realistic 2007-12-08 19:53:30 +00:00
smatz 2a62aa1ccd (svn r11601) -Codechange: more strict break conditions for _userstring, assert when it overflows anyway (eg. code change without proper check change) 2007-12-08 18:50:39 +00:00
glx b47bce651e (svn r11600) -Cleanup: remove extra out-of-memory checks, since it's now done in *allocT functions. 2007-12-08 15:47:23 +00:00
bjarni 2256d9d378 (svn r11599) -Change: [OSX] 10.4 will now use quickdraw for window mode instead of quartz
The reason is that quickdraw is way faster (try fast forward)
  10.5 will still use quartz as it can't handle quickdraw.
2007-12-08 15:21:37 +00:00
rubidium 625a4f8e9a (svn r11598) -Change [FS#1518]: some tooltips of the main toolbar did not 'enumerate' all options in a drop down menu. 2007-12-08 14:54:43 +00:00
rubidium f1e4914b5f (svn r11597) -Change: replace all remaining instances of (re|m|c)alloc with (Re|M|C)allocT and add a check for out-of-memory situations to the *allocT functions. 2007-12-08 14:50:41 +00:00
belugas 73c58d8a40 (svn r11596) -Codechange: Use the Window member HandleButtonClick and remove its now useless counterpart function 2007-12-08 03:10:50 +00:00
belugas b23f824f18 (svn r11595) -Codechange: add a new member to Window struct, based on its function counterpart HandleButtonClick. 2007-12-08 02:55:47 +00:00
glx 04f0700357 (svn r11594) -Fix: don't allow changing network only patches settings from console when not in network game 2007-12-08 01:36:40 +00:00
belugas af4d07b978 (svn r11593) -Cleanup: remove some forgotten pieces of evidence of a mischief 2007-12-08 01:30:18 +00:00
belugas 8c89641dbe (svn r11592) -Codechange: Use the Window member RaiseButtons and remove the now useless RaiseWindowButtons function 2007-12-08 01:20:47 +00:00
belugas 6fb71047d6 (svn r11591) -Codechange: remove now unused widget accessors. 2007-12-08 01:02:19 +00:00
glx 8aaa4e7da6 (svn r11590) -Fix (r11193): IsSlopeRefused() result was half wrong 2007-12-07 21:16:38 +00:00
rubidium cbb2d39860 (svn r11589) -Fix [FS#1514]: when ship depots got destroyed they always returned to water, even when it should've been canals. 2007-12-07 21:14:54 +00:00
glx c21f588a14 (svn r11588) -Codechange: use the new member introduced in r11551 2007-12-07 18:05:49 +00:00
skidd13 98bd772119 (svn r11587) -Fix (r11457): The one way road button wasn't reset on abort 2007-12-07 17:51:27 +00:00
glx 10e17c30a3 (svn r11586) -Fix: make another widget 'accessor' function const when it should be const. 2007-12-07 17:42:15 +00:00
skidd13 7159007a35 (svn r11585) -Codechange: Enumify the widgets of the newGRF gui and a slight cleanup there 2007-12-07 12:22:34 +00:00
rubidium 42dbdbb7f9 (svn r11584) -Change: add some extra checking in the hope to find the cause of FS#1482. 2007-12-06 22:29:47 +00:00
rubidium dd68a34e26 (svn r11583) -Fix [FS#1484]: windows could get completely missing when one resized the window to something very small. 2007-12-06 20:55:48 +00:00
smatz 720854ed16 (svn r11582) -Fix: tiles were not marked dirty in some cases when removing a lock 2007-12-06 20:48:15 +00:00
rubidium 3d38b2c8ba (svn r11581) -Codechange: add some missing cargo classes and some documentation. 2007-12-06 20:36:46 +00:00
skidd13 2c3c6593d4 (svn r11580) -Feature: Memorise the resizing of the build bridge selection window during runtime 2007-12-06 18:29:31 +00:00
belugas 6c70cf2d82 (svn r11579) -Revert(r11578): some cases of key propagation are not handled correctly.
A better solution will be deviced, but not now.  Let's not cause a ton of bug reports
2007-12-06 15:58:39 +00:00
belugas 7edf28529d (svn r11578) -Codechange: Introduce the window default flag WDF_TEXTENTRY which specifies that the window holding it is actually one that enables an edit box.
Use this flag when dispatching a key event instead of using some hard coded window IDs.
This should ease a little bit the creation of new edit aware windows.
2007-12-06 02:31:47 +00:00
smatz 49d632c31b (svn r11577) -Fix: invalidate 'list trains/roadvehs/ships/planes' widgets when station part is added/removed 2007-12-05 19:13:42 +00:00
smatz eda5921284 (svn r11576) -Codechange: enumerize and comment station GUI 2007-12-05 17:08:10 +00:00
smatz 079482f0a2 (svn r11575) -Fix [FS#1502]: widget numbers of StationViewWindow were incorrect at some places 2007-12-05 16:55:33 +00:00
smatz c65c14f06b (svn r11574) -Fix: flood train stations when there are no trains on border tiles too (when non-uniform stations are OFF) 2007-12-05 00:16:20 +00:00
rubidium 8c5c0e9367 (svn r11573) -Codechange: pause games that miss GRFs by default and throw some warnings and disclaimers when you want to unpause it. 2007-12-04 22:50:07 +00:00
glx 46441ac31c (svn r11572) -Fix [FS#1494]: reinitialise windows system before loading a savegame 2007-12-04 22:22:50 +00:00
rubidium 02c46026b3 (svn r11571) -Fix [FS#1493]: road vehicle getting to the wrong side of a station when trying to overtake in there. 2007-12-04 21:53:09 +00:00
smatz ddc8f2d16f (svn r11570) -Fix: do not flood rail station tiles when there is a vehicle on it (when non-uniform stations are ON) 2007-12-04 21:39:03 +00:00
rubidium 5f576e12aa (svn r11569) -Fix [FS#1480]: full paths sometimes did not work correctly. 2007-12-04 18:42:08 +00:00
belugas 5847abc9f8 (svn r11568) -Codechange: Use bit shifts instead of values for flags. It helps readability a little bit. 2007-12-04 17:51:50 +00:00
glx 0f43982c72 (svn r11567) -Fix [FS#1512] (r11011): break the chain before moving a vehicle after another in the same chain 2007-12-04 15:32:54 +00:00
smatz 05fca79cf0 (svn r11565) -Revert: part of r11564 2007-12-03 22:40:18 +00:00
skidd13 82913a2134 (svn r11564) -Codechange: Increase the usage of the for_each_bit macro and rename it fitting to the naming style 2007-12-03 09:19:19 +00:00
skidd13 1a43c6a6f6 (svn r11563) -Codechange: Align the preprocessor code in stdafx.h with tabs 2007-12-02 21:43:16 +00:00
rubidium fe76841255 (svn r11562) -Fix [FS#1503] (r11546): aircraft sometimes stopped mid-air when the airport got destroyed. 2007-12-02 21:35:44 +00:00
glx 164d0a4710 (svn r11561) -Fix [FS#1504] (r11463): group list was not updated when removing the last group 2007-12-02 20:13:12 +00:00
rubidium b7d8681129 (svn r11560) -Codechange: replace 'custom' version of FindLastBit with the generic. 2007-12-02 19:23:46 +00:00
rubidium faf096f506 (svn r11559) -Fix [FS#1505]: overflow when drawing graphics with high company values. 2007-12-02 19:21:56 +00:00
rubidium b5a902703e (svn r11557) -Codechange: send and store the passwords a little more secure to/in the servers.
Each server and game yield a (usually) different 'salt'. This salt is used by the clients to hash their passwords. This way the passwords are not sent in clear text and it is not trivial to use those hashes on other servers.
NOTE: It is still NOT safe to use your trusted passwords and it will not stop people from being able to 'hijack' your password, it only makes it harder to do and certainly much less trivial than just dumping passwords from the memory.
2007-12-02 15:12:19 +00:00
rubidium d9081ad3f5 (svn r11556) -Feature: allow setting a default password for new companies in network games. 2007-12-02 14:48:26 +00:00
rubidium 527b72749d (svn r11555) -Codechange: use the new members introduced in r11551. 2007-12-02 14:29:48 +00:00
rubidium 50fced3c66 (svn r11554) -Codechange: be more consistent with the naming of the widget functions. 2007-12-02 13:32:41 +00:00
rubidium b20b2f4ec8 (svn r11553) -Fix: make a few widget 'accessor' function const when they should be const. 2007-12-02 12:10:48 +00:00
miham 4e574cab45 (svn r11552) -Update: WebTranslator2 update to 2007-12-02 12:31:46
czech      - 1 fixed by Hadez (1)
french     - 15 fixed by glx (15)
galician   - 2 fixed by Condex (2)
italian    - 15 fixed by lorenzodv (15)
norwegian_bokmal - 6 fixed by jhsoby (6)
russian    - 7 fixed by Smoky555 (7)
slovenian  - 1 fixed by Necrolyte (1)
spanish    - 1 fixed by eusebio (1)
2007-12-02 11:32:24 +00:00
belugas e2b4afaa4b (svn r11551) -Codechange: Introduction of widget control members on struct Window. These "new" members have the exact same functionalities as their pure functions "genitors"
Ex: "Window::SetWidgetLoweredState(byte widget_index, bool lowered_stat)"  is the member corresponding to "SetWindowWidgetLoweredState(Window *w, byte widget_index, bool lowered_stat)"
2007-12-02 00:59:48 +00:00
skidd13 7be55559b8 (svn r11550) -Fix (r11547): Updated the data files regarding to r11549 2007-12-02 00:53:01 +00:00
rubidium 08ab4e1850 (svn r11547) -Add: signal selection GUI for the ones that really like to use that over CTRL. Patch by BigBB. 2007-12-01 21:40:18 +00:00
belugas 0feaee4124 (svn r11546) -Fix[FS#1496]: If ever the air/heli port is suddenly not available while the "chopper" is descending, just go back into flying.
The code should have been better written, but in respect of newgrf_port branch, i prefer minimalist intervention
2007-12-01 14:04:16 +00:00
belugas 4f030bbfff (svn r11545) -Revert(r11543): The result is not what was expected. Looks like more work might be needed 2007-12-01 02:59:22 +00:00
glx da9f06252b (svn r11544) -Fix [FS#1501]: revert r11453 as it translated cargo when it should not 2007-12-01 02:47:10 +00:00
belugas aa0d37854d (svn r11543) -Codechange: Give a more adequate message when trying to place an industry required to be built over a house on any other type of tiles.
In reference to FS#1492, and other "bugs" like that one
2007-12-01 01:31:05 +00:00
bjarni 6b68c6557b (svn r11542) -Fix r11540: [OSX] presumed 10.3 style strings when using GetCurrentLocale nomatter what OSX the target was 2007-11-30 14:49:13 +00:00
bjarni 7162b8ddb3 (svn r11541) -Fix: [OSX] detect statvfs at runtime (based on OSX version) instead of compile time
This should prevent a crash on OSX 10.3 with the precompiled binaries (in the load/save windows)
2007-11-30 14:42:16 +00:00
bjarni 5fcbb8f59b (svn r11540) -Fix: [OSX] Don't try to compile the quartz video driver on OSX 10.3. It will fail 2007-11-30 13:26:24 +00:00
skidd13 4704d4619b (svn r11539) -Feature: Make the bridge selection window resizable 2007-11-29 18:27:39 +00:00
skidd13 6e511188ae (svn r11538) -Codechange: Rewrite GetNthSetBit in a more uncontroversial way and add its documentation 2007-11-28 21:59:06 +00:00
rubidium 981865dbcc (svn r11537) -Codechange: make it much harder to 'accidentally' add savegame conversion code after the window and cache initializations. 2007-11-28 15:42:52 +00:00
belugas 440608a6f0 (svn r11536) -Codechange: Align some elements of the _tree_layout_sprite table a little better looking for the eye 2007-11-28 00:41:20 +00:00
miham 34edc93f2a (svn r11535) -Update: WebTranslator2 update to 2007-11-27 20:21:42
ukrainian  - 1 fixed by mad (1)
2007-11-27 19:22:08 +00:00
belugas b10eea628d (svn r11534) -Feature(newgrf): Implement property 23h for Industries.
This will add a cost to the removal of an industry using the cheat magic bulldozer.
Note that the removal of regular or newgrf industries without specified removal cost will have no cost applied to.
This is a difference from original spec, where a default base cost is added.
2007-11-27 17:13:49 +00:00
belugas 1682d5d679 (svn r11533) -Codechange: Rename some unclear clear_x prices member names.
While at it, remove one unused entry on the clear_price_table array.
It is based on ground type, and the unused one was referencing a non existing one.
2007-11-27 16:02:13 +00:00