------------------------------------------------------------------------ r7654 | miham | 2006-12-30 18:21:33 +0000 (Sat, 30 Dec 2006) | 12 lines WebTranslator2 update to 2006-12-30 19:20:49 american - 1 fixed by WhiteRabbit (1) bulgarian - 5 fixed by kokobongo (5) estonian - 3 fixed, 2 deleted, 95 changed by kristjans (100) italian - 1 fixed by sidew (1) norwegian - 3 fixed by oletk (3) polish - 2 fixed, 2 changed by meush (4) portuguese - 1 fixed by izhirahider (1) russian - 1 fixed by HMage (1) spanish - 3 fixed by eusebio (3) turkish - 3 fixed by jnmbk (3) ------------------------------------------------------------------------ r7642 | rubidium | 2006-12-30 11:57:52 +0000 (Sat, 30 Dec 2006) | 2 lines -Codechange: unify all the different locations where the animation state is stored into a single location. ------------------------------------------------------------------------ r7641 | rubidium | 2006-12-30 11:51:37 +0000 (Sat, 30 Dec 2006) | 2 lines -Codechange: remove the last direct map accesses from industry_cmd. ------------------------------------------------------------------------ r7640 | rubidium | 2006-12-30 11:41:54 +0000 (Sat, 30 Dec 2006) | 4 lines -Codechange: move a table from industry_cmd.c to table/industry_land -Codechange: add a reference to the industry GFX enum and some comments to the tables -Codechange: remove some magic numbers ------------------------------------------------------------------------ r7639 | bjarni | 2006-12-30 11:28:26 +0000 (Sat, 30 Dec 2006) | 2 lines -Fix: FS#487 Changed music/qtmidi.c to not use functions deprecated by Apple (pvz) ------------------------------------------------------------------------ r7638 | Darkvater | 2006-12-30 01:52:09 +0000 (Sat, 30 Dec 2006) | 8 lines -Codechange: Remove special window ShowJoinStatusWindowAfterJoin and shuffle around some code for SetupColorsAndInitialWindow. Because we know that after a successful load all windows are removed we can setup default windows in this function, and show ShowJoinStatusWindow in PACKET_SERVER_MAP. -Setup the global _network_join_status for ShowJoinStatusWindow in the only two places where the function is called, instead of inside it. -Turn the join status window into a modal window of the network window so it stays on top. ------------------------------------------------------------------------ r7637 | Darkvater | 2006-12-30 01:17:53 +0000 (Sat, 30 Dec 2006) | 3 lines -Codechange: Change ShowQueryString to use a window pointer as a parent. If the query has no parent (eg give money, rename waypoint), the global function HandleOnEditText is used. ------------------------------------------------------------------------ r7636 | Darkvater | 2006-12-30 01:14:00 +0000 (Sat, 30 Dec 2006) | 2 lines -Cleanup: Remove unused window classes (sorry WC-mess) and use sizeof(array) instead of X * sizeof(array[0]) ------------------------------------------------------------------------ r7635 | Darkvater | 2006-12-30 01:08:12 +0000 (Sat, 30 Dec 2006) | 4 lines -Fix (r7618, r7621): Guard against recursive deletion. It is possible that when a parent window is deleted it deletes its child (always) and in turn, through some code the child initiates the deletion of the parent which, if not guarded against, deletes the child and so on... ------------------------------------------------------------------------ r7632 | rubidium | 2006-12-30 00:46:48 +0000 (Sat, 30 Dec 2006) | 3 lines -Codechange: several small code cleanups of texteff, like moving magic values and defines to an enum and fix coding/documentation style. -Codechange: make DeleteAnimatedTile a little clearer (pv2b). ------------------------------------------------------------------------ r7631 | rubidium | 2006-12-30 00:22:03 +0000 (Sat, 30 Dec 2006) | 2 lines -Fix (r1): some pointer arithmetic gave the number of entries instead of the number of bytes to move when removing the animated state from a tile. This caused desyncs between Little and Big Endian machines. Thanks to pv2b for helping me in locating the bug and to Darkvater for figuring out that the arithmetic returned the number of entries instead of bytes. ------------------------------------------------------------------------ r7630 | Darkvater | 2006-12-30 00:06:00 +0000 (Sat, 30 Dec 2006) | 4 lines -Fix: At the end of the quarter the old economy numbers were shifted up, and the current economy numbers were moved to economy[0]. This was done in one memmove which worked because old_economy was behind cur_economy in the struct. Do not rely on this functionality... ------------------------------------------------------------------------ r7629 | rubidium | 2006-12-29 23:43:07 +0000 (Fri, 29 Dec 2006) | 2 lines -Fix: the CLI parameter for joining a network game is "-n ip:port#player", not "-n ip#player:port" as the help text suggests. ------------------------------------------------------------------------ r7628 | KUDr | 2006-12-29 23:06:00 +0000 (Fri, 29 Dec 2006) | 1 line -Fix: [YAPF] suppress 'Train is lost' message if pathfinding ended on the first two-way red signal due to yapf.rail_firstred_twoway_eol option. ------------------------------------------------------------------------ r7626 | bjarni | 2006-12-29 21:46:21 +0000 (Fri, 29 Dec 2006) | 3 lines -Fix r7600: [OSX] building release dmg files no longer includes console.txt, since we don't have that file anymore (this made dmg building fail) -Cleanup: [OSX] removed the link files since they aren't needed and broken anyway ------------------------------------------------------------------------ r7625 | matthijs | 2006-12-29 21:30:31 +0000 (Fri, 29 Dec 2006) | 2 lines * Change debian packaging version to support proper upgrading from/to release versions. ------------------------------------------------------------------------ r7624 | matthijs | 2006-12-29 21:26:32 +0000 (Fri, 29 Dec 2006) | 2 lines -Fix (FS#470): Also install openttd.32.bmp on make install, used as window icon by SDL (to be ported to 0.5). ------------------------------------------------------------------------ r7623 | KUDr | 2006-12-29 18:40:02 +0000 (Fri, 29 Dec 2006) | 1 line - Fix: [YAPF] trains/roadvehs trying to enter the bridge ramp from under bridge rail/road (introduced by bridge merge r7573) ------------------------------------------------------------------------ r7622 | Darkvater | 2006-12-29 17:56:34 +0000 (Fri, 29 Dec 2006) | 2 lines -Codechange: Convert some more windows to ShowQuery. This includes the depot sell-all popup, quit/abandon game. The language files committed in r7619 go with this. ------------------------------------------------------------------------ r7621 | Darkvater | 2006-12-29 17:54:47 +0000 (Fri, 29 Dec 2006) | 4 lines -Codechange: Rework ShowQuery into a general modal popup window. It gets passed a parent pointer which will be blocked as long as the popup is open. This applies to newgrf-apply, heightmap warning, genworld progress. ------------------------------------------------------------------------ r7620 | KUDr | 2006-12-29 17:51:16 +0000 (Fri, 29 Dec 2006) | 5 lines -Fix: [OPF] signal update was incorrectly propagated: - through incompatible rail types - from under bridge track to the bridge ramp (peter1138) - same for tunnels (from track on top of tunnel entry to the tunnel) ------------------------------------------------------------------------ r7619 | Darkvater | 2006-12-29 17:16:12 +0000 (Fri, 29 Dec 2006) | 2 lines -Feature (Internal): Add support for modal children. It's a window-child that will block activity for the parent window until the modal popup is dismissed. ------------------------------------------------------------------------ r7618 | Darkvater | 2006-12-29 17:07:41 +0000 (Fri, 29 Dec 2006) | 3 lines -Feature: Add support for a parent<>child relationship in Window terms. A child is a window whose parent pointer is non-null. Deleting the parent cascades deleting the children as well; children first. ------------------------------------------------------------------------ r7617 | rubidium | 2006-12-29 16:40:22 +0000 (Fri, 29 Dec 2006) | 2 lines -Fix (7609): GetTrackBits only works (as intended) for plain rail tiles, so get the trackbits if it is certain it is a plain rail tile. Noticed by Tron. ------------------------------------------------------------------------ r7616 | Darkvater | 2006-12-29 13:59:48 +0000 (Fri, 29 Dec 2006) | 9 lines -Cleanup: -(re)set _rename_[id/what] to -1 to catch invalid calls (main_gui.c) -Only invalidate widget of pause/ff instead of whole window (main_gui.c) -Remove numbering from WE_ and WC_ as it's not needed, also remove non-existing windowclasses (window.h, openttd.h) -Give names to some of the enums (window.h) -In UninitWindowSystem not only free malloc'd widgets, but also reset the z-array (window.c) -Some coding style, comments, etc. ------------------------------------------------------------------------ r7611 | miham | 2006-12-29 11:28:39 +0000 (Fri, 29 Dec 2006) | 5 lines WebTranslator2 update to 2006-12-29 12:28:05 american - 2 fixed by WhiteRabbit (2) french - 2 fixed by glx (2) portuguese - 2 fixed by izhirahider (2) ------------------------------------------------------------------------ r7609 | rubidium | 2006-12-29 10:16:36 +0000 (Fri, 29 Dec 2006) | 2 lines -Codechange: remove some direct map accesses to m5 and some unneeded signal removal code in ClearTileTrack as it is done in CmdRemoveSingleRail too, which is called for every removed trackbit. ------------------------------------------------------------------------ r7607 | rubidium | 2006-12-29 09:10:44 +0000 (Fri, 29 Dec 2006) | 2 lines -Codechange: remove direct map accesses for snow/desert on tunnels and bridges. ------------------------------------------------------------------------ r7606 | peter1138 | 2006-12-29 07:49:51 +0000 (Fri, 29 Dec 2006) | 2 lines -Codechange: [NewStations] Add support for variables 45 and 65. ------------------------------------------------------------------------ r7605 | Darkvater | 2006-12-29 00:06:31 +0000 (Fri, 29 Dec 2006) | 1 line -Update documentation of MSVC and strgen in docs/ dir and remove directmusic.txt ------------------------------------------------------------------------ r7603 | rubidium | 2006-12-28 19:49:31 +0000 (Thu, 28 Dec 2006) | 2 lines -Codechange (FS#481): update the Polish Town Name generator with Unicode characters (DDream). ------------------------------------------------------------------------ r7602 | Darkvater | 2006-12-28 19:38:09 +0000 (Thu, 28 Dec 2006) | 2 lines -Fix (r7565): MSVC2003 and lower don't support variadic macros, so work around this and thank MS for such a crappy, shitty crap compiler. ------------------------------------------------------------------------ r7601 | miham | 2006-12-28 18:45:24 +0000 (Thu, 28 Dec 2006) | 11 lines WebTranslator2 update to 2006-12-28 19:44:37 bulgarian - 7 fixed, 2 changed by kokobongo (9) catalan - 5 changed by arnaullv (5) estonian - 2 fixed, 7 changed by kristjans (9) italian - 2 fixed by sidew (2) polish - 3 fixed, 3 changed by meush (6) russian - 2 fixed by Smoky555 (2) spanish - 41 fixed by eusebio (41) swedish - 13 fixed, 81 changed by ChrillDeVille (94) turkish - 4 fixed, 2 changed by jnmbk (6) ------------------------------------------------------------------------ r7600 | rubidium | 2006-12-28 18:01:22 +0000 (Thu, 28 Dec 2006) | 5 lines -Remove: out-dated documentation about console and Mandrake Readme. -Change: make readme.txt UTF-8 instead of ISO 8859-15. -Change: some indenting, aligning and other small textual changes. -Add: some comments about port forwarding and NewGRF over the net.. ------------------------------------------------------------------------ r7599 | KUDr | 2006-12-28 17:45:31 +0000 (Thu, 28 Dec 2006) | 1 line -Fix: (r7585, r7590) assert on load game that has some station with bigger spread-out than _patches.station_spread value (Celestar) ------------------------------------------------------------------------ r7596 | peter1138 | 2006-12-28 17:03:36 +0000 (Thu, 28 Dec 2006) | 1 line -Codechange: Always display tractive effort in kN. ------------------------------------------------------------------------ r7594 | peter1138 | 2006-12-28 16:11:07 +0000 (Thu, 28 Dec 2006) | 1 line -Fix (r7522): GRF config list wasn't cleared when no GRFs should be used. ------------------------------------------------------------------------ r7592 | peter1138 | 2006-12-28 13:18:07 +0000 (Thu, 28 Dec 2006) | 1 line -Feature: Add support for tractive effort to 'realistic' acceleration. ------------------------------------------------------------------------ r7590 | KUDr | 2006-12-28 11:52:12 +0000 (Thu, 28 Dec 2006) | 3 lines -Codechange: (r7585) - use existing struct Rect instead of declaring new StationRect - use inline functions instead of macros ------------------------------------------------------------------------ r7588 | bjarni | 2006-12-28 01:24:00 +0000 (Thu, 28 Dec 2006) | 5 lines -Change: [OSX] removed the flag JAGUAR since it didn't work anyway Also removed all the Makefile code regarding this flag since it's no longer needed Removed documentation about special limitations regarding running the game on OSX 10.2 OpenTTD now officially needs OSX 10.3.9 to work correctly (the trunk needed that for months) ------------------------------------------------------------------------ r7587 | bjarni | 2006-12-28 01:13:55 +0000 (Thu, 28 Dec 2006) | 1 line -Change: [OSX] updated readme about compiling a universal binary as the flag name changed, but didn't change in the readme ------------------------------------------------------------------------ r7586 | rubidium | 2006-12-28 00:57:56 +0000 (Thu, 28 Dec 2006) | 2 lines -Fix (FS#473): remove the Landscaping toolbar option from the Road Construction toolbar in the scenario editor, as there is another Lanscaping GUI in the scenario editor and launching that one could confuse users. ------------------------------------------------------------------------ r7585 | KUDr | 2006-12-27 23:11:43 +0000 (Wed, 27 Dec 2006) | 1 line -Codechange: CheckStationSpreadOut() took too much CPU. Station rectangle is now maintained instead of calculating it each time by walking through whole map. Should help with the performance issue related to AIs trying to build road stops too often. (idea by Celestar) ------------------------------------------------------------------------ r7583 | peter1138 | 2006-12-27 18:29:34 +0000 (Wed, 27 Dec 2006) | 2 lines -Fix (r7573): Merging of bridge branch broke (partially reverted?) automatic railtype conversion when building track on existing rail. ------------------------------------------------------------------------ r7582 | rubidium | 2006-12-27 18:25:17 +0000 (Wed, 27 Dec 2006) | 2 lines -Fix (r7490): appending static GRFs to the list of to-be loaded GRF for a game could result in duplicate GRFs in that list, which can cause a segmentation fault while loading the GRFs. ------------------------------------------------------------------------ r7581 | rubidium | 2006-12-27 16:18:59 +0000 (Wed, 27 Dec 2006) | 2 lines [Translations] -Change: overhaul of the Polish language file by MeusH to make use of the Unicode characters where needed. ------------------------------------------------------------------------ r7580 | Darkvater | 2006-12-27 16:14:21 +0000 (Wed, 27 Dec 2006) | 4 lines -Fix (r7182): UTF8-merge changed the string handling a bit, now the str pointer for control characters is at the next character, so take value and THEN increase pointer, not the other way around. This bug could result in incorrect bb's computed for strings. ------------------------------------------------------------------------ r7579 | celestar | 2006-12-27 14:51:55 +0000 (Wed, 27 Dec 2006) | 2 lines -Fix: upon merging the bridge branch, I accidently reverted 7571. Re-revert it. Sorry. ------------------------------------------------------------------------ r7578 | bjarni | 2006-12-27 14:34:09 +0000 (Wed, 27 Dec 2006) | 1 line -Fix r7577: fixed typo ------------------------------------------------------------------------ r7577 | Darkvater | 2006-12-27 14:27:30 +0000 (Wed, 27 Dec 2006) | 1 line -Fix (r7565): Missed out some OSX files (Bjarni) ------------------------------------------------------------------------ r7575 | celestar | 2006-12-27 13:48:57 +0000 (Wed, 27 Dec 2006) | 2 lines -Codechange: Allow the AI to build signals under bridges (revert r4911) ------------------------------------------------------------------------ r7574 | miham | 2006-12-27 13:24:36 +0000 (Wed, 27 Dec 2006) | 10 lines WebTranslator2 update to 2006-12-27 14:23:53 bulgarian - 7 fixed, 55 changed by kokobongo (62) catalan - 2 changed by arnaullv (2) estonian - 26 fixed by kristjans (26) lithuanian - 10 fixed by Plyta (10) norwegian - 53 fixed by oletk (53) slovak - 2 fixed by lengyel (2) turkish - 3 fixed by jnmbk (3) ukrainian - 28 fixed by znikoz (28) ------------------------------------------------------------------------ r7573 | celestar | 2006-12-27 12:38:02 +0000 (Wed, 27 Dec 2006) | 2 lines -Merged the bridge branch. Allows to build bridges of arbitrary rail/road combinations (including signals) ------------------------------------------------------------------------ r7571 | Darkvater | 2006-12-27 12:22:25 +0000 (Wed, 27 Dec 2006) | 2 lines -Fix (r7565): Older GCC versions do not have __VA_ARGS__ support (C99), work around this (tokai) ------------------------------------------------------------------------ r7569 | rubidium | 2006-12-26 22:04:53 +0000 (Tue, 26 Dec 2006) | 4 lines -Fix (r7565): cocoa files were (somehow) forgotten. -Change: messages about failures is cocoa should be debug level 0 and show what went wrong. " failed with message X" isn't really descriptive. -Change: remove unneeded level 1 debug messages for entering some cocoa functions. ------------------------------------------------------------------------ r7568 | Darkvater | 2006-12-26 21:48:15 +0000 (Tue, 26 Dec 2006) | 1 line -Fix [r7564]: buf+4 is the same as &buf[4], not buf[4] for a char*. ------------------------------------------------------------------------ r7566 | rubidium | 2006-12-26 18:27:40 +0000 (Tue, 26 Dec 2006) | 2 lines -Fix: only send commands to the new client from the map, that is going to be transfered to the new client, is saved on the server and not while waiting for the 'map download slot' as that will add commands for already passed frames in the command queue of the new client. ------------------------------------------------------------------------ r7565 | Darkvater | 2006-12-26 17:36:18 +0000 (Tue, 26 Dec 2006) | 2 lines -Codechange: Rework DEBUG functionality. Look for appropiate debugging levels to use in debug.h. grfmsg() is now used as a specific debug-function for grf. ------------------------------------------------------------------------ r7564 | Darkvater | 2006-12-26 17:22:47 +0000 (Tue, 26 Dec 2006) | 3 lines -Codechange: Some newgrf changes. FFIR/EVAW endian-swapping, functionalize check_length, don't print copyright message for grfinfo (it is shown in newgrf window), have action 0x0B print out the messages with severity 0. ------------------------------------------------------------------------ r7563 | rubidium | 2006-12-26 15:28:11 +0000 (Tue, 26 Dec 2006) | 2 lines -Fix (FS#468): removing towns in the scenario editor could leave subsidies with that town as source/destination, resulting in an assertion when displaying the Subsidies Window. ------------------------------------------------------------------------ r7562 | Darkvater | 2006-12-26 13:30:48 +0000 (Tue, 26 Dec 2006) | 1 line -Fix (r7060, 5874): It seems windows doesn't have the same functionality for CreateWindow when starting a program from the console or from the GUI. Because of this starting OpenTTD from the desktop wouldn't maximize the window, even if the config file said so. So work around this... ------------------------------------------------------------------------ r7561 | rubidium | 2006-12-26 12:56:48 +0000 (Tue, 26 Dec 2006) | 2 lines -Fix (FS#431): core and (patches) GUI were not in-sync with respect to autorenew settings. This is only a temporary fix, as the definite fix needs to move the autorenew settings to a per-company settings window. ------------------------------------------------------------------------ r7560 | rubidium | 2006-12-26 11:47:31 +0000 (Tue, 26 Dec 2006) | 2 lines -Fix (r2300): p2 is not a PlayerID when creating a new company, but the ClientID (index in _network_client_info). Therefore it was not possible to create a new company if 8 or more clients were connected. Thanks to FlashFF for noticing this bug. ------------------------------------------------------------------------ r7559 | rubidium | 2006-12-26 00:33:07 +0000 (Tue, 26 Dec 2006) | 2 lines -Fix (FS#456): clicking the 'Full Load' button when the 'current' order is selected in the Order GUI and one has instructed the train to go to the depot, via the button in the Train View GUI, changed the depot order by switching from 'service at depot' to 'stop at depot' and vice versa. ------------------------------------------------------------------------ r7558 | rubidium | 2006-12-25 16:14:36 +0000 (Mon, 25 Dec 2006) | 2 lines -Fix (FS#464): do not wait till a crashed vehicle is removed before starting to load other vehicles. ------------------------------------------------------------------------ r7557 | bjarni | 2006-12-25 09:50:56 +0000 (Mon, 25 Dec 2006) | 4 lines -Fix: [OSX] FS#463 libfontconfig not present on OSX by default By adding CUSTOM_FONTCONFIG flag to the Makefile (not Makefile.config) to overwrite default locations of this library This allows static linking ------------------------------------------------------------------------ r7556 | belugas | 2006-12-25 01:40:33 +0000 (Mon, 25 Dec 2006) | 2 lines -Fix(r7153): By handling the KeyEvent sooner in the events loops, the console command "screenshot no_con" did not had time to actually repaint the screen without the console before the screenshot. Forcing a redraw before it ensure that the feature acts as required. (to be ported to 0.5.0) (thanks glx) ------------------------------------------------------------------------ r7555 | rubidium | 2006-12-24 22:10:09 +0000 (Sun, 24 Dec 2006) | 2 lines -Fix (r5479): off-by-one error due do truncation on division by 2. Thanks to Ben_Robbins_ for providing the test case. ------------------------------------------------------------------------ r7554 | peter1138 | 2006-12-24 19:20:28 +0000 (Sun, 24 Dec 2006) | 2 lines -Fix (r7496): In Action 0xE, don't deactivate the current GRF (to be ported to 0.5) ------------------------------------------------------------------------