rubidium
818a23e7f2
(svn r11664) -Codechange: use more specific ("rail_type.h" instead of "rail.h" that includes way more than only "rail_type.h") includes at some places.
2007-12-18 20:58:12 +00:00
rubidium
efc18e8ab3
(svn r11663) -Codechange: moving of the road related types and functions.
2007-12-18 20:38:16 +00:00
rubidium
2e2d76f445
(svn r11662) -Codechange: move some rail types/related functions around.
2007-12-18 20:10:21 +00:00
rubidium
0995194162
(svn r11661) -Codechange: some header reworks in order to try to reduce the compile time of OpenTTD by reduce the amount of circular-ish dependencies.
2007-12-18 19:52:14 +00:00
miham
962f6361ff
(svn r11660) -Change: english -> english (uk), english_us ->english (us)
2007-12-18 18:08:51 +00:00
smatz
31765f0dfe
(svn r11659) -Fix [FS#1563]: do not allow modifying non-uniform stations when non-uniform stations are disabled
2007-12-18 18:02:00 +00:00
smatz
531651293e
(svn r11657) -Fix: show better error message when trying to convert rail
...
-Codechange: merge DoConvert functions into one, make test and exec runs the same for tunnels/bridges
2007-12-17 22:29:27 +00:00
smatz
8d91abdfe3
(svn r11656) -Codechange: add ZOOM_LVL_BEGIN and postfix operators so ZoomLevel can be used in some iterations
2007-12-17 22:04:07 +00:00
miham
89e49e5e95
(svn r11655) -Update: WebTranslator2 update to 2007-12-17 20:16:03
...
danish - 22 fixed by ThomasA (22)
estonian - 18 fixed, 47 changed by kristjans (65)
italian - 4 changed by lorenzodv (4)
norwegian_nynorsk - 20 fixed by pollux (20)
2007-12-17 19:16:53 +00:00
miham
bc171a0153
(svn r11654) -Change: renaming american languagefile to english_US
2007-12-17 18:49:51 +00:00
egladil
4c3186d2d0
(svn r11653) -Feature: [OSX] Allow windowed mode subdrivers to be disabled at compile time.
2007-12-17 07:47:21 +00:00
smatz
d5dbce8331
(svn r11652) -Codechange: add the svn $ header for several files
2007-12-17 01:35:45 +00:00
rubidium
8d1b25beee
(svn r11651) -Codechange [FS#1555]: implement GRF parameter querying for industries and fix a 'bug' as side effect.
2007-12-16 23:10:30 +00:00
rubidium
c231998248
(svn r11650) -Fix: 'initialised' NewGRFs could still be deactivated in the later 'activation' pass.
2007-12-16 22:21:34 +00:00
smatz
d56a690ba4
(svn r11649) -Codechange: some code can be simplified thanks to changes in r11642
2007-12-16 19:30:42 +00:00
rubidium
cdee7d4cb8
(svn r11648) -Fix [FS#1560]: the company password was not set when one pressed the enter key.
2007-12-16 19:28:07 +00:00
rubidium
274cbd72fe
(svn r11647) -Fix (r11646): it did not compile without freetype...
2007-12-16 19:21:28 +00:00
rubidium
2b8863c846
(svn r11646) -Codechange: check whether (some) characters are missing in the current 'font' for the 'currently' chosen language and give a warning when that does happen.
2007-12-16 18:38:19 +00:00
glx
78fd9216f2
(svn r11645) -Fix (r8128): station ground tiles may have transparency or company colour
2007-12-16 17:50:09 +00:00
smatz
926fe5c9e9
(svn r11644) -Codechange: merge some functions from tunnel_map.h and bridge_map.h into tunnelbridge_map.h
2007-12-16 15:38:51 +00:00
rubidium
8ce9c5f29b
(svn r11643) -Codechange: conform with the coding style for the WP macro uses.
2007-12-16 10:54:08 +00:00
smatz
60f9bbd17e
(svn r11642) -Codechange: VehicleFromPos does check for v->tile == tile, so remove useless checks
2007-12-15 23:11:18 +00:00
rubidium
ad218166ec
(svn r11640) -Fix: missed change of include when moving stuff to random_func.cpp
2007-12-15 22:05:02 +00:00
smatz
f13a60b90c
(svn r11639) -Codechange: simplify EnsureNoVehicleOnGround
2007-12-15 20:30:43 +00:00
smatz
13c11e9af6
(svn r11638) -Codechange: use faster check in SignalVehicleCheck for tunnel/bridge
2007-12-15 19:46:34 +00:00
smatz
c972d309be
(svn r11637) -Fix: mark viewports dirty when removing visible vehicle chain
2007-12-15 16:11:29 +00:00
smatz
76391f4498
(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
c8f4810dac
(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
57a83e7c76
(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
d31506654c
(svn r11633) -Codechange: merge CheckTunnelEmpty and IsVehicleOnBridge into GetVehicleTunnelBridge
2007-12-14 23:21:20 +00:00
rubidium
6685c7c8e2
(svn r11632) -Fix [FS#1541]: vehicles were still followed when sold.
2007-12-14 21:11:30 +00:00
glx
3a0f350ab4
(svn r11631) -Fix (r11585, r11626): remove MSVC warnings
2007-12-14 00:25:00 +00:00
rubidium
5b689aa665
(svn r11630) -Fix [FS#1544] (r11556): the chat GUI got broken.
2007-12-13 23:26:00 +00:00
rubidium
2160338662
(svn r11629) -Fix [FS#1527]: many viewports could crash the scenario editor.
2007-12-13 18:46:04 +00:00
miham
ceabed7e7e
(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
ab99e83a83
(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
3b849778c1
(svn r11626) -Fix [FS#1529]: Pause state wasn't set correctly in multiplayer saves
2007-12-12 21:56:10 +00:00
smatz
3b59b68a15
(svn r11625) -Codechange: add CO_* enum at some places, add includes of order.h too
2007-12-12 14:37:35 +00:00
belugas
a7fa65a2e3
(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
cd58045234
(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
ad022c535c
(svn r11622) -Codechange: support the unicode version of the 'control' characters.
2007-12-11 21:25:48 +00:00
rubidium
745da6563f
(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
13fe232f68
(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
3a62919ba3
(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
946fa3b9ee
(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
fd23999fb9
(svn r11617) -Feature(ette): Add the same game-mode keyboard shortcuts in scenario more.(Bilbo)
2007-12-11 03:41:33 +00:00
rubidium
28c436a054
(svn r11616) -Fix [FS#1526]: sometimes large values could go off the chart.
2007-12-10 22:26:24 +00:00
glx
4320447aef
(svn r11615) -Fix (r11609): temperate banks can only be built in towns (over a house)
2007-12-10 17:26:49 +00:00
skidd13
7638c9b165
(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
15085aa7f4
(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
8bd26725d3
(svn r11610) -Cleanup (r8572): remove orphan comment
2007-12-09 20:20:52 +00:00
rubidium
a510606144
(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
aa39d2a618
(svn r11608) -Fix: do not trigger industries, but only the industry's tiles.
2007-12-09 18:27:40 +00:00
skidd13
eff1c37b77
(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
bde4b44473
(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
b6bc3aa698
(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
d03207df56
(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
911273948b
(svn r11603) -Fix [FS#1481]: make price for railtype conversion more realistic
2007-12-08 19:53:30 +00:00
smatz
189771541e
(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
bfda3c82f1
(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
593b49dc49
(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
97a8a0d77f
(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
33cdfc71dc
(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
f271038461
(svn r11596) -Codechange: Use the Window member HandleButtonClick and remove its now useless counterpart function
2007-12-08 03:10:50 +00:00
belugas
902b20263c
(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
e3f4d0e72a
(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
42d6f195cf
(svn r11593) -Cleanup: remove some forgotten pieces of evidence of a mischief
2007-12-08 01:30:18 +00:00
belugas
544325590c
(svn r11592) -Codechange: Use the Window member RaiseButtons and remove the now useless RaiseWindowButtons function
2007-12-08 01:20:47 +00:00
belugas
ecb9382c7e
(svn r11591) -Codechange: remove now unused widget accessors.
2007-12-08 01:02:19 +00:00
glx
7e7606b0d3
(svn r11590) -Fix (r11193): IsSlopeRefused() result was half wrong
2007-12-07 21:16:38 +00:00
rubidium
c3ae7faa13
(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
b00f621239
(svn r11588) -Codechange: use the new member introduced in r11551
2007-12-07 18:05:49 +00:00
skidd13
30a5f9abf3
(svn r11587) -Fix (r11457): The one way road button wasn't reset on abort
2007-12-07 17:51:27 +00:00
glx
d129a7295c
(svn r11586) -Fix: make another widget 'accessor' function const when it should be const.
2007-12-07 17:42:15 +00:00
skidd13
10360288d0
(svn r11585) -Codechange: Enumify the widgets of the newGRF gui and a slight cleanup there
2007-12-07 12:22:34 +00:00
rubidium
2b9f51219f
(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
39b1a8302b
(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
57fc61009e
(svn r11582) -Fix: tiles were not marked dirty in some cases when removing a lock
2007-12-06 20:48:15 +00:00
rubidium
9b7b34fc2c
(svn r11581) -Codechange: add some missing cargo classes and some documentation.
2007-12-06 20:36:46 +00:00
skidd13
b57274cdf2
(svn r11580) -Feature: Memorise the resizing of the build bridge selection window during runtime
2007-12-06 18:29:31 +00:00
belugas
1495f6aaf8
(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
cc29d43876
(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
9cab7af581
(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
6ab52ddf89
(svn r11576) -Codechange: enumerize and comment station GUI
2007-12-05 17:08:10 +00:00
smatz
15a5a1a95b
(svn r11575) -Fix [FS#1502]: widget numbers of StationViewWindow were incorrect at some places
2007-12-05 16:55:33 +00:00
smatz
fcfd0f1c76
(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
1c30d0b966
(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
be48614ef8
(svn r11572) -Fix [FS#1494]: reinitialise windows system before loading a savegame
2007-12-04 22:22:50 +00:00
rubidium
4f0e072f3f
(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
d4322bc8aa
(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
eb0be0322a
(svn r11569) -Fix [FS#1480]: full paths sometimes did not work correctly.
2007-12-04 18:42:08 +00:00
belugas
586d2da917
(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
06c131b244
(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
411dec5c3e
(svn r11565) -Revert: part of r11564
2007-12-03 22:40:18 +00:00
skidd13
5d74f2ced4
(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
2b372e7e7b
(svn r11563) -Codechange: Align the preprocessor code in stdafx.h with tabs
2007-12-02 21:43:16 +00:00
rubidium
f758c337c7
(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
5da6900c3f
(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
8ae661b176
(svn r11560) -Codechange: replace 'custom' version of FindLastBit with the generic.
2007-12-02 19:23:46 +00:00
rubidium
8c0122f429
(svn r11559) -Fix [FS#1505]: overflow when drawing graphics with high company values.
2007-12-02 19:21:56 +00:00
rubidium
49e6247de8
(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
2880047689
(svn r11556) -Feature: allow setting a default password for new companies in network games.
2007-12-02 14:48:26 +00:00
rubidium
92cb0e45ca
(svn r11555) -Codechange: use the new members introduced in r11551.
2007-12-02 14:29:48 +00:00
rubidium
c0790fff86
(svn r11554) -Codechange: be more consistent with the naming of the widget functions.
2007-12-02 13:32:41 +00:00
rubidium
f8be009c74
(svn r11553) -Fix: make a few widget 'accessor' function const when they should be const.
2007-12-02 12:10:48 +00:00
miham
a7929a8de9
(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
31cb48b1ad
(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
b9c3ea6a01
(svn r11550) -Fix (r11547): Updated the data files regarding to r11549
2007-12-02 00:53:01 +00:00
rubidium
99dbfd3866
(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
61dc1f8609
(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
4f5ae3b66f
(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
9b4aadf8dd
(svn r11544) -Fix [FS#1501]: revert r11453 as it translated cargo when it should not
2007-12-01 02:47:10 +00:00
belugas
aeb90dfab4
(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
13aa24f1ae
(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
914cd22833
(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
40cb6922bd
(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
f9f6c757f7
(svn r11539) -Feature: Make the bridge selection window resizable
2007-11-29 18:27:39 +00:00
skidd13
e184495fd4
(svn r11538) -Codechange: Rewrite GetNthSetBit in a more uncontroversial way and add its documentation
2007-11-28 21:59:06 +00:00
rubidium
bd27f767cc
(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
b350debceb
(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
db6023f706
(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
b98847e489
(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
e07925a5cb
(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
belugas
a22bdeb8e3
(svn r11532) -Feature[newgrf]: Add decrement(0x0D) / increment(0x0E) production operations from result of production callback cb29/35.
...
Only var 0x93 will be affected by these operations
2007-11-27 04:16:08 +00:00
smatz
12321687d1
(svn r11530) -Codechange: do not update Tpool->first_free_index for PoolItems allocated on stack
2007-11-26 22:56:30 +00:00
miham
ba1f335c2f
(svn r11529) -Update: WebTranslator2 update to 2007-11-26 21:13:37
...
brazilian_portuguese - 1 fixed by fukumori (1)
catalan - 1 fixed, 2 changed by arnaullv (3)
dutch - 1 fixed by habell (1)
french - 1 fixed, 1 changed by glx (2)
italian - 1 fixed by lorenzodv (1)
lithuanian - 4 fixed by Domas (4)
slovak - 1 fixed, 1 changed by lengyel (2)
ukrainian - 5 fixed by mad (5)
2007-11-26 20:14:20 +00:00
maedhros
24a5dd3ca2
(svn r11528) -Fix (r11500): With smooth economy enabled, industries that should only decrease production would always increase it when more than 60% was transported.
2007-11-26 19:23:53 +00:00
skidd13
057ae477b5
(svn r11527) -Codechange: Split the bitmath functions of to their own files
2007-11-26 17:50:22 +00:00
skidd13
f56579e0d9
(svn r11526) -Codechange: Rename the function delta fitting to the naming style
2007-11-26 16:01:29 +00:00
rubidium
91152b925e
(svn r11525) -Fix: do not do all kinds of 'updates' for town, waypoint, station and other signs when you haven't converted the map to the 'current' format as that means you are going to read data in the 'old' format when you assume that it is in the 'current' format.
2007-11-25 20:20:16 +00:00
rubidium
825fc97077
(svn r11524) -Fix [FS#1485]: assertion when tram reversed at a station.
2007-11-25 19:45:09 +00:00
skidd13
e36dba227b
(svn r11523) -Codechange: Move the CHANCE macros to core/random_func.cpp cause they depend on Random()
...
-Codechange: Convert the CHANCE macros to functions and rename them fitting to the naming style
2007-11-25 15:35:25 +00:00
skidd13
e3092f6791
(svn r11522) -Fix: The scrollbar of the network gui could run out of bounds
2007-11-25 15:17:16 +00:00
egladil
35159d5db3
(svn r11521) -Codechange: [OSX] Check what the running os version is in a cleaner way.
2007-11-25 14:43:16 +00:00
egladil
b24392dfdd
(svn r11520) -Fix: [OSX] The cocoa video driver let the mouse cursor escape the window when using rmb scrolling. Thanks ln- for pointing this out and providing a fix.
2007-11-25 12:58:32 +00:00
smatz
ca30e9b849
(svn r11519) -Codechange: enumerization and cleanup of NetworkLobbyWindow in network_gui.cpp
2007-11-25 11:36:45 +00:00
smatz
66c65c82c3
(svn r11518) -Codechange: enforce (by assert) unused parameters of widgets to be zero. Better readability of DrawWindowWidgets(), too
2007-11-25 00:41:31 +00:00
smatz
13128407d9
(svn r11517) -Codechange: better cleanup of NetworkStartServerWindow in network_gui.cpp
2007-11-24 21:49:49 +00:00
smatz
d056b350eb
(svn r11516) -Codechange: cleanup of NetworkGameWindow in network_gui.cpp
2007-11-24 21:41:59 +00:00
smatz
8e19280a72
(svn r11515) -Codechange: cleanup of NetworkStartServerWindow in network_gui.cpp
2007-11-24 18:09:02 +00:00
rubidium
63b0cba29b
(svn r11514) -Change: implement the automatic multiplier handler for NewGRF industries.
2007-11-24 14:03:47 +00:00
smatz
ce8d9b7fec
(svn r11513) -Codechange: enumerize some depot GUI actions
2007-11-24 13:50:29 +00:00
rubidium
b53aa55ade
(svn r11512) -Change: make the subsidy window able to resize to something smaller than 640x127 (especially the 640 part) when the screen is really too small.
2007-11-24 13:00:32 +00:00
rubidium
121069b5e1
(svn r11511) -Revert parts of r11505: forgot that CTRL might be used for other features, like adjacent stations or signals.
2007-11-24 12:36:52 +00:00
skidd13
815b8d8df1
(svn r11510) -Codechange: merge the IS_*INSIDE* functions and rename them fitting to the naming style
2007-11-24 10:38:43 +00:00
rubidium
3ff1cf32c3
(svn r11509) -Fix: off-by-one error in some sprite numbers; increase sprite number counter before loading the next sprite instead of after doing so.
2007-11-24 10:19:56 +00:00
egladil
d8e9bb4089
(svn r11508) -Cleanup: Removed unused headers from the cocoa video driver.
2007-11-24 09:55:17 +00:00
rubidium
6c027d98b9
(svn r11507) -Fix [FS#1463]: signs totally illegible when transparant signs is turned on and zoomed out more than one level.
2007-11-24 09:27:20 +00:00
rubidium
49e2e29685
(svn r11506) -Fix [FS#1471]: selling vehicles could cause the window of others to scroll to that location.
2007-11-24 09:14:58 +00:00
rubidium
7562d21e50
(svn r11505) -Fix/Feature: make CTRL work on all road/rail construction options that 'work' with the 'Bulldozer' button instead of only a few.
2007-11-24 08:56:29 +00:00
rubidium
7f72e5573a
(svn r11504) -Fix [FS#1467]: removing docks/ship depots could result in non-canal water where canals should have been build.
2007-11-24 08:45:04 +00:00
glx
b38d2e8dbb
(svn r11502) -Fix (r11144): don't do standard production change if callbacks 29/35 failed
...
-Fix (r11144): disable smooth economy for industries using callbacks 29/35
2007-11-23 16:50:54 +00:00
egladil
db70be611c
(svn r11501) -Fix: [OSX] This remedies a problem with right click scrolling that was introduced in r11492.
2007-11-23 13:45:59 +00:00
belugas
0ed5570eb4
(svn r11500) -Codechange: Smooth economy fine-tuning, making industries more responsive. Patch by Sirkoz.
2007-11-23 12:12:07 +00:00
glx
74cf54910a
(svn r11499) -Fix (r11144): mul/div factor were wrong (off by two)
2007-11-23 04:17:41 +00:00
egladil
0fce8dbf1f
(svn r11498) -Add [FS#1411]: [OSX] Added support for using Quartz instead of Quickdraw in windowed mode on OS X 10.4 and higher. Based on a patch by blackis.
2007-11-23 02:44:05 +00:00
rubidium
d3ea6fc1ea
(svn r11495) -Fix (r11493): some compilers fail to show warnings when they should.
2007-11-22 22:54:49 +00:00
glx
b78801fa33
(svn r11494) -Fix [FS#1461] (r11450): cargo translation table was now loaded too late ;)
2007-11-22 22:37:06 +00:00
rubidium
11889b6da1
(svn r11493) -Fix [FS#1472]: game crashing on savegame load because it tried to render some part of the window before the savegame conversion was done.
2007-11-22 22:34:30 +00:00
egladil
d50bf9b7bd
(svn r11492) -Codechange: [OSX] Split the cocoa video driver into several files. The reason for this is that the fullscreen and windowed mode api are separate from each other in OS X and thus the driver actual is two drivers in one. This split is to make the code more readable and to prepare for replacing the Quickdraw windowed mode code which uses apis deprecated as of OS X 10.5 (and maybe earlier).
2007-11-22 21:48:17 +00:00
miham
0690603553
(svn r11491) -Update: WebTranslator2 update to 2007-11-22 20:55:02
...
brazilian_portuguese - 5 fixed by tucalipe (5)
catalan - 5 fixed by arnaullv (5)
czech - 5 fixed by Hadez (5)
danish - 6 fixed, 3 changed by MiR (9)
dutch - 5 fixed by habell (5)
french - 5 fixed by glx (5)
italian - 2 fixed by lorenzodv (2)
japanese - 5 fixed by ickoonite (5)
korean - 58 fixed by leejaeuk5 (58)
slovak - 5 fixed, 86 changed by lengyel (91)
slovenian - 5 fixed by Necrolyte (5)
spanish - 5 fixed by eusebio (5)
swedish - 5 fixed by daishan (5)
turkish - 5 fixed by jnmbk (5)
2007-11-22 19:55:54 +00:00
skidd13
4e12073b27
(svn r11490) -Codechange: Split the math functions to their own header
...
-Codechange: Replace the rest of the math macros with functions
2007-11-22 18:01:51 +00:00
skidd13
f26e908466
(svn r11489) -Fix r11488: Somehow the code was added multiple times
2007-11-21 19:18:34 +00:00
skidd13
039570342d
(svn r11488) -Codechange: Spilt the random functions out to seperate file
...
-Codechange: Make the mersenne twister more readable
-Codechange: Unify the seeding process of random
2007-11-21 19:13:38 +00:00
smatz
00c376129d
(svn r11487) -Fix (r11435): move the list of vehicles a bit higher in the player GUI
2007-11-21 13:50:36 +00:00
glx
4bb0c1b4b9
(svn r11486) -Fix [FS#1457]: industry count was wrong in smallmap
2007-11-21 13:46:29 +00:00
skidd13
f92f3aec06
(svn r11485) -Codechange: Remove the doubled function ToggleBitT and rename the remaining to fit with the naming style
2007-11-20 14:11:19 +00:00
skidd13
3ae50673a3
(svn r11484) -Codechange: Remove the doubled function SetBitT and rename the remaining to fit with the naming style
2007-11-20 13:35:54 +00:00
skidd13
795174edf1
(svn r11483) -Codechange: Replace codeparts with functions that do the same to increase readability
2007-11-20 12:57:24 +00:00
skidd13
6801cceda1
(svn r11482) -Codechange: Remove the doubled function ClrBitT and rename the remaining to fit with the naming style
2007-11-19 21:32:20 +00:00
skidd13
c0a2c0c23e
(svn r11481) -Codechange: Rename the HASBIT function to fit with the naming style
2007-11-19 21:02:30 +00:00
skidd13
7a4d96f629
(svn r11480) -Codechange: Rename the function ALIGN fitting to the naming style
...
This fixes also FS#1450
2007-11-19 20:40:14 +00:00
skidd13
26224adf78
(svn r11479) -Codechange: Move the BIGMUL functions to the file of their usage
...
-Codechange: Rename the BIGMUL functions to the fitting naming style
2007-11-19 20:18:27 +00:00
rubidium
2bfe2a01d5
(svn r11478) -Fix: two small layout issues with the vehicle grouping GUI.
2007-11-19 19:54:23 +00:00
rubidium
a36fd1db6e
(svn r11477) -Fix [FS#1451]: a road vehicle must not show that it is driving max speed when it is standing still waiting for the vehicle in from of it.
2007-11-19 18:58:32 +00:00
skidd13
f4a5c80d71
(svn r11476) -Codechange: rename the function myabs to abs to get rid of an unneeded define
2007-11-19 18:58:04 +00:00
skidd13
98f66552be
(svn r11475) -Codechange: rename clamp and clampu to Clamp and ClampU to fit with the coding style
2007-11-19 18:38:10 +00:00
belugas
9e385d2427
(svn r11474) -Feature: Allow to resize on creation the smallmap gui in order to show all the types industry available.
...
-Feature: Allow to enable/disable individually or all at once, the industries shown on small map.
This will permit to easily find those that are of some interest for the player.
Heavily based on gule's patch
2007-11-19 04:34:40 +00:00
belugas
581032d94c
(svn r11473) -Codechange: Replace two more instances of widget/smalltype numbers by enum(-a) values
2007-11-19 01:16:53 +00:00
belugas
64e4ecd958
(svn r11472) -Codechange: Give enuma for both the widget numbers and the used smallmap currently used type
2007-11-19 00:57:56 +00:00
smatz
32802f863b
(svn r11471) -Codechange: one more variable retyped to enum ViewportHighlightMode
2007-11-18 23:13:53 +00:00
rubidium
b166ca6bec
(svn r11467) -Fix [FS#1450]: OpenBSD has ALIGN already defined, causing compilation failures.
2007-11-18 20:21:41 +00:00
smatz
a4d63f5b5b
(svn r11466) -Fix (r11339): operator priority problem resulting in problematic autoroad placement in some cases
2007-11-18 20:10:07 +00:00
smatz
001179990d
(svn r11465) -Fix: more user-friedly placement in X and Y directions (most noticeable with autoroad)
2007-11-18 20:05:44 +00:00
rubidium
da6ee7c73b
(svn r11464) -Fix: some issue that made OpenTTD on MorphOS seriously unplayable.
2007-11-18 18:28:32 +00:00
rubidium
67bbd8f7ab
(svn r11463) -Fix: some OSes seem not to handle allocating 0 bytes in the same manner as others do.
2007-11-18 16:41:25 +00:00
rubidium
cea3cf2857
(svn r11461) -Fix [FS#1449] (r11449): a bus turning around in a station could case an assertion error. Patch by divide.
2007-11-18 15:06:01 +00:00
skidd13
e70e49394c
(svn r11459) -Fix: (r11457) The selection highlight color hasn't been reset
2007-11-18 14:39:43 +00:00
skidd13
be0da30572
(svn r11457) -Fix: (r11455) Reenable the accidentaly removed one way roads option
...
-Change: Enable one way roads like the remove via a toolbar icon
2007-11-18 13:55:23 +00:00
smatz
d749fda9e4
(svn r11456) -Fix [FS#1412] (r10070): Viewport is bound to its top-left corner
2007-11-18 13:13:59 +00:00
rubidium
3c020cfd68
(svn r11455) -Codechange: make autoroad, 'normal' road building and 'normal' rail building all react the same on CTRL as autorail.
2007-11-18 08:03:48 +00:00
rubidium
ccf610e13c
(svn r11454) -Fix: the CHANCE16 functions were biased; a 32768 in 65536 chance was really a 32769 in 65536 chance.
2007-11-17 23:16:41 +00:00
glx
76d9c20f01
(svn r11453) -Fix (r11450): unrevert r11239, as we now need it
2007-11-17 22:33:53 +00:00
rubidium
09906e3de2
(svn r11452) -Change: do not allow configuration changes, that NewGRFs can directly use to change their behaviour, during network games as this can cause desyncs.
2007-11-17 22:25:16 +00:00
rubidium
004fe26a27
(svn r11451) -Fix [FS#1287]: very fast aircraft would sometimes abruptly stop at the begin of the landing runway, turn a few times and then drive slowly to the end of the runway.
2007-11-17 15:04:38 +00:00
glx
4c4ea8cfdf
(svn r11450) -Fix [FS#1432](r8886): cargo translation table was loaded too early
2007-11-17 15:03:19 +00:00
rubidium
2245094822
(svn r11449) -Fix [FS#1160]: trams could deadlock themselves. As of now trams will turn as roadvehicles do when the player cannot build a tram track piece on the next tile without destroying anything. It will not turn when the player can build the before mentioned track piece on the 'next' tile.
2007-11-17 12:42:15 +00:00
belugas
3b9ad8d73f
(svn r11447) -Fix(r11433): Wrong offset to the helipad made it look like the autoroad button
2007-11-17 01:55:00 +00:00
skidd13
67c371f3d9
(svn r11446) -Codechange: change the naming of road related code parts to something more descriptive
...
-Change: invert the two single roads gui buttons, making it consistent with rails toolbar
Based on a patch by Octopussy
2007-11-17 01:10:06 +00:00
miham
af17b0b8a0
(svn r11444) -Update: WebTranslator2 update to 2007-11-16 08:21:07
...
czech - 1 changed by Hadez (1)
estonian - 1 fixed by kristjans (1)
french - 10 changed by glx (10)
italian - 3 fixed, 1 changed by lorenzodv (4)
japanese - 1 fixed by ickoonite (1)
slovenian - 1 fixed by Necrolyte (1)
swedish - 4 fixed, 4 changed by daishan (8)
2007-11-16 07:21:44 +00:00
glx
bad3d28184
(svn r11443) -Fix: [NewGRF] Action 0 <id> is an extended byte
2007-11-16 02:25:56 +00:00
rubidium
fbd234d274
(svn r11442) -Feature: make news messages related to the industry (production) changes better configurable; you can now disable news messages popping up for industries you are not servicing. Patch by Alberth.
2007-11-15 22:20:33 +00:00
rubidium
72a59fade2
(svn r11441) -Fix [FS#1443]: manage list dropdown menu did not "disappear" when the all vehicles are removed from the "current" group.
2007-11-15 19:18:52 +00:00
rubidium
ecdb16de42
(svn r11440) -Codechange: replace magic numbers with enumified WindowHighlightMode constants. Patch by SmatZ.
2007-11-15 18:28:00 +00:00
rubidium
c5a9fd4559
(svn r11439) -Codechange: replace some magic numbers by a ViewportPlaceMethod enumified constant. Patch by SmatZ.
2007-11-15 18:21:59 +00:00
rubidium
f3c94c5830
(svn r11438) -Change: do not create shores in canyons. Based on a patch by LeviathNL.
2007-11-15 18:07:30 +00:00
rubidium
59afbb0344
(svn r11437) -Change: when sorting stations by cargo sum, only sum the cargos that are selected in the filter. Patch by divide.
2007-11-15 17:54:46 +00:00
rubidium
5bbb31a896
(svn r11436) -Fix [FS#1439]: Towns would not build roads on slopes. Patch by divide.
2007-11-15 17:51:36 +00:00
rubidium
a731bc5812
(svn r11435) -Codechange: show all players who have shares, not just the first two. Patch by SmatZ.
2007-11-15 17:49:50 +00:00
miham
18dacd34e5
(svn r11434) -Fix: fixed a string in finnish (suggested by ln-)
2007-11-15 15:02:42 +00:00
rubidium
af0616729a
(svn r11433) -Fix: starting OpenTTD with DOS files made it look weird out of the box.
...
-Change: make extra sprites (the ones not in the TTD GRFs) replaceable using Action 5.
-Feature: make replacing contiguous subsets of sprites in for some types possible in Action 5.
Note to GRF authors: when you replaced OpenTTD sprites that are not from the TTD GRF files using Action A, your GRF will not have the intended result anymore as the sprite numbers have changed. You should replace the Action A with an Action 5 from now on.
2007-11-15 07:42:25 +00:00
glx
9fcf6e7a43
(svn r11431) -Codechange: [NewGRF] Add support for changing rail vehicle user-defined bit mask (prop 25) via callback 36
2007-11-15 00:13:12 +00:00
rubidium
a46f502d5f
(svn r11430) -Fix (r11421) [FS#1421]: there was still one case that would cause a crash...
2007-11-13 22:44:41 +00:00
glx
d4e8889d5f
(svn r11429) -Fix (r11129): some TextID to StringID 'translations' didn't follow our format
2007-11-13 18:57:38 +00:00
glx
dac5cf2c59
(svn r11428) -Fix: wrong string used for candy/sweets units_volume
2007-11-13 18:38:36 +00:00
belugas
fecdeda7b1
(svn r11427) -Fix: Forgot to Truncate the string "Many Random Industries" in the funding industry window. In some languages, it gets drawn outside of the gui.
2007-11-13 15:41:09 +00:00
belugas
1ecb96b2c6
(svn r11426) -Codechange: Just one boolean inversion instead of two
2007-11-13 03:34:24 +00:00
glx
df71c4f289
(svn r11425) -Fix [FS#1424]: overriden industries were ignored when mapping newgrf industry type to 'real' industry type
2007-11-12 20:57:03 +00:00
glx
de7f58d5d4
(svn r11424) -Fix: an override can be set only once
2007-11-12 20:42:35 +00:00
glx
60ccc5bbce
(svn r11423) -Codechange: store grfid when adding an override
2007-11-12 20:40:58 +00:00
rubidium
49b4aa32bb
(svn r11422) -Fix [FS#1430]: properly support genders coming from newgrfs instead of crashing.
2007-11-12 20:05:12 +00:00
rubidium
14c092faad
(svn r11421) -Fix [FS#1431]: do not use a function that asserts when wrapping around the map's edge when you use the wrapping (and MP_VOID tiles) to determine whether the bridge can be build.
2007-11-12 19:21:33 +00:00
rubidium
2c000f1546
(svn r11420) -Fix [FS#1006]: industry closure news not properly shown when the news item pops up after the industry has been removed from the map.
2007-11-12 18:32:04 +00:00
rubidium
abbde80e53
(svn r11419) -Fix [FS#1388]: articulated vehicle breaking up when making a 90 degree turn immediately after a 180 degree turn.
2007-11-12 18:28:55 +00:00
glx
14fe7a9fed
(svn r11418) -Fix (r11416): forgot an instance
2007-11-12 01:38:32 +00:00
belugas
8e7111491c
(svn r11417) -Fix[FS#1421]: Let the main viewport stay where the vehicle was last seen while been center-followed
2007-11-12 01:12:32 +00:00
belugas
542697a28a
(svn r11416) -Fix(r11411): For once, the warnings of MSVC are not useless. Inversion of the two parameters of DoTriggerHouse cause a complain which was legit, in this case
2007-11-12 01:05:35 +00:00
rubidium
1e3e5bf2cf
(svn r11415) -Fix [FS#1428]: do not ignore the autorenew settings for new games when creating a new game.
2007-11-11 21:05:50 +00:00
rubidium
084ede9dca
(svn r11414) -Fix [FS#1387]: when building a station, even though we already 'know' it in memory, it should still be unknown in the realm of callbacks.
2007-11-11 20:24:32 +00:00
glx
8844bd6cde
(svn r11413) -Fix [FS#1405]: don't use cached override spriteset for callbacks
2007-11-11 18:32:01 +00:00
rubidium
02a6debc11
(svn r11412) -Fix (r11403): animation was not turned on properly.
...
-Fix (r11410): wrong assumption about random reseeds made the whole thing reseed way too often, making the animation look very ugly.
2007-11-11 18:22:06 +00:00
rubidium
dcbd2fdfc7
(svn r11411) -Codechange: implement random triggers for houses.
2007-11-11 17:58:05 +00:00
rubidium
c1cf9f3396
(svn r11410) -Codechange: implement random triggers for industries.
2007-11-11 17:56:37 +00:00
truelight
dd6ef7ad49
(svn r11409) -Update: as of now, I am a retired Developer, so mark me as such
2007-11-11 14:32:18 +00:00
rubidium
75b7ca42ae
(svn r11408) -Fix [FS#1422]: do not do a 270 degree turn when 90 degrees is enough on a commuter airport.
2007-11-11 13:04:51 +00:00
truelight
58e5282e38
(svn r11407) -Fix: do not allow building of tram-tracks when they are not available (SmatZ)
2007-11-11 12:34:44 +00:00
rubidium
6e31698150
(svn r11406) -Fix: wrong triggers would be activated on callback 32 for vehicles.
2007-11-11 12:29:47 +00:00
truelight
8725f2b857
(svn r11405) -Fix: in rare cases OpenTTD could segfault when resizing and scroll the main window (Rafal Rzepecki)
2007-11-11 12:26:44 +00:00
belugas
7501144775
(svn r11404) -Codechange: remove 2 magical numbers
2007-11-11 01:39:15 +00:00
rubidium
e463f5687d
(svn r11403) -Fix: NewIndustries GRF assume that tiles are already animated during construction.
2007-11-11 00:53:59 +00:00
glx
df35372b9b
(svn r11402) -Fix [FS#1382]: incorrect handling of industry behaviour 'must be in town with population large than 1200'
2007-11-11 00:04:52 +00:00
rubidium
0c3364e241
(svn r11401) -Fix [FS#1391]: make all min functions do exactly the same instead of branching on either < or <=.
2007-11-10 23:22:32 +00:00
rubidium
dd4720461b
(svn r11400) -Fix [FS#1409]: assign orders during cloning after refitting as it needs the cargo types to be the same.
2007-11-10 22:56:43 +00:00
belugas
f26a591e6c
(svn r11399) -Feature(ette): transparency settings can now be saved and thus remembered.
...
-Codechange: Wrap all transparency settings in accessors, hiding the implementation
-Change: Clicking "transparent building" menu will toggle Houses And Trees only. The other options can be used in the transparency gui.
Initial patch by Smatz (FS#1349), with some rework by BigBB and your humble servant.
2007-11-10 01:17:15 +00:00
glx
466193c574
(svn r11398) -Fix [FS#1414]: industry variables 67 and 68 return was incorrect
2007-11-10 00:42:25 +00:00
truelight
b02337bbe0
(svn r11397) -Fix r11395: some minor fixes for better town-bridge results (and better comments) (skidd13 / TrueLight)
2007-11-09 13:21:48 +00:00
truelight
42180a8f4e
(svn r11396) -Fix: GCC 3.3 doesn't like 'static bool inline', should of course be 'static inline bool' (SmatZ)
2007-11-09 11:22:17 +00:00
truelight
1ebfc21e7a
(svn r11395) -Fix: allow town-bridges to be build on slopes (Rafal Rzepecki)
2007-11-09 11:20:36 +00:00
glx
1502373441
(svn r11394) -Fix: default value for input cargo multipliers is 256 even for invalid cargo. Exceptions are temperate banks and oil rigs, default value is 0 for them
2007-11-08 22:29:21 +00:00
belugas
2edf7afa6c
(svn r11392) -Codechange: Remove some MSVC warnings by removing boolean typecast that can be avoided by using HASBIT instead.
...
Although the code is old (r2817), it is the recent changes made in macros.h that brough it up.
2007-11-08 16:09:04 +00:00