------------------------------------------------------------------------ r7377 | peter1138 | 2006-12-05 17:53:33 +0000 (Tue, 05 Dec 2006) | 2 lines -Fix (r7326): With gradual loading, make sure cargo is only paid for once, and always notify the station the vehicle was present. (Maedhros) ------------------------------------------------------------------------ r7375 | miham | 2006-12-05 17:09:57 +0000 (Tue, 05 Dec 2006) | 12 lines WebTranslator2 update to 2006-12-05 18:07:02 american - 22 fixed, 2 changed by WhiteRabbit (24) brazilian_portuguese - 23 fixed by tucalipe (23) bulgarian - 22 fixed, 2 changed by groupsky (24) catalan - 23 fixed, 31 changed by arnaullv (54) croatian - 203 fixed, 2 deleted, 27 changed by knovak (232) danish - 9 fixed, 26 changed by ThomasA (35) french - 23 fixed, 10 changed by glx (33) hungarian - 23 fixed, 1 changed by miham (24) italian - 23 fixed by sidew (23) slovak - 8 fixed by lengyel (8) ------------------------------------------------------------------------ r7374 | matthijs | 2006-12-05 16:41:13 +0000 (Tue, 05 Dec 2006) | 2 lines - CodeChange: Replace call to GetVehiclePoolSize() by GetMaxVehicleIndex(). ------------------------------------------------------------------------ r7373 | peter1138 | 2006-12-05 14:18:58 +0000 (Tue, 05 Dec 2006) | 2 lines -Codechange: when removing a GRF from the list, make the next one selected, or the previous file if the last item is being removed. This makes clearing the list easier. ------------------------------------------------------------------------ r7372 | matthijs | 2006-12-05 13:58:20 +0000 (Tue, 05 Dec 2006) | 2 lines - CodeChange: Rename all GetXXXArraySize() functions to GetNumXXX() and add GetMaxXXXIndex() functions. This prepares for the new pool interface. ------------------------------------------------------------------------ r7370 | Darkvater | 2006-12-05 12:17:31 +0000 (Tue, 05 Dec 2006) | 1 line -Cleanup: Use NewsID instead of byte for news identifiers, and some minor other things ------------------------------------------------------------------------ r7369 | Darkvater | 2006-12-05 11:59:28 +0000 (Tue, 05 Dec 2006) | 2 lines -Cleanup: Some coding style, usage of increaseIndex and decreaseIndex to loop through the fifo-array-buffer, typo's. ------------------------------------------------------------------------ r7368 | Darkvater | 2006-12-05 11:51:23 +0000 (Tue, 05 Dec 2006) | 1 line -Fix: [FS#332] Vehicle Deletion Crash [News Window Related?] (r3757). ------------------------------------------------------------------------ r7367 | peter1138 | 2006-12-05 11:13:22 +0000 (Tue, 05 Dec 2006) | 2 lines -Codechange: prevent adding files where the GRF ID is already in the list ------------------------------------------------------------------------ r7366 | Darkvater | 2006-12-05 09:19:14 +0000 (Tue, 05 Dec 2006) | 1 line -Fix: Out of bounds widget access when accessing orders window of other players. ------------------------------------------------------------------------ r7363 | peter1138 | 2006-12-04 20:27:53 +0000 (Mon, 04 Dec 2006) | 2 lines -Fix (r7357): Update count of NewGRFs when adding an file ------------------------------------------------------------------------ r7362 | Darkvater | 2006-12-04 18:57:09 +0000 (Mon, 04 Dec 2006) | 2 lines -Fix (r7337): Free the freetype face after any possible error. For win32 do not use the last font in the registry if no suitable font is found. ------------------------------------------------------------------------ r7360 | glx | 2006-12-04 16:14:10 +0000 (Mon, 04 Dec 2006) | 1 line -Cleanup r7357: Update STR_NEWGRF_FILENAME and STR_NEWGRF_GRF_ID in all languages ------------------------------------------------------------------------ r7358 | peter1138 | 2006-12-04 14:30:18 +0000 (Mon, 04 Dec 2006) | 2 lines -Codechange: add newgrf_gui.c to MS project files ------------------------------------------------------------------------ r7357 | peter1138 | 2006-12-04 14:27:54 +0000 (Mon, 04 Dec 2006) | 1 line -Codechange: new NewGRF set up window which allows modification of NewGRF settings. ------------------------------------------------------------------------ r7356 | rubidium | 2006-12-04 13:57:04 +0000 (Mon, 04 Dec 2006) | 3 lines -Codechange: replace 'for (i = 0, wi = w->widget; wi->type != WWT_LAST; i++, wi++)' type for loops with 'for (i = 0; i < w->window_count; i++) { wi = &w->widget[i];'-type for loops for better readability. -Codechange: use IsWindowWidget(Disabled|Hidden) in favor of IsWidget(Disabled|Hidden). ------------------------------------------------------------------------ r7355 | rubidium | 2006-12-04 13:46:03 +0000 (Mon, 04 Dec 2006) | 2 lines -Codechange: replace 'for (i = 0; w->widget[i].type != WWT_TYPE; i++)'-type for loops with 'for (i = 0; i < w->widget_count; i++)'-type for loops ------------------------------------------------------------------------ r7354 | peter1138 | 2006-12-04 13:45:20 +0000 (Mon, 04 Dec 2006) | 2 lines -Codechange: Remove grffile->flags and use grfconfig->flags exclusively. Update action 7/9 now that we know if GRFs are disabled. ------------------------------------------------------------------------ r7353 | rubidium | 2006-12-04 13:38:45 +0000 (Mon, 04 Dec 2006) | 2 lines -Codechange: constify Window* in IsWindowWidget(Lowered|Hidden|Disabled) ------------------------------------------------------------------------ r7352 | rubidium | 2006-12-04 13:36:27 +0000 (Mon, 04 Dec 2006) | 3 lines -Codechange: add widget_count parameter to the window. -Codechange: check whether widget indices are valid for all the (Set|Is)WindowWidget(Disabled|Lowered|Hidden) and related functions. ------------------------------------------------------------------------ r7351 | peter1138 | 2006-12-04 13:20:14 +0000 (Mon, 04 Dec 2006) | 1 line -Fix (r6619): Disabled platform length and numbers were not reset for the default station. ------------------------------------------------------------------------ r7350 | rubidium | 2006-12-04 10:55:53 +0000 (Mon, 04 Dec 2006) | 2 lines -Fix: do not handle the save game/scenario filename edit box when loading a game/scenario/heightmap. ------------------------------------------------------------------------ r7349 | peter1138 | 2006-12-04 10:44:17 +0000 (Mon, 04 Dec 2006) | 1 line -Fix (r7348): Stripping data path didn't work for absolute paths. ------------------------------------------------------------------------ r7348 | peter1138 | 2006-12-04 08:30:04 +0000 (Mon, 04 Dec 2006) | 2 lines -Feature: Initial support for saving NewGRF settings with savegames. Back up your savegames... ------------------------------------------------------------------------ r7347 | peter1138 | 2006-12-04 08:11:53 +0000 (Mon, 04 Dec 2006) | 2 lines -Translations: Use correct plural type for Russian ------------------------------------------------------------------------ r7346 | miham | 2006-12-04 04:22:53 +0000 (Mon, 04 Dec 2006) | 14 lines WebTranslator2 update to 2006-12-04 05:22:02 american - 5 fixed by WhiteRabbit (5) brazilian_portuguese - 1 fixed by tucalipe (1) bulgarian - 5 fixed by groupsky (5) catalan - 1 fixed, 3 changed by arnaullv (4) croatian - 186 fixed, 111 changed by knovak (297) czech - 5 fixed by Hadez (5) dutch - 5 fixed by habell (5) french - 1 fixed by glx (1) german - 5 fixed by Neonox (5) italian - 5 fixed by sidew (5) portuguese - 4 fixed by izhirahider (4) turkish - 5 fixed by jnmbk (5) ------------------------------------------------------------------------ r7345 | peter1138 | 2006-12-03 23:46:54 +0000 (Sun, 03 Dec 2006) | 2 lines -Codechange: enumification of NewGRF loading stage, and move enum definition to header for future use. ------------------------------------------------------------------------ r7341 | matthijs | 2006-12-03 20:03:40 +0000 (Sun, 03 Dec 2006) | 2 lines - Codechange: Also rename the POOL_H define to OLDPOOL_H (forgotten in r7331). ------------------------------------------------------------------------ r7338 | Darkvater | 2006-12-03 19:07:20 +0000 (Sun, 03 Dec 2006) | 1 line -Fix (r7336): [win32] libfreetype is libfreetype2 in linker options (thanks Rubidium) ------------------------------------------------------------------------ r7337 | Darkvater | 2006-12-03 19:03:38 +0000 (Sun, 03 Dec 2006) | 3 lines -Feature: [win32] Add font selection by specifying a font-name, ala Fontconfig. Pretty messy if you ask me, but this is what you get when MS hides the font API in the deepest depths... thanks Rubidium for testing. ------------------------------------------------------------------------ r7336 | Darkvater | 2006-12-03 18:36:11 +0000 (Sun, 03 Dec 2006) | 1 line -Codechange: [win32] Add freetype support for Windows project files. ------------------------------------------------------------------------ r7335 | peter1138 | 2006-12-03 18:28:42 +0000 (Sun, 03 Dec 2006) | 2 lines -Codechange: redraw station tiles when cargo is moved, for newstations ------------------------------------------------------------------------ r7334 | Darkvater | 2006-12-03 17:54:28 +0000 (Sun, 03 Dec 2006) | 1 line -Revert accidentally committed file in r7333 ------------------------------------------------------------------------ r7333 | Darkvater | 2006-12-03 17:47:53 +0000 (Sun, 03 Dec 2006) | 6 lines -Codechange: [win32] Extend the OTTD2FS and FS2OTTD functions to also accept conversions into a predefined buffer insted of using the static (global) buffer. This is useful if the converted value will be used later on; no need to copy it somewhere else to save it. -CodeChange: [win32] Added appropiate macros WIDE_TO_MB_BUFFER, MB_TO_WIDE_BUFFER next to existing WIDE_TO_MB and MB_TO_WIDE that only do work when UNICODE is defined, saves #ifdefs all over the place ------------------------------------------------------------------------ r7332 | rubidium | 2006-12-03 17:42:56 +0000 (Sun, 03 Dec 2006) | 2 lines -Fix: segmentation fault, discovered by ln-, in the SDL video driver when one goes to fullscreen and there are no suitable resolutions. ------------------------------------------------------------------------ r7331 | matthijs | 2006-12-03 17:27:43 +0000 (Sun, 03 Dec 2006) | 3 lines - Codechange: Rename all memory pool macro's and types to "old pool", so the new pool implementation can be committed alongside it. - Codechange: Rename pool.[ch] to oldpool.[ch]. ------------------------------------------------------------------------ r7330 | peter1138 | 2006-12-03 15:48:21 +0000 (Sun, 03 Dec 2006) | 4 lines -Fix (r7304): Data invalidation doesn't always happen as the local player, resulting in an empty vehicle purchase list. Specify the player as an argument to IsEngineBuildable() ------------------------------------------------------------------------ r7329 | KUDr | 2006-12-03 13:40:16 +0000 (Sun, 03 Dec 2006) | 1 line -Fix (r7157): Invalid viewport position on quick zoom ------------------------------------------------------------------------ r7328 | rubidium | 2006-12-03 13:06:49 +0000 (Sun, 03 Dec 2006) | 2 lines -Fix: memory corruption. The 'Load Heightmap' window does not have TerraGenesis configuration buttons and it does have only 29 widgets, not at least 33. Thanks to Tefad for finding this bug. ------------------------------------------------------------------------ r7327 | KUDr | 2006-12-03 12:17:35 +0000 (Sun, 03 Dec 2006) | 1 line -Fix: [YAPF] missing YAPF cache notification when building road on rail (new crossing) or removing road from crossing ------------------------------------------------------------------------ r7326 | peter1138 | 2006-12-02 16:56:32 +0000 (Sat, 02 Dec 2006) | 2 lines -Feature: Add support for gradual (un)loading of vehicles (Maedhros) ------------------------------------------------------------------------ r7325 | peter1138 | 2006-12-02 09:54:49 +0000 (Sat, 02 Dec 2006) | 2 lines -Feature: Add support for action 5 type 0x0D, coast sprites. ------------------------------------------------------------------------ r7324 | peter1138 | 2006-12-02 09:52:34 +0000 (Sat, 02 Dec 2006) | 2 lines -Codechange: reset newgrf signal location data ------------------------------------------------------------------------ r7323 | peter1138 | 2006-12-02 09:34:18 +0000 (Sat, 02 Dec 2006) | 4 lines -Fix (r7182): When translating NewGRF strings, look at the first character and move ahead if needed, instead of taking the first character and moving back. ------------------------------------------------------------------------ r7322 | Darkvater | 2006-12-01 19:25:50 +0000 (Fri, 01 Dec 2006) | 2 lines -Update win32 project files for ukrainian and bulgarian language files. Also add unicows.lib to Release build of VS2003. ------------------------------------------------------------------------ r7321 | peter1138 | 2006-12-01 13:59:51 +0000 (Fri, 01 Dec 2006) | 2 lines -Translations: Move bulgarian and ukrainian out of unfinished as they are, respectively, 99% and 97% complete. ------------------------------------------------------------------------ r7320 | peter1138 | 2006-12-01 13:18:18 +0000 (Fri, 01 Dec 2006) | 2 lines -Translations: add russian to MS VC project files ------------------------------------------------------------------------ r7319 | peter1138 | 2006-12-01 12:57:31 +0000 (Fri, 01 Dec 2006) | 2 lines -Fix (r7182): (NewGRF) Add space for terminator when translating TTDPatch strings (thanks eddi) ------------------------------------------------------------------------ r7318 | rubidium | 2006-12-01 11:23:29 +0000 (Fri, 01 Dec 2006) | 2 lines -Fix: change some unfinished strings: STRING->{CARGO,POWER,WEIGHT,WEIGHT_S} and remove strings that are no longer in english.txt. ------------------------------------------------------------------------ r7317 | KUDr | 2006-12-01 08:23:15 +0000 (Fri, 01 Dec 2006) | 1 line -Fix: (r7299) warning: unused variable num_engines (peter1138) ------------------------------------------------------------------------ r7316 | Darkvater | 2006-12-01 00:28:15 +0000 (Fri, 01 Dec 2006) | 1 line -Codechange: Make train-build-gui and aircraft-build-gui (unified) look more alike. ------------------------------------------------------------------------ r7315 | Darkvater | 2006-12-01 00:26:42 +0000 (Fri, 01 Dec 2006) | 3 lines -Fix: Have the first engine in the list be selected once again when the window is opened and remove a useless loop that tested if selected engine is still in list (moved to list generation). ------------------------------------------------------------------------ r7314 | Darkvater | 2006-12-01 00:14:10 +0000 (Fri, 01 Dec 2006) | 1 line -Cleanup: const, whitespace, coding style and variable usage. ------------------------------------------------------------------------ r7313 | Darkvater | 2006-12-01 00:09:13 +0000 (Fri, 01 Dec 2006) | 2 lines -Codechange: Calling invalidate data on a window will surely warrant a redraw, so call that after the WE_INVALIDATE_DATA event and remove (some of) the superflouous calls. ------------------------------------------------------------------------ r7312 | Darkvater | 2006-11-30 22:23:11 +0000 (Thu, 30 Nov 2006) | 5 lines -Fix: When loading a game from a dedicated server the local player global variable was wrongly set to 0. In theory this allowed a dedicated server to also play. I see no history for this bug, but it has been there since the introduction of the dedicated server probably. Thanks peter1138 for bringing it to my attention and thanks myself for rewriting the code so this bug could surface ;p ------------------------------------------------------------------------ r7310 | peter1138 | 2006-11-30 21:46:47 +0000 (Thu, 30 Nov 2006) | 4 lines -Codechange: Change scrolling dropdown box to use 1 scroll unit = 1 line of text, instead of 1 row of pixels. This fixes behaviour of scrolling with the scrollbar buttons and the mouse wheel. ------------------------------------------------------------------------ r7309 | KUDr | 2006-11-30 21:37:06 +0000 (Thu, 30 Nov 2006) | 1 line -Codechange: sort train engines/wagons by number first and then by custom rule ------------------------------------------------------------------------ r7308 | KUDr | 2006-11-30 21:33:09 +0000 (Thu, 30 Nov 2006) | 1 line -Codechange: call GenerateBuildList() only when needed instead of on each redraw (peter1138) ------------------------------------------------------------------------ r7306 | KUDr | 2006-11-30 19:37:16 +0000 (Thu, 30 Nov 2006) | 1 line -Codechange: constness (Darkvater) ------------------------------------------------------------------------ r7305 | peter1138 | 2006-11-30 18:47:57 +0000 (Thu, 30 Nov 2006) | 2 lines -Codestyle: Indentation fixes ------------------------------------------------------------------------ r7304 | peter1138 | 2006-11-30 18:23:25 +0000 (Thu, 30 Nov 2006) | 1 line -Codechange: Reinstate caching of sorted purchase list. Dropping from 9m to 1.5m cycles for a redraw of a full list is not frivolous. ------------------------------------------------------------------------ r7303 | peter1138 | 2006-11-30 18:16:08 +0000 (Thu, 30 Nov 2006) | 1 line -Codechange: Sort wagon list as well as engine list. ------------------------------------------------------------------------ r7301 | KUDr | 2006-11-30 17:12:10 +0000 (Thu, 30 Nov 2006) | 1 line -Fix: (r7299) Forgotten $Id$ and eol-style (peter1138) ------------------------------------------------------------------------ r7300 | KUDr | 2006-11-30 16:03:57 +0000 (Thu, 30 Nov 2006) | 2 lines -Fix: (r7299) removed unused strings from lang files ------------------------------------------------------------------------ r7299 | KUDr | 2006-11-30 16:03:12 +0000 (Thu, 30 Nov 2006) | 6 lines -CodeChange: Train and Aircraft Build window GUI code simplified a bit: - using one engine list instead of 3 - removed engine filters (loco, wagons, helicopters, etc.) - EngineList code isolated from GUI (moved to helpers.cpp - reusing CBlobT code which does exactly what is needed for EngineList) - removed unnecessary "optimization" (rebuild and sort engine list on each WE_PAINT) ------------------------------------------------------------------------ r7296 | KUDr | 2006-11-30 13:52:31 +0000 (Thu, 30 Nov 2006) | 1 line -Fix: [YAPF] setting yapf.rail_look_ahead_max_signals to zero causes YAPF to behave incorrectly. Set its min value to 1. (Danny) ------------------------------------------------------------------------ r7295 | miham | 2006-11-30 08:27:24 +0000 (Thu, 30 Nov 2006) | 1 line [Translations] Reverted last commit ------------------------------------------------------------------------ r7294 | miham | 2006-11-30 08:06:34 +0000 (Thu, 30 Nov 2006) | 3 lines WebTranslator2 update to 2006-11-30 09:06:04 hungarian - 1 changed by miham (1) ------------------------------------------------------------------------ r7293 | miham | 2006-11-30 07:57:27 +0000 (Thu, 30 Nov 2006) | 8 lines WebTranslator2 update to 2006-11-30 08:56:49 brazilian_portuguese - 4 fixed by tucalipe (4) catalan - 4 fixed, 31 changed by arnaullv (35) croatian - 13 fixed by blozo (13) french - 4 fixed by glx (4) german - 1 fixed by Neonox (1) hungarian - 7 fixed by miham (7) ------------------------------------------------------------------------ r7292 | Darkvater | 2006-11-29 21:38:19 +0000 (Wed, 29 Nov 2006) | 2 lines -Codechange: Also validate an strip of colours the console string passed to the dedicated console or logfile. ------------------------------------------------------------------------ r7291 | peter1138 | 2006-11-29 20:56:30 +0000 (Wed, 29 Nov 2006) | 2 lines -Translation: use SMALL[LEFT|RIGHT]ARROW for two strings ------------------------------------------------------------------------ r7290 | peter1138 | 2006-11-29 20:53:14 +0000 (Wed, 29 Nov 2006) | 2 lines -Translation: update Russian for changes since 0.4.8: new commands and string removed or modified in English ------------------------------------------------------------------------ r7289 | peter1138 | 2006-11-29 20:26:45 +0000 (Wed, 29 Nov 2006) | 2 lines -Translation: use only {STRING}, not {STRINGx} in non-English ------------------------------------------------------------------------ r7288 | peter1138 | 2006-11-29 20:21:21 +0000 (Wed, 29 Nov 2006) | 2 lines -Translation: Fix currency symbols in Russian ------------------------------------------------------------------------ r7287 | peter1138 | 2006-11-29 17:57:14 +0000 (Wed, 29 Nov 2006) | 2 lines -Translation: Add Russian translation based on ttdrussia 0.4.8 release, thanks to Davydov M.A. ------------------------------------------------------------------------ r7286 | peter1138 | 2006-11-29 17:37:28 +0000 (Wed, 29 Nov 2006) | 2 lines -Translation: Remove unfinished latin transliterated Russian translation. ------------------------------------------------------------------------ r7285 | peter1138 | 2006-11-29 11:48:47 +0000 (Wed, 29 Nov 2006) | 1 line -Fix (r7282): Our vehstatus is a byte, not a word. ------------------------------------------------------------------------ r7284 | peter1138 | 2006-11-28 23:44:12 +0000 (Tue, 28 Nov 2006) | 2 lines -Fix (r2361): off by one when calculating vehicle newgrf variable 41 result, partly blamed by vague documentation... (thanks lakie) ------------------------------------------------------------------------ r7283 | Darkvater | 2006-11-28 21:13:45 +0000 (Tue, 28 Nov 2006) | 3 lines -Revert (r1932): Remove scancode 41 for linux console because it is 49. If some linux flavour does use 41, use proper #ifdef guards around it, because right now 'f' also toggles console. ------------------------------------------------------------------------ r7282 | peter1138 | 2006-11-28 21:03:28 +0000 (Tue, 28 Nov 2006) | 2 lines -Fix (r625): ttdpatch vars are little endian ------------------------------------------------------------------------ r7281 | Darkvater | 2006-11-28 20:55:42 +0000 (Tue, 28 Nov 2006) | 1 line -Codechange: [win32] Add win32.h to project file ------------------------------------------------------------------------ r7280 | Darkvater | 2006-11-28 20:55:16 +0000 (Tue, 28 Nov 2006) | 1 line -Codechange: Replace some sprintf() functions with the safer snprintf() functions ------------------------------------------------------------------------ r7279 | Darkvater | 2006-11-28 20:01:46 +0000 (Tue, 28 Nov 2006) | 4 lines -Codechange: [win32] Add Windows95/98 support by using MSLU. Only workaround is that the wide version of EnumDisplaySettings crashes on win95 no matter what, so use ANSI version. NOTE: MSLU support is only added to VS2003 project file because VS2005 compiles won't even run on Windows95. ------------------------------------------------------------------------ r7278 | Darkvater | 2006-11-28 19:58:13 +0000 (Tue, 28 Nov 2006) | 2 lines -Codechange: [win32] Add UNICODE support so it should compile on OS's using UNICODE API exclusively. ------------------------------------------------------------------------