skidd13
38efdc8222
(svn r14546) -Codechange: Unify string(cpy|cat) functions
...
-Doc: string(cpy|cat) functions
2008-10-29 16:30:41 +00:00
rubidium
a6df995fbb
(svn r14545) -Fix [FS#2386]: road vehicles sometimes never got their "slots" deallocated causing RVs not going to depot for service.
2008-10-28 23:34:42 +00:00
rubidium
633b15caf3
(svn r14542) -Codechange: replace some sprintf with s[en]printf to make sure they will not overflow their buffers.
2008-10-28 16:04:41 +00:00
rubidium
da0a0ef8ca
(svn r14541) -Fix (r14540): mingw didn't like it :(
2008-10-28 15:47:42 +00:00
rubidium
0d254e8914
(svn r14540) -Codechange: introduce [v]seprintf which are like [v]snprintf but do return the number of characters written instead of the number of characters that would be written; as size_t is unsigned substraction can cause integer underflows quite quickly.
2008-10-28 14:42:31 +00:00
translators
cf4cffd91a
(svn r14539) -Update: WebTranslator2 update to 2008-10-27 18:43:26
...
dutch - 5 fixed by habell (5)
french - 5 fixed by glx (5)
galician - 5 fixed by Condex (5)
ido - 31 fixed by Cecile (31)
indonesian - 50 fixed by dnaftali (50)
italian - 5 fixed by lorenzodv (5)
korean - 5 fixed, 4 changed by leejaeuk5 (9)
spanish - 5 fixed by eusebio (5)
swedish - 5 fixed by ChrillDeVille (5)
ukrainian - 5 fixed by mad (5)
2008-10-27 18:43:40 +00:00
frosch
896841403f
(svn r14536) -Fix (r14530): Do not expect uints to become negative.
2008-10-25 22:00:51 +00:00
frosch
77a5a4953b
(svn r14535) -Fix: Description of '-i' commandline option.
2008-10-25 20:16:07 +00:00
glx
a6bfd7f15b
(svn r14534) -Codechange [FS#2382]: Enumify magic return values of HandleEditBox function (Zuu)
2008-10-25 19:59:11 +00:00
frosch
7df85e8a45
(svn r14533) -Fix: ...hopefully most glitches wrt. inclined foundations.
2008-10-25 18:58:24 +00:00
frosch
fd049f0a64
(svn r14531) -Fix (r12425): OSK accessed wrong widgets of password query window.
2008-10-25 15:25:52 +00:00
frosch
ac281ed35c
(svn r14530) -Fix [FS#2138]: Do not deliver cargo to industries not inside station catchment area.
2008-10-25 14:24:50 +00:00
frosch
11ef57d81e
(svn r14529) -Codechange: Turn FindCatchmentRadius() into Station::GetCatchmentRadius().
2008-10-25 14:19:09 +00:00
rubidium
a14ad77a36
(svn r14528) -Codechange: cache the closest town for all road tiles instead of only roads owned by tiles. This replaces a O(n) search over all towns from the road's tileloop with a O(1) lookup (PhilSophus)
2008-10-25 13:51:47 +00:00
rubidium
9075a2bbfc
(svn r14527) -Fix: allocate stub (empty) sound entries when loading an empty/corrupt/incorrectly sized sample.cat instead of making valid NewGRFs fail to load.
2008-10-25 10:26:23 +00:00
rubidium
7588513003
(svn r14526) -Fix [FS#2379]: make sure trains stop at the end of a station; a 3/8th length train did stop 2/8th of it's length too early causing a 63/8th long train not to fit in a 4 tile station.
2008-10-24 20:53:57 +00:00
translators
e3e65e8f2b
(svn r14525) -Update: WebTranslator2 update to 2008-10-24 17:44:48
...
indonesian - 412 fixed by dnaftali (412)
2008-10-24 17:44:49 +00:00
rubidium
42df5cbc03
(svn r14524) -Add: stop-in-depot as part of orders (PhilSophus)
2008-10-24 14:49:45 +00:00
translators
e094088852
(svn r14523) -Update: WebTranslator2 update to 2008-10-23 17:42:35
...
indonesian - 668 fixed by dnaftali (668)
italian - 6 changed by lorenzodv (6)
persian - 88 fixed by ali sattari (88)
2008-10-23 17:42:40 +00:00
glx
eb0464071d
(svn r14521) -Fix [FS#2378]: fast trains could continue to move after a crash
2008-10-22 23:06:36 +00:00
smatz
1e7e5fb175
(svn r14518) -Fix (r14514): forgot win32 and OS/2 files (glx)
2008-10-22 20:23:50 +00:00
rubidium
f43dc3e758
(svn r14517) -Feature: arrow key scrolling in the server list (Roujin)
2008-10-22 20:22:18 +00:00
rubidium
219abb5235
(svn r14516) -Fix: determine the default text direction based on the language file instead of hardcoding one.
2008-10-22 20:21:11 +00:00
smatz
c10f7db576
(svn r14514) -Codechange: use 'size' instead of 'length' for querystring and textbuf, explicitly say it includes the terminating zero
...
-Fix: one couldn't rename things with too long default/automatic name
-Fix: buffer overflow in console when too long (1024 bytes) command was entered
2008-10-22 19:12:10 +00:00
translators
6bc0f0ef92
(svn r14513) -Update: WebTranslator2 update to 2008-10-22 17:26:32
...
czech - 6 fixed by Hadez (6)
indonesian - 121 fixed by dnaftali (120), Admin (1)
italian - 1 changed by lorenzodv (1)
korean - 15 changed by dlunch (15)
latvian - 20 fixed by v3rb0 (20)
persian - 127 fixed by ali sattari (127)
2008-10-22 17:26:40 +00:00
smatz
bb4a4a255d
(svn r14508) -Fix (r14501): arrays were not properly zeroed
2008-10-21 14:56:23 +00:00
rubidium
639f9d8305
(svn r14506) -Add: stub for indonesian language.
2008-10-21 11:19:17 +00:00
michi_cc
ac722661a5
(svn r14505) -Fix (r14504): Missing include.
2008-10-20 19:46:49 +00:00
michi_cc
02c99bdf66
(svn r14504) -Cleanup: Use the right variable type for tile offsets.
2008-10-20 19:35:48 +00:00
rubidium
6c35825453
(svn r14502) -Codechange: add some inline comments and declare variable on use (Alberth)
2008-10-20 15:44:14 +00:00
rubidium
9df75b3f9e
(svn r14501) -Codechange: use sizeof(variable) instead of sizeof(type) or hardcoded amounts (magic constant) for memset (Alberth)
2008-10-20 15:42:56 +00:00
rubidium
8cce756f8f
(svn r14494) -Fix: few MSVC x64 warnings.
2008-10-19 18:47:15 +00:00
frosch
4dcf12a3ad
(svn r14493) -Fix[FS#planetmaker]: Do not assign a station spread to buoys on loading games.
2008-10-19 17:30:41 +00:00
michi_cc
6815cc52fe
(svn r14492) -Fix [FS#2366] (r14482): Conditional orders could lead to an infinite loop on path look-ahead.
...
Don't refactor things that don't want to be refactored, folks. And some comments can't hurt either.
2008-10-19 17:16:26 +00:00
rubidium
d832626bb9
(svn r14491) -Documentation: updates/additions of doxygen docs (Alberth)
2008-10-19 15:39:12 +00:00
rubidium
15eb140d28
(svn r14490) -Codechange: fix comment style on a few locations (Alberth)
2008-10-19 09:51:19 +00:00
frosch
5a1df325e2
(svn r14488) -Fix: Synchronize drawing of spritelayouts in DrawTileLayout (Houses), IndustryDrawTileLayout, DrawStationTile, DrawTile_Station and DrawTile_Track (Waypoint).
...
Now transparency options, PALETTE_MODIFIER_TRANSPARENT and SPRITE_MODIFIER_OPAQUE should work for all of them.
2008-10-18 17:21:56 +00:00
frosch
2e6894b7bb
(svn r14487) -Fix: The station picker preview did not draw child sprites.
2008-10-18 17:20:31 +00:00
smatz
7a031b60cd
(svn r14486) -Fix (r13343)(r14484): compilation with desync debug was broken
2008-10-18 14:16:29 +00:00
frosch
f2eba8b0bf
(svn r14485) -Fix (r5464): Do not check the end of destination buffer using the source pointer.
...
Did not cause trouble though as destination buffer has always been bigger than source buffer.
2008-10-18 14:11:09 +00:00
frosch
63a9ddeb77
(svn r14484) -Fix (r10182) [FS#2358]: Obiwan dislikes music. (Patch by Yexo)
2008-10-18 13:43:52 +00:00
michi_cc
2001d127b8
(svn r14483) -Fix [FS#2340]: On reaching a waypoint a train could falsely be reported as lost when doing the look ahead for a path.
2008-10-18 13:13:31 +00:00
michi_cc
73dc280847
(svn r14482) -Codechange: Use a class for saving the current train order when extending the reserved path beyond the current destination during pathfinding.
...
The class' destructor will make sure that the order is restored on function exit in all cases.
2008-10-18 13:13:27 +00:00
translators
e9d6016fe6
(svn r14481) -Update: WebTranslator2 update to 2008-10-17 17:47:40
...
korean - 4 changed by leejaeuk5 (4)
latvian - 10 fixed by v3rb0 (10)
persian - 55 fixed by ali sattari (55)
2008-10-17 17:47:42 +00:00
rubidium
65404674a4
(svn r14480) -Add: warning when trying to use a right-to-left language without support for it in OpenTTD.
2008-10-17 17:42:51 +00:00
rubidium
ae0715e8c3
(svn r14479) -Add: initial (optional) support for handling bidirectional scripts and connecting Arabic characters.
2008-10-17 17:14:09 +00:00
frosch
7f5f0fea42
(svn r14469) -Fix [FS#2355]: Empty station spreads (e.g. from greyed station signs) were modified in test mode.
2008-10-15 21:10:43 +00:00
translators
b3742c0165
(svn r14468) -Update: WebTranslator2 update to 2008-10-15 17:40:33
...
hungarian - 8 fixed, 1 changed by alyr (9)
ido - 98 fixed by Cecile (98)
italian - 1 changed by lorenzodv (1)
korean - 88 changed by dlunch (88)
latvian - 15 fixed, 174 changed by v3rb0 (189)
persian - 43 fixed by ali sattari (43)
2008-10-15 17:40:39 +00:00
rubidium
a999bb3227
(svn r14466) -Doc: remove some obsolete parameters, fix a few parameter names in comments and add a little more doxygen documentation.
2008-10-14 19:27:08 +00:00
rubidium
0c5c199f2f
(svn r14465) -Codechange: minor code style of command.cpp.
2008-10-14 18:49:21 +00:00
rubidium
272b2ef0e9
(svn r14464) -Codechange: replace (uint)-1 with UINT_MAX (PhilSophus)
2008-10-14 18:38:51 +00:00
rubidium
03bef3fb5b
(svn r14463) -Fix [FS#2348]: small possible chance of desync due to sorting on pointer instead of by (station) index (PhilSophus)
2008-10-14 12:07:14 +00:00
rubidium
e9f5a19544
(svn r14462) -Codechange: replace magic number with already existing constant (Albert)
2008-10-13 03:40:48 +00:00
rubidium
f1f5b248c2
(svn r14461) -Document: add some doxygen comments (Albert)
2008-10-13 03:26:48 +00:00
translators
313f193b55
(svn r14460) -Update: WebTranslator2 update to 2008-10-12 17:43:44
...
bulgarian - 6 fixed, 1 changed by kokobongo (7)
english_US - 6 fixed by WhiteRabbit (6)
ido - 43 fixed by Cecile (43)
italian - 6 changed by lorenzodv (6)
korean - 41 changed by dlunch (41)
latvian - 54 changed by v3rb0 (54)
persian - 66 fixed by ali sattari (66)
2008-10-12 17:43:52 +00:00
frosch
dea505cbb8
(svn r14459) -Fix [FS#2343]: Update station-spread when building or removing oilrigs to make them consistent with station-spread-calculation on game-load and to make oilrig-stations behave like any other station type.
2008-10-12 10:22:13 +00:00
smatz
2611fbeb18
(svn r14458) -Fix [FS#2341](r14368): crash when there was a tram dead end after a station/tunnel/bridge (frosch123 and Rubidium)
2008-10-10 22:50:31 +00:00
translators
9075eafaae
(svn r14457) -Update: WebTranslator2 update to 2008-10-10 22:29:03
...
french - 28 changed by glx (28)
italian - 6 fixed, 28 changed by lorenzodv (34)
korean - 43 changed by dlunch (43)
latvian - 75 fixed, 191 changed by v3rb0 (266)
persian - 34 fixed by ali sattari (34)
slovak - 14 fixed by lengyel (14)
swedish - 26 changed by Andreas (26)
2008-10-10 22:29:13 +00:00
frosch
70e1e83eb2
(svn r14456) -Fix: Obiwan in catchment-area and station-spread of docks.
2008-10-10 20:09:29 +00:00
rubidium
a34bd150fe
(svn r14450) -Fix [FS#2337]: time table restoring did check too restrictively causing order backups not to be properly restored.
2008-10-08 11:29:17 +00:00
rubidium
1d2fbbc8a7
(svn r14449) -Fix [FS#2338]: service at nearest depot acted like go to nearest depot.
2008-10-08 11:03:43 +00:00
smatz
1906aa2bbb
(svn r14448) -Codechange [FS#2328]: rename a few variables (based on a patch by planetmaker)
2008-10-07 20:57:41 +00:00
michi_cc
b3726f4c7c
(svn r14447) -Change [FS#2333]: Rename YAPP "advanced signals" to "path signals" and "normal signals" to "block signals".
2008-10-07 20:13:22 +00:00
rubidium
719891c23e
(svn r14446) -Fix [FS#2330]: when a road stop gets moved make sure to update the destination of RVs going to that road stop.
2008-10-07 18:46:12 +00:00
translators
0e518c2d92
(svn r14445) -Update: WebTranslator2 update to 2008-10-07 17:43:40
...
latvian - 2 fixed, 15 changed by v3rb0 (17)
spanish - 6 fixed by eusebio (6)
ukrainian - 6 fixed by mad (6)
2008-10-07 17:43:47 +00:00
translators
249a9c0912
(svn r14444) -Add: stubs for two new languages: Persian (or Farsi) and Ido.
2008-10-07 14:22:04 +00:00
frosch
1358756071
(svn r14442) -Fix (r14406): Typo causing problems in rare cases.
2008-10-05 18:42:59 +00:00
translators
e17db9655c
(svn r14441) -Update: WebTranslator2 update to 2008-10-05 17:45:23
...
catalan - 6 fixed by arnaullv (6)
german - 1 changed by sulai (1)
hungarian - 1 fixed, 1 changed by alyr (2)
norwegian_bokmal - 6 fixed by christian (6)
simplified_chinese - 1 fixed by ww9980 (1)
traditional_chinese - 2 changed by josesun (2)
2008-10-05 17:45:33 +00:00
smatz
b4a307d0bb
(svn r14439) -Fix (r12044)(r14139): centering on a plane at the SE border could cause crash
2008-10-04 10:25:12 +00:00
translators
5f9e2e60fb
(svn r14438) -Update: WebTranslator2 update to 2008-10-03 17:45:52
...
brazilian_portuguese - 6 fixed by tucalipe (6)
dutch - 6 fixed by habell (6)
french - 6 fixed by glx (6)
galician - 6 fixed by Condex (6)
german - 6 fixed, 19 changed by sulai (25)
hungarian - 48 fixed by alyr (48)
korean - 6 fixed by dlunch (6)
simplified_chinese - 84 fixed by ww9980 (84)
slovenian - 6 fixed by Necrolyte (6)
swedish - 6 fixed by ChrillDeVille (6)
traditional_chinese - 9 fixed, 69 changed by josesun (78)
2008-10-03 17:46:13 +00:00
rubidium
da2b14e6b2
(svn r14436) -Fix [FS#1793]: (fast) trains would sometimes move one time too often/little when moving from diagonal<->non-diagonal tracks (iguannab)
2008-10-03 12:55:39 +00:00
rubidium
b727f93bbc
(svn r14434) -Fix (r14432): compile warning.
2008-10-02 22:48:52 +00:00
rubidium
bdd756b58c
(svn r14432) -Fix: tile description of tiles with only one signal that is not the normal signal showing "normal signal and <signal type on tile>".
2008-10-02 00:23:30 +00:00
rubidium
d19d6f21a0
(svn r14431) -Fix (r14414): alias parameter "evaluation" would remove the last byte of the parameters.
2008-10-02 00:08:45 +00:00
michi_cc
ba5575e0fc
(svn r14428) -Fix [FS#2306]: A 90-degree curve can be a safe waiting position if they are forbidden for trains.
2008-10-01 15:48:44 +00:00
rubidium
c9a82ac3e7
(svn r14423) -Codechange: also do r14221 for the strings.
2008-09-30 21:18:28 +00:00
rubidium
b650a86e58
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
2008-09-30 20:51:04 +00:00
rubidium
3b798599b6
(svn r14421) -Codechange: rename all player variables/types to company *or* client so it is immediatelly clear which one you are working with.
2008-09-30 20:39:50 +00:00
translators
cc1e761eda
(svn r14420) -Update: WebTranslator2 update to 2008-09-30 17:50:15
...
hungarian - 3 fixed, 1 changed by alyr (4)
simplified_chinese - 122 fixed, 2 changed by ww9980 (124)
swedish - 1 fixed by ChrillDeVille (1)
2008-09-30 17:50:21 +00:00
belugas
d130ff3889
(svn r14419) -Codechange: adding two digits for no obvious reason (nor comment), plus code style Infringement.
2008-09-30 16:50:25 +00:00
smatz
a858d0993f
(svn r14417) -Codechange: rewrite GetClosestWaterDistance(), now it is ~100 times faster than pre-r14416 in average case
2008-09-29 18:56:36 +00:00
smatz
e65771f25c
(svn r14416) -Fix (r10074)(r10517): substraction was done the other way in the 'nearest land/water' check (~25% performance penalty)
2008-09-29 18:34:05 +00:00
smatz
c631c26a9f
(svn r14415) -Fix (r10074): void tiles could be the nearest 'land' for water industries
2008-09-29 18:23:56 +00:00
rubidium
e7829c1a57
(svn r14414) -Fix: replace instances of strncpy with strecpy as strncpy doesn't guarantee the resulting string is '\0'-terminated.
2008-09-29 16:27:02 +00:00
frosch
c20c3be91d
(svn r14412) -Documentation: Comment some functions related to the advanced settings. Patch by Alberth, but with less excessive use of 'at'.
2008-09-28 15:42:15 +00:00
frosch
1032dbe142
(svn r14411) -Fix (r14406): IsFrontEngine() is only valid for trains.
2008-09-28 15:07:03 +00:00
rubidium
e635df8d53
(svn r14410) -Codechange: one can't inject a negative number of parameters, so enforce this by using a uint.
2008-09-28 13:50:11 +00:00
frosch
a370f32c15
(svn r14409) -Codechange: Simplify a loop and correct a comment.
2008-09-28 12:38:56 +00:00
glx
f2d7c48b31
(svn r14408) -Fix (r9205): generation seed set using -G was always overwritten by -g
2008-09-27 22:19:34 +00:00
frosch
76c13beef0
(svn r14407) -Cleanup (r14406): Remove a redundant test. (thanks SmatZ)
2008-09-27 17:08:03 +00:00
frosch
67db5087cd
(svn r14406) -Fix [FS#Eddi]: Autoreplace did not work for vehicles in free wagon chains.
2008-09-27 14:58:46 +00:00
frosch
05d8a0ebad
(svn r14405) -Fix [FS#2289]: Correct handling of selling free wagons while the following vehicle is an engine (i.e. a new train is created).
2008-09-26 19:25:49 +00:00
rubidium
257f7a229b
(svn r14404) -Change [FS#2176]: don't make the town flatten land unconditionally when build on slopes is turned on. Based on a patch by Eddi.
2008-09-26 19:11:15 +00:00
frosch
436011dda3
(svn r14403) -Fix (r14384): The condition was too restrictive.
2008-09-26 19:01:57 +00:00
translators
804185d392
(svn r14402) -Update: WebTranslator2 update to 2008-09-26 17:45:50
...
slovenian - 3 fixed by Necrolyte (3)
traditional_chinese - 1 fixed, 8 changed by josesun (9)
2008-09-26 17:47:39 +00:00
peter1138
37931fb2c6
(svn r14401) -Fix (r11724): Don't check articulated parts or rear multihead parts for callback 1D when moving a chain of wagons.
2008-09-26 06:52:06 +00:00
smatz
e4242c8735
(svn r14398) -Cleanup (r14395): unused function sneaked in
2008-09-25 09:50:31 +00:00
rubidium
86f1a98ac8
(svn r14397) -Fix: possible buffer overrun, wrong parameter type passed to printf and && where || is meant. Found by MSVC's code analysis (Darkvater)
2008-09-24 23:25:24 +00:00
smatz
b907ffec97
(svn r14396) -Fix: ctrl+right click at 'Go to nearest depot' order scrolled to depot with DepotID == 0
2008-09-24 16:51:36 +00:00
smatz
6987e6015a
(svn r14395) -Fix [FS#2285]: crashes and GUI desyncs when order is deleted/modified while the timetable window is open
...
-Fix: close any dropdown and child windows in the Order and Timetable windows when selected order is deselected, deleted, ...
2008-09-24 16:40:06 +00:00
translators
7a527807d9
(svn r14394) -Update: WebTranslator2 update to 2008-09-24 14:01:38
...
danish - 8 changed by ThomasA (8)
german - 5 changed by sulai (5)
hungarian - 17 fixed, 4 changed by alyr (21)
korean - 45 changed by dlunch (45)
norwegian_bokmal - 9 fixed by christian (9)
spanish - 1 changed by eusebio (1)
traditional_chinese - 91 fixed, 1044 changed by josesun (1135)
2008-09-24 14:01:49 +00:00
rubidium
a143100f46
(svn r14393) -Fix [FS#2318]: deleting the same window (pointer) twice.
2008-09-23 20:12:13 +00:00
rubidium
57d592828b
(svn r14392) -Fix [FS#1404]: some widgets saw a single click as multiple clicks.
2008-09-23 19:25:00 +00:00
rubidium
6a931d67cd
(svn r14390) -Codechange: replace magic constants with symbolic constants.
2008-09-23 15:24:15 +00:00
translators
ff76ef6a0a
(svn r14386) -Update: WebTranslator2 update to 2008-09-22 19:58:30
...
brazilian_portuguese - 3 fixed by tucalipe (3)
catalan - 3 fixed by arnaullv (3)
english_US - 2 fixed by WhiteRabbit (2)
estonian - 1 fixed by kristjans (1)
french - 1 fixed by glx (1)
galician - 1 changed by Condex (1)
hungarian - 3 changed by alyr (3)
korean - 18 changed by dlunch (18)
norwegian_bokmal - 194 fixed by christian (194)
spanish - 2 fixed by eusebio (2)
2008-09-22 19:58:46 +00:00
frosch
5abea62e3e
(svn r14384) -Fix: Moving the first vehicle of a train elsewhere might require a new unitnumber for the remaining chain.
2008-09-22 19:28:53 +00:00
smatz
abbc9cd9cb
(svn r14383) -Fix [FS#2316](r14343): handle invalid 'v->u.air.targetairport' in the NewGRF code, too
2008-09-22 14:34:38 +00:00
rubidium
7ef5406946
(svn r14371) -Fix [FS#2313]: loading indicator didn't stay with the front engine when turning a train in a station.
2008-09-21 18:28:35 +00:00
frosch
2bf182fb36
(svn r14369) -Fix: Enforce non-front engines to be stopped.
...
This could be caused by old savegames resp. their conversion, and causes
trouble for e.g. autoreplace.
2008-09-21 14:03:47 +00:00
rubidium
cccd1a8739
(svn r14368) -Fix [FS#1852]: trams jumping when reversing on a single trambit (like caused during road construction reworks) or when (manually) reversing in a corner.
2008-09-21 11:26:50 +00:00
frosch
3dceffd283
(svn r14366) -Fix (r14362): Match multiheaded parts starting from the first vehicle in a chain.
2008-09-20 18:31:31 +00:00
glx
c125cfa6cc
(svn r14365) -Backport (r14364 from NoAI): add the ability do CmdBuildSingleSignal to directly place the correct signal, instead requiring multiple inputs before doing so
2008-09-20 17:43:06 +00:00
glx
fe5cc9c839
(svn r14363) -Fix [FS#2206]: some keypress combinations could be handled twice
2008-09-20 16:07:56 +00:00
frosch
07418cbf7f
(svn r14362) -Fix (r3403): Also connect multiheaded parts in free wagon chains.
2008-09-20 10:53:08 +00:00
translators
c3c58c95b9
(svn r14361) -Update: WebTranslator2 update to 2008-09-19 20:23:28
...
italian - 8 fixed by lorenzodv (8)
korean - 3 fixed by leejaeuk5 (3)
simplified_chinese - 119 fixed by ww9980 (119)
spanish - 1 fixed by eusebio (1)
swedish - 13 fixed by ChrillDeVille (13)
ukrainian - 3 fixed by mad (3)
2008-09-19 20:23:41 +00:00
smatz
89edec7bfb
(svn r14360) -Cleanup (r12652): remove unused handler for the 'Tranfser' button
2008-09-19 16:34:24 +00:00
rubidium
ee2a851aab
(svn r14359) -Fix [FS#2311]: the ownership of roadtiles was not properly set for very old savegames (including TTD's) making it impossible to remove some pieces of road.
2008-09-18 15:32:20 +00:00
smatz
deaa0725e9
(svn r14356) -Fix [FS#2307](r14258): converting of railtype was broken for tunnels and bridges
2008-09-17 17:23:57 +00:00
belugas
217db3cb61
(svn r14352) -Feature: Allow sorting vehicles by remaining life time.
...
Patch by yorick
2008-09-17 02:30:24 +00:00
smatz
9fed67a05a
(svn r14351) -Codechange: call CFollowTrackT::GetSingleTramBit() only if we know it is a tram, so compiler doesn't generate code for trains and ships
2008-09-17 00:32:35 +00:00
smatz
97150dcffd
(svn r14350) -Fix (r13927): do not draw PBS reservation for NW and NE depots, it is drawn through depot walls
2008-09-16 22:56:43 +00:00
smatz
7ae255a553
(svn r14348) -Fix (r1667): signs were not updated on company bankrupcy/sell, they have colour of invalid player
2008-09-16 20:57:49 +00:00
smatz
c998342206
(svn r14346) -Codechange [FS#2184]: reduce code duplication when jumping to next/previous sign in signs_gui.cpp (Roujin)
2008-09-16 19:18:22 +00:00
smatz
5a1203963f
(svn r14345) -Fix: delete the RenameSignWindow when 'its' sign is deleted
...
Also, it makes sure the RenameSignWindow isn't open when there are no signs (and crashes associted with that)
2008-09-16 19:05:38 +00:00
smatz
4a97033e7e
(svn r14344) -Fix: when a new airport is built in the same tick as the old station is deleted, aircraft may go crazy (and crash the game)
2008-09-16 16:07:18 +00:00
smatz
192d348f78
(svn r14343) -Fix [FS#2300]: invalid v->u.air.targetairport could cause crashes at several places when the station pool got smaller
2008-09-16 15:15:41 +00:00
smatz
47d19f7914
(svn r14340) -Fix (r11822): signs from old savegames were lost (causing little memory leaks)
2008-09-16 11:19:07 +00:00
smatz
dce7bec2d3
(svn r14339) -Fix (r13731): crash when loading the intro game failed
2008-09-15 23:50:12 +00:00
smatz
5f4ff33ce3
(svn r14337) -Codechange: use CmdRename* and CMD_RENAME_* for vehicle, president and company renaming commands, too
2008-09-15 22:58:41 +00:00
smatz
a20dae0df1
(svn r14336) -Fix (r14334): when there was a station with custom name in an old savegame, it's default name was empty
2008-09-15 22:45:18 +00:00
frosch
bffc5717bc
(svn r14335) -Codechange: Remove some magic numbers.
2008-09-15 19:55:00 +00:00
smatz
1266b1a73f
(svn r14334) -Feature: ability to reset name to default/automatic value (for vehicles, engines, towns, groups, stations, waypoints, managers and companies)
2008-09-15 19:02:50 +00:00
belugas
0682dc3a0d
(svn r14332) -Fix[FS#1885]: Balance the monthly random industry changes, by introducing a daily random industry change.
...
This will allow to perform more changes per month on big maps and less on smaller maps, while not overtaxing the IndustryMonthlyLoop process.
Thanks to frosch, for nice code ideas and rewrites
2008-09-15 17:18:22 +00:00
smatz
606f4defdc
(svn r14331) -Codechange: use an enum as additional parameter for ShowQueryString()
2008-09-15 16:29:40 +00:00
rubidium
ff89c704fa
(svn r14330) -Fix: compile warnings in some unfinished lang files.
2008-09-15 13:32:59 +00:00
rubidium
1ce4e5721b
(svn r14329) -Fix (r14306): selections in the group GUI weren't shown anymore.
2008-09-15 10:02:39 +00:00
smatz
6be25eabb3
(svn r14328) -Fix (r11822): when a company was renamed and then manager was renamed before building anything, company name changed
2008-09-15 08:37:40 +00:00
rubidium
c496fe4d1a
(svn r14327) -Fix [FS#2251]: if you rename a town before building something and build something near that town your company would be called "<old townname> Transport".
2008-09-14 20:11:34 +00:00
rubidium
497ded7e40
(svn r14326) -Fix: some wrong comments (Yexo)
2008-09-14 19:36:31 +00:00
translators
cc16809f71
(svn r14325) -Update: WebTranslator2 update to 2008-09-14 17:42:18
...
czech - 2 fixed, 31 changed by Hadez (33)
english_US - 211 fixed by WhiteRabbit (211)
galician - 193 fixed, 10 changed by Condex (203)
german - 2 fixed, 38 changed by sulai (40)
swedish - 60 fixed by ChrillDeVille (60)
2008-09-14 17:42:25 +00:00
rubidium
7c8a50d7d8
(svn r14324) -Fix [FS#2241]: free any blocks that a helicopter may have on an oilrig when the helicopter gets forcefully removed (bankruptcy). For other airports this isn't needed as they can't be used by multiple companies.
2008-09-14 16:49:21 +00:00
smatz
5df524ecc0
(svn r14323) -Fix (r14064): forgot a return...
2008-09-14 16:01:46 +00:00
smatz
c5960b4be1
(svn r14322) -Fix (r10368): possible assert when renaming removed waypoint
2008-09-14 15:48:49 +00:00
rubidium
6ce4fe40f7
(svn r14321) -Add: support for newgrfs printing bytes/words/dwords as hexadecimals.
2008-09-14 14:31:37 +00:00
rubidium
811193e468
(svn r14320) -Fix [FS#2299]: glitch when chatbox window is full and the window is scrolled (yorP)
2008-09-14 10:39:22 +00:00
smatz
9174c19291
(svn r14319) -Fix (r10760): use operator delete when deleting an order, so order pool fills up a bit slower
2008-09-14 10:32:32 +00:00
rubidium
cbbb2eb85c
(svn r14318) -Fix [FS#2296]: OSK of the chat box did not get updated. This as the chatbox got a higher priority than the OSK instead of the usual other way around.
2008-09-14 10:30:31 +00:00
peter1138
45ce441a55
(svn r14317) -Fix (r13662) [FS#2298]: Order distance processing for conditional orders on ships treated v->orders as an array, and didn't use the correct next order.
2008-09-14 08:47:18 +00:00
smatz
54d1b49981
(svn r14316) -Fix: do not allow building road over level crossings and drive-through road stops in the wrong direction even when the roadtype is present
2008-09-13 17:37:18 +00:00
smatz
c4d49dfc21
(svn r14315) -Fix: allow adding roadtypes only to drive-through road stops
2008-09-13 17:26:44 +00:00
smatz
d5ca29a5ab
(svn r14314) -Fix: pay for two road bits when adding/removing roadtype at drive through road stop/level crossing
2008-09-13 17:06:44 +00:00
frosch
856157b6da
(svn r14313) -Codechange: Move functions dealing with the EngineRenew pool to their own file.
2008-09-13 15:49:29 +00:00
rubidium
0251a9c529
(svn r14310) -Fix: don't show palette information in the newgrf lists of the network lobby.
2008-09-13 12:40:31 +00:00
rubidium
ab4d0e2dac
(svn r14309) -Fix [FS#2244]: aircraft frozen above oil rig when the next order is invalid.
2008-09-13 11:00:30 +00:00
rubidium
defecbc6ef
(svn r14308) -Fix [FS#2268]: pay extra when tram/road bits need to be build for a roadstop.
2008-09-13 10:41:00 +00:00
smatz
66be028ad4
(svn r14307) -Fix: when deleting a station, remove news items regarding it
2008-09-13 10:19:51 +00:00
rubidium
fc62d736f7
(svn r14306) -Codechange: unify the code to draw the vehicle list.
...
-Fix [FS#2292]: inconsistency between drawn vehicle lists in the vehicle list and group windows.
2008-09-13 10:04:36 +00:00
frosch
1647597943
(svn r14305) -Fix [FS#2294] (r5033): [YAPF] Only reserve road slots for multistop when they are really reachable.
2008-09-12 23:23:41 +00:00
smatz
3236b3d10e
(svn r14304) -Fix (r14104): waypoint train list wasn't closed with the waypoint window (crashes since r14296)
2008-09-12 22:52:48 +00:00
rubidium
3b4d15d35b
(svn r14303) -Codechange: make the vehicle list part of the group window look exactly like the vehicle list instead of some buttons being one pixel wider/smaller.
2008-09-12 21:59:34 +00:00
rubidium
3384638e36
(svn r14302) -Codechange: simplify and make the vehicle list and group windows behave the same w.r.t. getting wider (by default) for trains than the other vehicles.
2008-09-12 21:58:36 +00:00
rubidium
560e5560f1
(svn r14301) -Codechange: give the vehicle list and group list the same relative size and the same absolute height for the vehicle list items.
2008-09-12 21:20:12 +00:00
translators
95bdb5a6a3
(svn r14300) -Update: WebTranslator2 update to 2008-09-12 17:41:59
...
brazilian_portuguese - 13 fixed by tucalipe (13)
catalan - 12 fixed by arnaullv (12)
danish - 9 fixed, 7 changed by ThomasA (16)
dutch - 1 changed by habell (1)
estonian - 5 fixed by kristjans (5)
galician - 98 fixed, 6 changed by Condex (104)
german - 7 fixed, 83 changed by sulai (69), dih (21)
korean - 12 fixed by leejaeuk5 (12)
romanian - 20 fixed by kneekoo (20)
slovenian - 5 fixed by Necrolyte (5)
2008-09-12 17:42:11 +00:00
rubidium
6d52fce720
(svn r14299) -Fix: disable 'toggle palette' when no NewGRF has been selected.
2008-09-12 17:38:57 +00:00
rubidium
d6bc633870
(svn r14298) -Fix [FS#2214]: "{CARGO} from unknown destination".
2008-09-12 17:16:04 +00:00
rubidium
8d449825f9
(svn r14297) -Fix: one could be trying to get the station name of a station that is outside of the pool.
2008-09-12 17:14:07 +00:00
rubidium
8f42c38039
(svn r14296) -Codechange: there is no case where an invalid waypoint index should be passed to be drawn as a string.
2008-09-12 17:11:28 +00:00
belugas
a2b00e24b6
(svn r14295) -Fix(r14294): If the house is not built yet, still give me proper coordinates, pretty please!
...
Plus, two(2) rogue tabs found their way in.
2008-09-12 17:05:23 +00:00
belugas
13eab4177d
(svn r14294) -Feature[newGRF]: Add Variational Action 2 Variable 0x47 for houses, Coordinates of the house tile
2008-09-12 17:02:22 +00:00
smatz
37edc141e2
(svn r14293) -Change: do not show PBS track reservation in the intro game
2008-09-11 21:53:59 +00:00
frosch
80b0671cc9
(svn r14292) -Cleanup (r11128): Move an 'if' out of a loop as it does not need to be iterated. (spotted by smatz)
2008-09-11 19:44:30 +00:00
frosch
33c2b798fb
(svn r14291) -Fix [FS#2288] (r12853): For tunnels DrawCatenary() draws only pillars; DrawCatenaryOnTunnel() draws only wires.
2008-09-11 19:12:31 +00:00
smatz
ef03a41631
(svn r14290) -Fix (r13932): level crossings could be barred when they shouldn't be after savegame conversion
2008-09-11 17:41:43 +00:00
smatz
9431bf1c29
(svn r14289) -Fix [FS#2286](r3720)(r1): sound effects an music volume should be in range 0-127, default value shouldn't be higher
...
(based on a patch by kakaopor)
2008-09-11 13:58:59 +00:00
michi_cc
1b7de43e80
(svn r14286) -Fix [FS#2265]: If a change of conventional/electric rail coincided with the start of a station platform, stale reservations could be left behind.
2008-09-09 19:21:22 +00:00
michi_cc
fa3f2ae035
(svn r14285) -Fix [FS#2263]: A train inside a wormhole could free the reservation of another train inside the wormhole.
2008-09-09 19:02:47 +00:00
michi_cc
a7a7e2d3cc
(svn r14284) -Fix (r13958): Trains would not look ahead and extend their reservation on a waypoint tile in all cases.
2008-09-09 18:47:53 +00:00
smatz
0757669c49
(svn r14283) -Fix [FS#2281](r14175): beep only after clicking on the main toolbar, not after finishing the selection
2008-09-09 17:42:31 +00:00
translators
e5081f587a
(svn r14282) -Update: WebTranslator2 update to 2008-09-09 17:38:39
...
czech - 1 fixed, 7 changed by Hadez (7), joeprusa (1)
danish - 61 fixed, 6 changed by ThomasA (28), MiR (39)
dutch - 6 fixed by habell (5), webfreakz (1)
estonian - 1 fixed by kristjans (1)
finnish - 66 fixed by habazi (66)
french - 2 fixed, 2 changed by glx (4)
galician - 14 fixed by Condex (14)
german - 63 fixed, 16 changed by sulai (41), dih (38)
italian - 1 fixed, 1 changed by lorenzodv (2)
piglatin - 27 fixed by adammw (27)
romanian - 57 fixed by kneekoo (57)
russian - 13 fixed by Smoky555 (13)
slovenian - 6 fixed by Necrolyte (6)
spanish - 9 fixed by eusebio (9)
ukrainian - 6 fixed by mad (6)
2008-09-09 17:40:23 +00:00
smatz
f503c7c99e
(svn r14280) -Codechange: use IsRailWaypointTile() instead of IsTileType() and IsRailWaypoint() checks at several places
2008-09-09 12:26:25 +00:00
frosch
95ba19ee69
(svn r14276) -Fix: Rename one of the advanced settings, as 'TTDPatch compatible nonstop handling' wasn't a correct description anymore.
2008-09-08 19:20:39 +00:00
frosch
e3f2da01d3
(svn r14275) -Change: Rename 'Configure patches' to 'Advanced settings'.
2008-09-08 17:23:50 +00:00
smatz
db7c2b97f8
(svn r14274) -Fix (r10237): nonexistant order could be selected in the timetable window (causing SIGFPE)
2008-09-08 11:06:43 +00:00
smatz
0a4090b8a7
(svn r14270) -Fix: make small UFO aware of articulated RVs
2008-09-07 22:23:25 +00:00
smatz
2c0a95ed66
(svn r14265) -Fix (r10750): desyncs after deleting a waypoint because of explicit destructor call instead of using operator delete
2008-09-07 18:21:57 +00:00
smatz
06be820730
(svn r14263) -Codechange: give a better error message when removing a sign fails
2008-09-07 16:22:55 +00:00
rubidium
3b7ffcf759
(svn r14260) -Fix [FS#2277]: merge keycode for "normal" 0-9 keys and keypad 0-9 keys so people don't get confused that the keypad doesn't work as expected.
2008-09-07 11:55:28 +00:00
rubidium
9474db5cb6
(svn r14258) -Codechange: rework the way to query the vehicle hash to make sure it always results in the same irregardless of the order of the hash-linked-list.
...
-Fix: desync in PBS reservation following, vehicle flooding and road vehicle overtake/follow code.
2008-09-07 11:23:10 +00:00
rubidium
f4ee4fd5ae
(svn r14257) -Fix (r14153): incorrect update of ini-file group tail pointer causing memory corruption.
2008-09-07 08:51:26 +00:00
belugas
db58c25af2
(svn r14254) -Codechange: Code style and breathing room
2008-09-06 02:53:18 +00:00
translators
a7a2f54716
(svn r14250) -Update: WebTranslator2 update to 2008-09-05 15:13:08
...
afrikaans - 9 fixed by TrueTenacity (9)
croatian - 19 fixed by tperic (19)
czech - 5 fixed, 50 changed by Hadez (55)
dutch - 5 fixed by habell (5)
estonian - 9 fixed by kristjans (9)
french - 5 fixed by glx (5)
german - 85 fixed by dih (45), MaSch (40)
italian - 5 fixed, 4 changed by lorenzodv (9)
polish - 25 fixed, 4 changed by heimat (29)
spanish - 7 fixed by eusebio (7)
ukrainian - 5 fixed by mad (5)
2008-09-05 15:13:30 +00:00
rubidium
72b72bb368
(svn r14245) -Fix: NewGRF configs loaded from the config file would always default to the DOS palette instead of the "default" palette.
2008-09-04 19:43:20 +00:00
rubidium
236c613365
(svn r14243) -Fix [FS#2269]: clicking on the smallmap didn't break the "follow vehicle in main viewport".
2008-09-04 19:09:31 +00:00
frosch
e6688ab190
(svn r14239) -Fix [FS#2267]: The engine-purchase-list-sorter doubled running-cost and halfed capacity of double-headed engines.
2008-09-03 18:05:02 +00:00
glx
7b78084150
(svn r14235) -Fix (r14234): compilation with MSVC was broken
2008-09-03 13:25:56 +00:00
smatz
b6962222ee
(svn r14234) -Fix: feeder share was computed wrong when splitting cargo packet
2008-09-03 10:30:07 +00:00
rubidium
a4cd12274c
(svn r14233) -Feature/Fix [FS#2172]: save the palette of the loaded NewGRFs in the savegame, so joining with a server using Windows palette will make a client with the DOS palette do palette conversion and (thus) not cause a desync due to the different palettes disabling different NewGRFs.
2008-09-03 07:51:07 +00:00
smatz
c620d5e5f0
(svn r14232) -Codechange: use builtin for byte swapping for gcc >= 4.3
2008-09-02 21:11:48 +00:00
rubidium
a482f0053d
(svn r14231) -Fix: Windows binaries not able to read non-windows newlines ini files. For more detail read the 'attached' diff.
2008-09-02 20:24:55 +00:00
frosch
3ce1a5672e
(svn r14230) -Codechange: Simplify MapDOSColour() using the new stuff.
2008-09-02 20:01:18 +00:00
rubidium
fc216aeeb8
(svn r14229) -Feature: allow overriding the palette of the base GRFs. This way you can play with NewGRFs made for the Windows palette with the DOS palettes base GRFs (and vice versa). Note that for this to work correctly ALL NewGRFs must use the same palette; mix and match is not yet supported.
2008-09-02 18:45:15 +00:00
smatz
c0cdfea97d
(svn r14228) -Fix (r14209): double click on the 'last joined' server didn't work
2008-09-02 17:24:46 +00:00
rubidium
c8e8911ef6
(svn r14223) -Codechange: make GetSprite aware of the 4 different types of sprites: fonts, recolour, mapgen and normal sprites.
2008-09-02 15:20:38 +00:00
smatz
cbe397388f
(svn r14221) -Fix: signs (town name, station name, ...) could be too long for 8bit width in pixels
2008-09-02 14:46:28 +00:00
rubidium
fd97a89c57
(svn r14219) -Fix (rthebeginning): 10 days != 6*2.5 days, effectively causing the payment graph to show the wrong data.
2008-09-02 08:25:15 +00:00
peter1138
941f8b5f16
(svn r14215) -Cleanup (r13866): Strange line wrapping...
2008-09-01 08:57:33 +00:00
rubidium
886c8ec79f
(svn r14214) -Codechange: move another TTD graphics bug into the GRF; height problem of sprite #142 .
2008-08-31 23:12:57 +00:00
smatz
b51bb8c221
(svn r14210) -Codechange: remove a useless check when creating new waypoint
2008-08-31 21:30:36 +00:00
smatz
7fa98e33ce
(svn r14209) -Feature(tte): doubleclick to join selected server/company
2008-08-31 20:54:01 +00:00
peter1138
744b3527e5
(svn r14208) -Fix (r14197): Crash if no .obg files are found.
2008-08-31 20:08:24 +00:00
rubidium
dc2ace2494
(svn r14207) -Fix [FS#2262] (r14191): warning about non-virtual destructor in class with virtual functions.
2008-08-31 19:56:52 +00:00
translators
48479cd86f
(svn r14205) -Update: WebTranslator2 update to 2008-08-31 19:47:56
...
bulgarian - 12 fixed by thetitan (12)
catalan - 49 fixed by arnaullv (49)
czech - 4 fixed, 15 changed by Hadez (19)
dutch - 2 fixed, 5 changed by habell (7)
french - 2 fixed, 1 changed by belugas (1), glx (2)
galician - 75 fixed, 54 changed by Condex (129)
german - 10 fixed, 1 changed by dih (11)
italian - 5 fixed, 5 changed by lorenzodv (10)
korean - 14 fixed by leejaeuk5 (14)
slovenian - 6 fixed by Necrolyte (6)
turkish - 18 fixed by jnmbk (18)
ukrainian - 2 fixed by mad (2)
2008-08-31 17:48:17 +00:00
smatz
f2dbe6685d
(svn r14204) -Fix (r7475): when determining length of a string with limited size, first check if we are not out of bounds already
2008-08-31 17:34:03 +00:00
peter1138
7bc5b136b1
(svn r14203) -Codechange: [NewGRF] Disable a GRF if it contains an unknown property, or tries to assign an invalid ID.
2008-08-31 16:41:27 +00:00
peter1138
b4b1f26a9f
(svn r14202) -Codechange: [NewGRF] Give more meaningful output if a house/industry/industrytile is undefined in action 3, and continue processing remaining IDs.
2008-08-31 15:46:14 +00:00
peter1138
7e88b7bb3e
(svn r14201) -Codechange: [NewGRF] Don't continue processing an Action 0 if we didn't read the data for a property -- the data will be wrong for subsequent reads.
...
-Codechange: [NewGRF] *Do* continue processing if the value of a property is invalid, however.
2008-08-31 15:26:46 +00:00
rubidium
6b86de13d6
(svn r14200) -Fix (r14199): some OSes failed to compile. Furthermore I hate wrong comments!
2008-08-31 11:51:09 +00:00
rubidium
ea1f180a55
(svn r14199) -Codechange: split fileio.h into fileio_type.h and fileio_func.h so not everything that includes saveload.h needs to include everything else too.
2008-08-31 10:50:05 +00:00
peter1138
46e23b8f99
(svn r14198) -Codechange: [NewGRF] Simplify handling of common vehicle properties.
2008-08-31 09:52:47 +00:00
rubidium
c3a9653c89
(svn r14197) -Codechange: rework (original) base graphics determination methods. This yields in the following:
...
-Feature: make configuring the to-be-used base graphics via openttd.cfg and the command line possible.
-Feature: allow both the German as well as non-German toyland graphics as "correct" and official graphics.
-Feature: allow people to create their own base graphics easily and without requiring code changes.
2008-08-31 08:46:43 +00:00
rubidium
1afa473d0f
(svn r14196) -Codechange: make the searching for files with a specific extension extendable.
2008-08-31 08:38:30 +00:00
rubidium
0b88f0cf54
(svn r14193) -Fix (r14191): don't put an unsigned 0x80 in a signed int8 as that's not what you want.
2008-08-30 12:14:56 +00:00
rubidium
d40145008e
(svn r14192) -Fix [FS#2236]: properly update the current timetable's travel/wait times instead of only doing it for one vehicle in the shared order chain and only when some bit has not been set (PhilSophus)
2008-08-30 10:26:16 +00:00
rubidium
d3d34d2aac
(svn r14191) -Codechange: unify the code to skip sprite payload (i.e. not the header).
...
-Fix: sprite payload skipping wouldn't skip enough bytes in a very small subset of compressed sprites.
2008-08-30 09:46:52 +00:00
rubidium
e06c21426e
(svn r14190) -Codechange: use alloc instead of malloc+free when the allocated memory shouldn't be used after the function ended.
2008-08-30 09:43:07 +00:00
peter1138
bfcd6e9772
(svn r14189) -Fix (r14188): Accidental line removal
2008-08-30 09:01:05 +00:00
peter1138
2b67c01a24
(svn r14188) -Codechange: [NewGRF] Cargo type of 0xFF is specified to be 'use first refittable cargo', so don't issue a warning for it.
2008-08-30 08:59:55 +00:00
rubidium
468655c916
(svn r14187) -Fix (r14104): silence warning when compiling without networking enabled.
2008-08-29 21:11:28 +00:00
rubidium
ead8de78ea
(svn r14186) -Fix [FS#2255]: small typo (Jafinto)
2008-08-29 21:07:26 +00:00
rubidium
7c002c14cc
(svn r14185) -Fix (r14153): removing NewGRFs from the config file was impossible.
2008-08-29 21:06:49 +00:00
peter1138
4c56b827e5
(svn r14184) -Codechange: [NewGRF] Since our NewGRF handling is better than it used to be, disable a NewGRF if unexpected sprites are reached.
2008-08-29 20:03:51 +00:00
peter1138
80c9ecedcd
(svn r14182) -Fix: After applying NewGRF settings, all rail and road types were available as the engine availability check was performed too early.
2008-08-28 19:53:25 +00:00
peter1138
38ee1c8d49
(svn r14181) -Fix (r14175): Rail types are not road types
2008-08-28 19:22:03 +00:00
glx
e598fa4701
(svn r14180) -Fix (r8293): close all related vehicle lists when closing a station window (and not only the train list).
2008-08-27 21:30:20 +00:00
frosch
ef60a4cf35
(svn r14179) -Fix (r1): RemoveOrderFromAllVehicles() did not mark enough windows dirty.
2008-08-27 19:54:41 +00:00
frosch
7ce75961b4
(svn r14178) -Fix [FS#2256]: Do not evaluate GetDestination() for go-to-nearest-depot-orders.
2008-08-27 19:21:01 +00:00
smatz
361292bd23
(svn r14177) -Fix: define INADDR_NONE only when it hasn't been defined yet
2008-08-25 22:10:47 +00:00
smatz
e840aabf8d
(svn r14176) -Fix: better 'safe' than ... 'save'
2008-08-25 20:54:34 +00:00
peter1138
759fb5937d
(svn r14175) -Codechange: Rewrite the main toolbars to use the standard dropdown menu system, allowing flexible menus instead of fixed string lists, and removing code duplication.
2008-08-25 20:42:54 +00:00
smatz
c9bef19043
(svn r14174) -Fix: since now, we are 'losing' things, not 'loosing'
2008-08-25 20:10:45 +00:00
peter1138
b60ff46806
(svn r14173) -Fix: Don't check for rail type and catenary on aqueducts.
2008-08-25 18:14:19 +00:00
belugas
23a9938317
(svn r14172) -Feature[newGRF]: Add support for property 0x13 for Bridges.
...
In other words, one can now specifies a 16 bits cost multiplier.
2008-08-25 17:16:27 +00:00
belugas
bc7a87613f
(svn r14171) -Codechange: Make the test for HQ a bit lighter.
...
The presence of a HQ is only dictated by the 7th bit been set.
The rest of the data is related to the size and the type.
2008-08-25 16:41:00 +00:00
peter1138
6a742cef5f
(svn r14170) -Codechange: Missing enum for road type iteration.
2008-08-25 16:20:26 +00:00
belugas
08898f69be
(svn r14169) -Codechange: rename location_of_house for location_of_HQ, which is more exact and less subject to interpretation
2008-08-25 16:10:34 +00:00
peter1138
cf52b683c0
(svn r14168) -Codechange: Make dropdown 'auto_width' a separate parameter, so that a minimum width can be specified.
2008-08-25 16:07:10 +00:00
rubidium
621a9b647a
(svn r14167) -Fix: items in some ini-groups got duplicated on save.
2008-08-25 15:15:41 +00:00
matthijs
262ddecfc5
(svn r14166) -Doc: Change "forbid 90 degree turn" patch option description to say "not with NTP" instead of "requires NPF" (which has been untrue since the introduction of YAPF). Thanks to FauxFaux for pointing this out.
2008-08-25 12:47:17 +00:00
peter1138
c76455be02
(svn r14165) -Codechange: When over-building rail with a different type, don't convert the rail if the engines of the new type are powered on the existing type.
2008-08-25 10:58:24 +00:00
rubidium
411c65e755
(svn r14164) -Codechange: simplify and unify the addition of ini items with value when not loading an ini file.
...
-Fix: wrong insertion management causing leaks.
2008-08-25 06:35:28 +00:00
peter1138
6e4d8a273e
(svn r14162) -Fix: Allow rail type conversion if the rail type cost multipliers are the same.
2008-08-24 23:29:58 +00:00
rubidium
b2d6254b44
(svn r14161) -Codechange: allow inis to be loaded from tars.
2008-08-24 23:12:10 +00:00
peter1138
b45ced35ee
(svn r14160) -Codechange: Move _railtype_cost_multipliers into the rail type information struct.
2008-08-24 23:10:23 +00:00
peter1138
2f80a277eb
(svn r14158) -Codechange: Initialization of rail type data from static source, so data can be changed.
2008-08-24 23:00:11 +00:00
peter1138
ff07598ce2
(svn r14157) -Codechange: Add and use string properties for rail types instead of relying on consecutive string IDs.
2008-08-24 21:31:24 +00:00
smatz
0d4e7f9537
(svn r14156) -Fix (r14153): missing/wrong comments
2008-08-24 17:29:57 +00:00
glx
4a4549405c
(svn r14155) -Fix (r14154): wrong comments
2008-08-24 17:18:05 +00:00
glx
2ddb86eea5
(svn r14154) -Fix (r14153): strndup is a GNU extension, so it doesn't exist on all platforms
2008-08-24 17:02:21 +00:00
rubidium
ae32d158cb
(svn r14153) -Codechange: split ini file reading/saving from settings.cpp.
2008-08-24 13:50:31 +00:00
rubidium
a4854aaddc
(svn r14152) -Fix (r14146): Apple decided to use a name I wanted to use... thus making compilation fail on OSX (planetmaker)
2008-08-24 09:48:21 +00:00
rubidium
8c73b5c42d
(svn r14151) -Codechange: make it possible to choose between the DOS and Windows graphics packs while retaining the possibility to override the palette.
2008-08-24 08:41:38 +00:00
belugas
14bc2b5d4f
(svn r14150) -Add: Add the count of trains using the current waypoint in the vehicle list window's caption
2008-08-24 01:39:56 +00:00
frosch
6aeeeb9012
(svn r14149) -Fix: When selling the front engine of a train consist with another engine at the second position, not all 'important' data was copied to the new head.
2008-08-23 23:31:27 +00:00
frosch
13d938ae3d
(svn r14148) -Fix (r14096) [FS#2239]: Orders were freed while they were still shared by other vehicles.
2008-08-23 23:15:04 +00:00
frosch
32e1fd55c5
(svn r14147) -Codechange: Allow passing 'const Vehicle *' to GetNextUnit() and GetPrevUnit().
2008-08-23 22:31:36 +00:00
rubidium
200f405706
(svn r14146) -Codechange: allow palette override in both ways and remove some unneeded '(x == 0) ? 0 : 1' constructs.
2008-08-23 20:16:54 +00:00
frosch
5de17da66e
(svn r14145) -Fix (r14135, r14141): When savegame conversion cannot determine a owner of a greyed waypoint, ensure that the owner is assigned when the waypoint is rebuild.
2008-08-23 19:14:27 +00:00
peter1138
2e28978264
(svn r14144) -Fix (r8826): Incorrect cargo weights
2008-08-23 18:05:52 +00:00
frosch
a813b6a854
(svn r14143) -Codechange: Recenter viewport of waypoint window when relocating the waypoint.
2008-08-23 16:34:05 +00:00
frosch
857df41a6d
(svn r14142) -Codechange: Disallow taking over greyed waypoints of other companies.
2008-08-23 16:26:01 +00:00
frosch
4e0faffc72
(svn r14141) -Fix (r14135): Savegame conversion could assign a recently removed waypoint (grey sign) to a wrong owner.
2008-08-23 16:16:37 +00:00
frosch
63f4726e06
(svn r14140) -Fix (r14135): Enum in saveload-table.
2008-08-23 16:13:31 +00:00
frosch
5216223f45
(svn r14139) -Fix (r12044): GetSlopeZ() gets a virtual coordinate, not a tile.
2008-08-23 16:09:06 +00:00
smatz
0816d2cf20
(svn r14138) -Fix (r12863): dark blue wasn't considered as similiar to blue
2008-08-23 12:29:41 +00:00
celestar
7e8c7dfcbf
(svn r14137) -Codechange: Remove a now unused member of CargoPacket
2008-08-23 09:31:53 +00:00
belugas
7dc212edeb
(svn r14135) -Codechange: Add owner to waypoints. Previously, it was guessed from rail underneath it.
2008-08-23 02:15:46 +00:00
frosch
f625ecbeba
(svn r14134) -Fix (r12667, r13579) [FS#2245]: Update 'current_order' when changing 'cur_order_index'.
2008-08-23 00:32:01 +00:00
rubidium
ca27155a52
(svn r14133) -Fix [FS#2249]: close the 'manage vehicles' dropdown once the number of vehicles in the list reaches 0.
2008-08-22 22:54:38 +00:00
frosch
12f38e56df
(svn r14132) -Fix (r14039): Only reserve a path on leaving a station if the current block really is a PBS block. (michi_cc)
2008-08-22 22:48:12 +00:00
frosch
9fe035f8e8
(svn r14131) -Fix (r13952) [FS#2250]: The reservation of adjacent stations was sometimes not freed correctly. (michi_cc)
2008-08-22 22:42:21 +00:00
frosch
f2623e7c09
(svn r14130) -Fix (r13961) [FS#2248]: Clear the stuck state of a train that is reversing with the first vehicle inside a depot. (michi_cc)
2008-08-22 22:28:26 +00:00
frosch
b03fcdf323
(svn r14129) -Fix (r13935) [FS#2247]: Signal state for PBS signals was not updated when cycling the signal side. Patch by michi_cc with a small addition from me.
2008-08-22 22:19:23 +00:00
belugas
bb3c205e05
(svn r14127) -Feature(ette): Give the the player's colour to the waypoint window been shown
2008-08-22 01:14:25 +00:00
frosch
0e2736399e
(svn r14126) -Codechange (r14125): Add some tabs.
2008-08-21 20:45:52 +00:00
frosch
447d0930f7
(svn r14125) -Fix [FS#2237]: Segfault when autoreplace failed very early.
...
Note: Proper indenting in next commit.
2008-08-21 20:42:45 +00:00
belugas
f520a702e0
(svn r14123) -Codechange: a few magical number to sprite name conversions
2008-08-21 19:12:24 +00:00
translators
90176a547a
(svn r14120) -Update: WebTranslator2 update to 2008-08-21 10:46:06
...
brazilian_portuguese - 33 fixed by tucalipe (33)
czech - 1 fixed, 11 changed by Hadez (12)
dutch - 4 fixed by habell (4)
estonian - 25 fixed, 111 changed by kristjans (135), vermon (1)
french - 3 fixed, 8 changed by glx (9), belugas (2)
galician - 78 fixed by Condex (78)
german - 13 fixed by dih (13)
korean - 20 fixed, 1 changed by leejaeuk5 (21)
simplified_chinese - 51 fixed, 1 changed by ww9980 (52)
slovenian - 54 fixed by Necrolyte (54)
ukrainian - 3 fixed by mad (3)
2008-08-21 08:46:25 +00:00
belugas
8385653118
(svn r14119) -Fix(r14104): Forgot to make the gui disappear when the waypoint is deleted. Smatz pointing
2008-08-21 02:19:31 +00:00
belugas
d3dd9c6566
(svn r14118) -Fix(r14104): typos creeping like bugs
2008-08-21 01:42:21 +00:00
frosch
ff749ab09d
(svn r14114) -Fix [FS#2242]: Sign list was not properly updated on removal of signs.
2008-08-20 19:53:42 +00:00
frosch
f42fab0dec
(svn r14113) -Codechange: Language updates for r14112.
2008-08-20 19:33:06 +00:00
frosch
7c5d237447
(svn r14112) -Fix (r13715)[FS#2232]: Action B custom messages with parameteers were broken.
2008-08-20 19:31:35 +00:00
frosch
d43a475650
(svn r14111) -Fix (r2572): [strgen] Changing order of parameters {X:...} did not work for strings including some {StringY}.
2008-08-20 19:10:42 +00:00
glx
ef0458c739
(svn r14110) -Fix: desyncs due to bubbles in toyland
2008-08-20 16:51:08 +00:00
smatz
5d5cb04297
(svn r14109) -Fix (r14107): marking reserved tile dirty is needed for waypoints and stations even when patch option is disabled
2008-08-20 16:06:27 +00:00
belugas
80ca96d469
(svn r14108) -Fix(r14104): Give a more consistent naming of the new gui file
2008-08-20 15:27:22 +00:00
smatz
999994bcf3
(svn r14107) -Codechange: marking reserved tile dirty twice (and even when patch option is off) is not needed
2008-08-20 15:21:03 +00:00
belugas
578833ef01
(svn r14106) -Fix(r14104): A string too much been commited
2008-08-20 13:32:57 +00:00
belugas
f2f2bcf23c
(svn r14105) -Fix: Some typos that are more grammatical errors, as it seems.
...
Provided by ln
I've added a little fix on currency.cpp too, why not :)
2008-08-20 01:38:12 +00:00
belugas
77ee099212
(svn r14104) -Feature: Add a window for waypoints, allowing to view all the trains having the selected waypoint in their orders.
...
Changing its name is also supported from the same new window.
Gui based on work done by Satyap, on FS#2025.
2008-08-20 01:29:05 +00:00
smatz
bd6ef958e7
(svn r14103) -Fix [YAPP]: flooded trains didn't free their reservation
2008-08-19 10:55:33 +00:00
rubidium
aa80c3a96c
(svn r14102) -Fix [FS#1986]: make NewGRF action 0x06's changes persistent over the several loading stages.
2008-08-19 09:08:45 +00:00
rubidium
c98c3122b5
(svn r14101) -Cleanup (r14083): leftover friend.
2008-08-18 21:44:03 +00:00
belugas
1500ed3665
(svn r14099) -Codechange: Welcome back, Celestar.
...
While at it, an alphabetic error been fixed
2008-08-18 17:07:27 +00:00
celestar
23a48b2815
(svn r14098) -Fix: Make the 'Transfer Credit' display aware of the entire consist, not only the first vehicle
2008-08-18 16:52:40 +00:00
rubidium
99efe9aaae
(svn r14097) -Fix [FS#2085]: one couldn't get a list of vehicles sharing an order when the number of orders was 0; you could see that the vehicles had a shared order though.
2008-08-17 21:07:09 +00:00
rubidium
abd9f74871
(svn r14096) -Codechange: merge the shared order's vehicle list management to a single location.
2008-08-17 19:56:17 +00:00
frosch
ca3f1f6406
(svn r14095) -Fix (r14076): Trains shall not stop instantly.
2008-08-17 18:48:18 +00:00
glx
fbd2db34e6
(svn r14094) -Revert (r14071): caused more problems than it solved
2008-08-17 15:03:54 +00:00
rubidium
2f5caa63f8
(svn r14093) -Fix [FS#2230]: don't flood a NewGRF industry when it implicitly tells that it wants to be build on water (land shape flags bit 5).
2008-08-17 13:56:11 +00:00
rubidium
2f7c20eccd
(svn r14092) -Cleanup (r14083): dead code, i.e. unused function.
2008-08-17 11:52:06 +00:00
frosch
11a20379f3
(svn r14091) -Cleanup (r14083): Remove superfluous '#include's.
2008-08-17 11:49:35 +00:00
rubidium
3663965f3e
(svn r14090) -Fix: the vehicle window of articulated road vehicles would show the clone/refit button when the vehicle was not completely stopped in the depot.
2008-08-17 11:12:56 +00:00
rubidium
b6b9cd9d51
(svn r14089) -Fix [FS#2219]: trains not being able to find a route to a depot when the front is already in the depot.
2008-08-17 11:04:37 +00:00
rubidium
9648bf3019
(svn r14087) -Fix [FS#2228]: flawed parsing of words (as in 2 bytes) in GRF strings due to sign extension (minime)
2008-08-16 21:48:28 +00:00
smatz
25a1c59abb
(svn r14086) -Fix (r13067): rail/road removing by CTRL didn't sometimes work when a depot window was opened
2008-08-16 18:01:23 +00:00
frosch
9751fbe4dc
(svn r14085) -Cleanup (r14083): Remove no longer used functions.
2008-08-16 14:15:32 +00:00
frosch
f3e7b77dcb
(svn r14084) -Codechange: Language updates for r14083.
2008-08-16 14:04:29 +00:00
frosch
f7826f8a37
(svn r14083) -Fix [FS#1264, FS#2037, FS#2038, FS#2110]: Rewrite the autoreplace kernel.
2008-08-16 14:02:20 +00:00
frosch
56459cab81
(svn r14082) -Codechange: Make 'GetNextUnit()' more fool-proof wrt. real dualheads.
2008-08-16 13:52:44 +00:00
glx
c10691faff
(svn r14080) -Fix (r14052): assert triggered when drawing chat window with 32bpp-anim blitter (backup buffer was too small)
2008-08-15 22:06:58 +00:00
peter1138
9d0e1b635a
(svn r14078) -Codechange: Rename *VehicleInfo::base_cost to cost_factor, indicating what it actually is.
2008-08-15 17:54:43 +00:00
frosch
844a83ed58
(svn r14076) -Codechange: Merge the four start/stop commands into a single CMD_START_STOP_VEHICLE.
2008-08-15 13:57:43 +00:00
rubidium
20ee6f1158
(svn r14071) -Fix [FS#2057]: the screen wouldn't be centered on Windows multimonitor systems if the first monitor is right of the second one.
2008-08-13 19:09:27 +00:00
rubidium
d986380169
(svn r14069) -Fix: silence MSVC 64-bits compile warnings.
2008-08-13 14:52:54 +00:00
rubidium
e5bdcfaf9e
(svn r14068) -Fix (r14056): MSVC doesn't support typeof.
2008-08-13 14:26:20 +00:00
rubidium
2d94337e1a
(svn r14064) -Fix [FS#1752]: check for the length of strings (in bytes) in the command. Checking for the length in pixels is impossible because that differs per client.
2008-08-13 06:22:04 +00:00
rubidium
97c184f8f8
(svn r14063) -Codechange: replace some "magic" constants with enumified constants.
2008-08-13 06:05:01 +00:00
rubidium
08e7da71f5
(svn r14062) -Fix [FS#2226]: division by 0 in newai.
2008-08-13 05:12:36 +00:00
belugas
c773d33cc3
(svn r14061) -Codechange: constification and move a declaration more logically
2008-08-13 02:48:50 +00:00
belugas
931f16cfa8
(svn r14060) -Codechange: Replace numbers with Colours enum on Gen world gui.
...
Note that some WWT_TEXT widgets have received a COLOUR_x value.
It is not a valid colour a per say. THe strings been displayed there do have their own colours encoded.
IT is currently just for the sake of ease of writing, as TextColour and Colours are not really related.
2008-08-13 02:43:42 +00:00
belugas
7564dbd32f
(svn r14059) -Fix(r13872): Wrong comments in enum. Dear old copy/paste...
2008-08-13 01:48:58 +00:00
rubidium
0b9be84d46
(svn r14058) -Fix [FS#2224]: NewGRF callback 23 didn't use the NewGRF compatible text stack (minime)
2008-08-12 22:14:57 +00:00
rubidium
d1073ba574
(svn r14057) -Fix: NewGRF text stack's "push word" didn't move the data around properly (minime)
2008-08-12 22:12:14 +00:00
rubidium
fe87fa8205
(svn r14056) -Fix [FS#2192]: the console backlog is too small for list_patches. Now it'll only remove backlog items when there are more than a threshold and when they are there longer than (another) threshold.
2008-08-12 20:49:27 +00:00
rubidium
203b5eed27
(svn r14055) -Codechange: increase buffers for (dedicated) consoles as they couldn't use the full "extent" of the new chat message limit.
2008-08-12 20:31:49 +00:00
rubidium
4ae352d288
(svn r14054) -Fix (rthebeginning): long strings in the edit box would cause OpenTTD to stop drawing the string. This is especially noticable with low resolutions and the chat input box.
2008-08-12 19:29:10 +00:00
rubidium
72c154fd0f
(svn r14052) -Codechange: make the size of the chat message "box" configurable and increase the default size slightly so it can hold the longest chat messages.
2008-08-12 12:23:05 +00:00
rubidium
a3910ced70
(svn r14051) -Codechange: enumify the DrawString buffer length.
2008-08-12 11:21:37 +00:00
belugas
61007078b6
(svn r14049) -Codechange: rename a variable to a somewhat more descriptive one. And constify it too.
2008-08-12 02:20:39 +00:00
rubidium
c04ab6628b
(svn r14048) -Fix (r14019) [FS#2222]: Redo the check for reserved tracks properly this time. (michi_cc)
2008-08-11 22:58:30 +00:00
rubidium
d0c1a989a4
(svn r14047) -Codechange: move chatmessage handling to the network directory as that's the only case chat messages are used. Furthermore remove any trace of chatmessages when compiling without network support.
2008-08-11 22:45:11 +00:00
rubidium
6995365535
(svn r14046) -Codechange: make the size of querystring "widgets" more configurable.
2008-08-11 22:08:56 +00:00
rubidium
3b4c3a3df6
(svn r14045) -Codechange: move the network's limitation to chat messages to a more logical location and give it a more consistent name.
2008-08-11 22:07:26 +00:00
belugas
5f52c44c14
(svn r14043) -Codechange: Rename a variable to a more obvious name. And a few comments added too.
2008-08-11 20:06:57 +00:00
belugas
7f5173bf94
(svn r14042) -Codechange: Rename some structure members to more obvious names. And add a few comments on the _extra_palette_values array.
2008-08-11 18:30:52 +00:00
glx
16aac30c66
(svn r14041) -Feature(tte): make it possible to filter list_patches output like it's done for other list_* console commands
2008-08-11 17:15:31 +00:00
belugas
ebe9ae2b17
(svn r14040) -Codechange:Remove a hard coded value that is not even representative,
...
since captions have their own encoded colours in string.
2008-08-11 16:31:36 +00:00
rubidium
8726c2fd99
(svn r14039) -Fix [FS#2217]: reversing an overlength train at a station would try to find a route out and sometimes reset the unload counter making it wait 2.5 years before departing instead of waiting until the train would actually leave the station (michi_cc)
2008-08-10 21:56:47 +00:00
rubidium
2086f77dab
(svn r14038) -Fix [FS#2211] (r13731): company limit was not properly enforced for CMD_PLAYER_CTRL.
2008-08-10 19:00:33 +00:00