Tue, 20 Mar 2007 21:12:18 +0000(svn r9382) [0.5] -Prepare 0.5 branch for release of 0.5.1-RC1. 0.5 0.5.1-RC1
rubidium [Tue, 20 Mar 2007 21:12:18 +0000] rev 5474
(svn r9382) [0.5] -Prepare 0.5 branch for release of 0.5.1-RC1.

Tue, 20 Mar 2007 20:36:45 +0000(svn r9380) [0.5] -Backport from trunk (r9378): 0.5
rubidium [Tue, 20 Mar 2007 20:36:45 +0000] rev 5473
(svn r9380) [0.5] -Backport from trunk (r9378):
- Fix: cancel in password queries reduces amount of players in the network game when they haven't joined the game yet (r9378)

Tue, 20 Mar 2007 00:02:18 +0000(svn r9358) [0.5] -Backport from trunk (r9055, r9082, r9083, r9084, r9085, r9086): 0.5
glx [Tue, 20 Mar 2007 00:02:18 +0000] rev 5472
(svn r9358) [0.5] -Backport from trunk (r9055, r9082, r9083, r9084, r9085, r9086):
- Codechange: Change windows unicode handling and allow a pure non-unicode build to function. (r9055)
- Codechange: [win32] Update VS2003 and VS2005 project files to build in UNICODE mode. When making a release it is probably better to make two binaries, one without UNICODE, the other with, guaranteeing full Win9x compatibility (UNICODE with MSLU also works, without it's even better). (r9082)
- Codechange: Be more lenient when trimming UTF-8 strings and don't terminate the string when an invalid encoding is encountered, but only focus on maximum length. (r9083)
- Fix: [win9x] Clipboard paste for Windows95 (doesn't have CF_UNICODETEXT) correctly converts the input to the current locale. (r9084)
- Fix: [win32] Move the initialisation of _codepage (non-UNICODE) to winMain as a dedicated server, or different video driver will not have a win32 messageloop. (r9085)
- Fix: [win32] Rewrite keyboard input and handle all keypresses in a WM_CHAR event. This saves us from doing translation (ToUnicode[Ex], ToAscii[Ex]), and we get free IME-input support as a plus. (r9086)

Mon, 19 Mar 2007 22:08:18 +0000(svn r9355) [0.5] -Backport from trunk (r8906): 0.5
rubidium [Mon, 19 Mar 2007 22:08:18 +0000] rev 5471
(svn r9355) [0.5] -Backport from trunk (r8906):
- Feature: translation dependant formatting of dates (r8906)

Mon, 19 Mar 2007 21:42:05 +0000(svn r9354) [0.5] -Backport from trunk (r8975, r9003, r9011, r9012): 0.5
glx [Mon, 19 Mar 2007 21:42:05 +0000] rev 5470
(svn r9354) [0.5] -Backport from trunk (r8975, r9003, r9011, r9012):
-Regression: [win32] Possible buffer overflow if unicode text is pasted into an input box and needs trimming. (r8975)
-Codechange: Introduce a function Utf8PrevCharLen that finds the starting character of an UTF-8 sequence from a given position and returns the length to the first UTF-8 encoding byte of that sequence. (r9003)
-Codechange: Rework Utf8PrevChar so that it returns a pointer to the previous UTF8 character's first byte instead of a byte-length offset (r9011)
-Fix: When cutting strings into multiple lines also take into consideration whitespace characters of more than 1 byte length (eg IDEOGRAPHIC SPACE, IsWhitespace() function). When trimming such strings, account for multiple-byte long sequences so use *Utf8PrevChar(v) = '\0'. (r9012)
-Codechange: Add a function Utf8TrimString() that properly trims a string to an UTF8 encoding seperation instead of somewhere in the wild (and use it in the chat area) (r9012)

Mon, 19 Mar 2007 21:04:06 +0000(svn r9353) [0.5] -Backport language updates from trunk (r8957, r9002, r9005, r9013, r9014, r9020, r9021, r9054, r9116, r9118, r9132, r9286, r9292) 0.5
rubidium [Mon, 19 Mar 2007 21:04:06 +0000] rev 5469
(svn r9353) [0.5] -Backport language updates from trunk (r8957, r9002, r9005, r9013, r9014, r9020, r9021, r9054, r9116, r9118, r9132, r9286, r9292)

Mon, 19 Mar 2007 20:38:26 +0000(svn r9351) [0.5] -Backport from trunk (r9147, r9205, r9251, r9298): 0.5
rubidium [Mon, 19 Mar 2007 20:38:26 +0000] rev 5468
(svn r9351) [0.5] -Backport from trunk (r9147, r9205, r9251, r9298):
- Fix: when loadin games, enroute_from was updated in the wrong place, causing issues with TTD savegames/scenarios (r9147)
- Fix: when you started openttd with '-g' you got the same map every run (r9205)
- Fix: use a less CPU-intensive algorithm to find a random industry for the AI to prevent it slowing down the game (r9251)
- Fix: A34-1000, Z-Shuttle, and Kelling K1 are now listed as small aircraft (r9298)

Mon, 19 Mar 2007 20:23:27 +0000(svn r9350) [0.5] -Backport from trunk (r9105, r9115, r9117, r9146): 0.5
rubidium [Mon, 19 Mar 2007 20:23:27 +0000] rev 5467
(svn r9350) [0.5] -Backport from trunk (r9105, r9115, r9117, r9146):
- Fix: disable the ability to make flooding water with the canal build tool. In the scenario editor you can still make both canals and flooding water at height level 0 (r9105)
- Fix: make clear in the tooltips when the canal build tool (in the scenario editor) makes flooding water (r9115)
- Fix: difficulty level button was not selected when opening the difficulty window (r9117)
- Fix: "Train is lost" message is generated incorrectly (r9146)

Mon, 19 Mar 2007 20:17:24 +0000(svn r9349) [0.5] -Backport from trunk (r9043, r9062, r9064, r9070): 0.5
rubidium [Mon, 19 Mar 2007 20:17:24 +0000] rev 5466
(svn r9349) [0.5] -Backport from trunk (r9043, r9062, r9064, r9070):
- Fix: the personal (.openttd) directories were hidden in the load/save directory listings (r9043)
- Fix: the station list, sorted by cargo rating, now takes stations into account that have no cargo waiting (r9062)
- Fix: don't keep on scrolling for non-numeric values in settings, but require reclick (r9064)
- Fix: when a bribe failed and you haven't picked up cargo yet, you would never be able to do so for a given station (r9070)

Mon, 19 Mar 2007 20:05:49 +0000(svn r9348) [0.5] -Backport from trunk (r8974, r8994, r9074): 0.5
rubidium [Mon, 19 Mar 2007 20:05:49 +0000] rev 5465
(svn r9348) [0.5] -Backport from trunk (r8974, r8994, r9074):
- Fix: support compilation with the Vista Platform SDK (r8974)
- Fix: resolution doubled in cfg file when fullscreen mode used (r8994)
- Fix: win32 dedicated console now doesn't need an extra 'enter' to fully quit (r9074)