Commit Graph

4566 Commits

Author SHA1 Message Date
frosch f8ed412b40 (svn r14556) -Fix (r14533): Bounding box with height > TILE_HEIGHT could cause circular dependencies with surrounding bridges. 2008-11-02 11:23:44 +00:00
skidd13 706dd0f86c (svn r14555) -Codechange: replace ttd_strlcat and ttd_strlcpy with strecat and strecpy where direct conversion is possible 2008-11-02 11:20:15 +00:00
rubidium c03e55b32a (svn r14554) -Fix: languages using longer gender names than strgen supports. 2008-11-02 11:15:26 +00:00
skidd13 6043b4574e (svn r14553) -Doc: Add some doxygen comments 2008-11-02 11:05:26 +00:00
michi_cc a4548a4b9b (svn r14550) -Fix [FS#2391]: Don't assert on path look-ahead when processing a not-part-of-orders depot-order. 2008-10-31 16:46:34 +00:00
translators 4661917f64 (svn r14549) -Update: WebTranslator2 update to 2008-10-30 18:25:24
croatian   - 9 fixed by tperic (9)
ido        - 13 fixed by Cecile (13)
indonesian - 219 fixed by dnaftali (219)
italian    - 1 changed by lorenzodv (1)
korean     - 2 changed by dlunch (2)
latvian    - 168 fixed, 22 changed by Wersoo (119), v3rb0 (71)
persian    - 99 fixed by ali sattari (99)
swedish    - 3 changed by Andreas (3)
2008-10-30 18:27:17 +00:00
rubidium 6629698dfe (svn r14548) -Add: partial welsh translation, to be finished later. 2008-10-30 18:12:51 +00:00
rubidium ffe155bb2a (svn r14547) -Fix: order pool seemed to look full when it was not as it only checked whether it was possible to allocate a new block of pool items instead of checking for free pool items. 2008-10-30 12:32:32 +00:00
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