------------------------------------------------------------------------ r6823 | peter1138 | 2006-10-18 17:44:46 +0000 (Wed, 18 Oct 2006) | 2 lines - Codechange: Ignore bit 0 of a NewStation custom tile callback result. This fixes cosmetic problems with some add on stations. ------------------------------------------------------------------------ r6822 | glx | 2006-10-18 14:42:19 +0000 (Wed, 18 Oct 2006) | 1 line -Fix r6821: add type for measure_strings_length[] ------------------------------------------------------------------------ r6821 | Darkvater | 2006-10-18 14:20:10 +0000 (Wed, 18 Oct 2006) | 2 lines -Codechange: For the measurement tool do not show the tooltip when the selection is only a single tile. Seems this was a bit annoying to some ;) ------------------------------------------------------------------------ r6820 | Darkvater | 2006-10-18 13:17:46 +0000 (Wed, 18 Oct 2006) | 3 lines -Codechange: Some more const correctness, coding style. -Codechange: Add FOR_ALL_ACTIVE_CLIENT_INFOS macro that will loop all clients skipping inactive ones. ------------------------------------------------------------------------ r6819 | miham | 2006-10-18 10:57:32 +0000 (Wed, 18 Oct 2006) | 6 lines WebTranslator2 update to 2006-10-18 12:54:18 bulgarian - 47 fixed, 1 changed by groupsky (48) danish - 1 fixed by ThomasA (1) italian - 1 fixed by sidew (1) slovak - 1 fixed by lengyel (1) ------------------------------------------------------------------------ r6817 | glx | 2006-10-18 00:10:38 +0000 (Wed, 18 Oct 2006) | 1 line -Fix: set svn:eol-style for vs80 files ------------------------------------------------------------------------ r6816 | Darkvater | 2006-10-17 23:34:12 +0000 (Tue, 17 Oct 2006) | 2 lines -Codechange: Some coding style, variable localization, const correctness. -Codechange: 'quited' is not a word, use has_quit instead for NetworkClientState ------------------------------------------------------------------------ r6815 | miham | 2006-10-17 22:21:13 +0000 (Tue, 17 Oct 2006) | 3 lines WebTranslator2 update to 2006-10-18 00:20:47 czech - 3 changed by KUDr (3) ------------------------------------------------------------------------ r6814 | Darkvater | 2006-10-17 22:16:46 +0000 (Tue, 17 Oct 2006) | 5 lines -Codechange: For network games ci->client_playas was always p->index + 1. To correctly handle this ci->client_playas - 1 was used all over the code making it pretty confusing at times. Use proper one-on-one values now. Special handling is only needed for user-output to not to confuse users. ------------------------------------------------------------------------ r6811 | miham | 2006-10-17 20:36:03 +0000 (Tue, 17 Oct 2006) | 7 lines WebTranslator2 update to 2006-10-17 22:35:27 american - 1 fixed by WhiteRabbit (1) bulgarian - 50 fixed, 1 changed by kokobongo (51) czech - 30 fixed by KUDr (30) estonian - 5 fixed by vermon (5) finnish - 1 fixed by kerba (1) ------------------------------------------------------------------------ r6807 | miham | 2006-10-17 19:12:30 +0000 (Tue, 17 Oct 2006) | 8 lines WebTranslator2 update to 2006-10-17 21:11:51 bulgarian - 20 fixed, 1 deleted by kokobongo (21) dutch - 1 fixed by webfreakz (1) hungarian - 2 fixed by miham (2) polish - 1 fixed by meush (1) spanish - 1 fixed by eusebio (1) swedish - 2 fixed, 5 changed by cjw (7) ------------------------------------------------------------------------ r6806 | miham | 2006-10-17 18:36:39 +0000 (Tue, 17 Oct 2006) | 7 lines WebTranslator2 update to 2006-10-17 20:36:04 catalan - 1 fixed, 9 changed by arnaullv (10) danish - 13 changed by ThomasA (13) finnish - 5 fixed, 8 changed by hapo (13) french - 1 fixed, 6 changed by belugas (6), glx (1) swedish - 5 fixed by daishan (5) ------------------------------------------------------------------------ r6804 | Darkvater | 2006-10-17 18:15:35 +0000 (Tue, 17 Oct 2006) | 1 line -Codechange: Remove the unused NF_NOEXPIRE flag. ------------------------------------------------------------------------ r6803 | Darkvater | 2006-10-17 17:59:41 +0000 (Tue, 17 Oct 2006) | 2 lines -Codechange: Substitute magic numbers by an enum for the news windows ------------------------------------------------------------------------ r6802 | peter1138 | 2006-10-17 17:17:51 +0000 (Tue, 17 Oct 2006) | 2 lines - Fix (r6800): Remove now unused 'lost train' strings from all language files. ------------------------------------------------------------------------ r6801 | peter1138 | 2006-10-17 17:10:39 +0000 (Tue, 17 Oct 2006) | 2 lines - Fix (r6619): Always disable the train refit button. It will be enabled later if refitting is possible. ------------------------------------------------------------------------ r6800 | KUDr | 2006-10-17 16:16:19 +0000 (Tue, 17 Oct 2006) | 1 line -Feature change: [train is lost] message is now generated immediately when pathfinder can't find the path. (thanks MeusH, peter1138 and Brianetta for ideas and help). ------------------------------------------------------------------------ r6795 | peter1138 | 2006-10-17 14:52:55 +0000 (Tue, 17 Oct 2006) | 2 lines - NewGRF: Add support for cargo-specific wagon overrides. ------------------------------------------------------------------------ r6794 | peter1138 | 2006-10-17 07:33:05 +0000 (Tue, 17 Oct 2006) | 2 lines - Fix: In the train detail window, split up articulated parts if they can contain cargo. This allows us to show the full cargo contents. ------------------------------------------------------------------------ r6793 | belugas | 2006-10-17 03:39:30 +0000 (Tue, 17 Oct 2006) | 2 lines -Fix(5464): When checking items on an array, make sure to respect boundaries(jez). Made some comments code style compliant ------------------------------------------------------------------------ r6792 | bjarni | 2006-10-16 21:30:08 +0000 (Mon, 16 Oct 2006) | 3 lines -Cleanup: improved the English used in STR_VEH_WITH_SHARED_ORDERS_LIST_TIP (jez) The meaning should remain the same and there is no need to retranslate this string ------------------------------------------------------------------------ r6791 | KUDr | 2006-10-16 19:17:30 +0000 (Mon, 16 Oct 2006) | 1 line -Fix: [YAPF] YapfFindNearestRailDepotTwoWay() did not work for train inside tunnel. ------------------------------------------------------------------------ r6790 | miham | 2006-10-16 11:46:47 +0000 (Mon, 16 Oct 2006) | 5 lines WebTranslator2 update to 2006-10-16 13:46:16 catalan - 3 changed by arnaullv (3) danish - 6 fixed, 61 changed by ThomasA (67) italian - 5 fixed by sidew (5) ------------------------------------------------------------------------ r6789 | peter1138 | 2006-10-16 10:29:29 +0000 (Mon, 16 Oct 2006) | 2 lines - Codechange: Tidy up VehicleNameSorter() to use no global vars, and match the style of EngineNameSorter(). This also removes a bug where _internal_name_sorter_id was never set properly for anything other than trains. ------------------------------------------------------------------------ r6788 | peter1138 | 2006-10-16 10:26:22 +0000 (Mon, 16 Oct 2006) | 2 lines - Codechange: Add and use a function to test if a string ID is a custom name. ------------------------------------------------------------------------ r6787 | Darkvater | 2006-10-15 23:48:34 +0000 (Sun, 15 Oct 2006) | 2 lines -Codechange: Use PLAYER_NEW_COMPANY as a player identifier wishing to become a new player instead of a 0. ------------------------------------------------------------------------ r6786 | Darkvater | 2006-10-15 23:42:18 +0000 (Sun, 15 Oct 2006) | 4 lines -Codechange: To join a new company CMD_PLAYER_CTRL is executed with so far a local spectator (awaiting assignment from server). Since a spectator cannot execute any commands, a local player is impersonated. Move this impersonation to the server side where CMD_PLAYER_CTRL is handled specially anyways. ------------------------------------------------------------------------ r6785 | Darkvater | 2006-10-15 23:37:15 +0000 (Sun, 15 Oct 2006) | 2 lines -Cleanup: Remove unused _network_playas from NetworkAddServer. This function only adds favourite servers to the list, does nothing with regards to connection ------------------------------------------------------------------------ r6784 | Darkvater | 2006-10-15 23:35:26 +0000 (Sun, 15 Oct 2006) | 1 line -Codechange: Change invalid PlayerID type into ClientID which it is in CmdPlayerCtrl ------------------------------------------------------------------------ r6783 | Darkvater | 2006-10-15 23:31:22 +0000 (Sun, 15 Oct 2006) | 1 line -Codechange: Allow ParseConnectionString to allow players with more than one digit ------------------------------------------------------------------------ r6782 | peter1138 | 2006-10-15 20:46:10 +0000 (Sun, 15 Oct 2006) | 2 lines - Fix (r3947): Invalidate depot & vehicle windows when reversing a single engine with ctrl-click. ------------------------------------------------------------------------ r6781 | peter1138 | 2006-10-15 19:01:40 +0000 (Sun, 15 Oct 2006) | 2 lines - Fix (r5926): Some house introduction dates were incorrectly adjusted in the move to 32bit dates. ------------------------------------------------------------------------ r6780 | Darkvater | 2006-10-15 17:01:19 +0000 (Sun, 15 Oct 2006) | 1 line -Codechange: Remove GPMI leftovers (-b impersonisation of AI in MP). ------------------------------------------------------------------------ r6779 | glx | 2006-10-15 16:56:58 +0000 (Sun, 15 Oct 2006) | 1 line -Fix r6631: waypoint selector now correctly shows the current selected waypoint type (thx Maedhros) ------------------------------------------------------------------------ r6778 | miham | 2006-10-15 13:28:20 +0000 (Sun, 15 Oct 2006) | 9 lines WebTranslator2 update to 2006-10-15 15:27:37 brazilian_portuguese - 1 changed by tucalipe (1) catalan - 15 changed by arnaullv (15) estonian - 6 fixed by vermon (6) german - 4 fixed by Neonox (4) polish - 5 fixed, 2 changed by meush (7) portuguese - 7 fixed by izhirahider (7) spanish - 5 fixed by eusebio (5) ------------------------------------------------------------------------ r6777 | belugas | 2006-10-15 03:40:53 +0000 (Sun, 15 Oct 2006) | 1 line -GuiChange: When painting a lowered button on CargoPaymentsRates, displace the content of one pixel to the right and to the bottom. This will make it look like a normal button ------------------------------------------------------------------------ r6776 | Darkvater | 2006-10-14 22:31:18 +0000 (Sat, 14 Oct 2006) | 2 lines -Codechange: Use IsValidPlayer() function to determine of a PlayerID is an actual playable player (< MAX_PLAYERS) or not. ------------------------------------------------------------------------ r6775 | Darkvater | 2006-10-14 22:22:48 +0000 (Sat, 14 Oct 2006) | 2 lines -Codechange: Use some more proper types, especially Owner and PlayerID as these are used intermixed often. ------------------------------------------------------------------------ r6774 | Darkvater | 2006-10-14 15:49:43 +0000 (Sat, 14 Oct 2006) | 2 lines -Codechange: Rename the badly named OWNER_SPECTATOR to PLAYER_SPECTATOR and put it into player.h where it belongs (instead of map.h) ------------------------------------------------------------------------ r6773 | Darkvater | 2006-10-14 15:44:28 +0000 (Sat, 14 Oct 2006) | 1 line -eh...I had to test it didn't i, just forgot to save ------------------------------------------------------------------------ r6772 | Darkvater | 2006-10-14 15:43:37 +0000 (Sat, 14 Oct 2006) | 2 lines -Codechange: Do not abuse OWNER_SPECTATOR as the "owner" of the industry for the minimap. This also saves us from having this huge _owner_colors table. ------------------------------------------------------------------------ r6771 | Darkvater | 2006-10-14 15:15:56 +0000 (Sat, 14 Oct 2006) | 2 lines -Codechange: Replace two macros with functions. IS_HUMAN_PLAYER and IS_INTERACTIVE_PLAYER ------------------------------------------------------------------------ r6770 | Darkvater | 2006-10-14 10:26:13 +0000 (Sat, 14 Oct 2006) | 6 lines -Codechange: Make the airport checking a bit stricter...fix unnoticed errors: Commuter (20): invalid use of terminal group designator; since all other options goto position 2 and no additional blocks are checked, simplify state Intercontinental (23, 30): no extra states are needed since all options go to position 70 and 31 unconditionally Intercontinental (31): invalid use of more-options-to-follow (255) ------------------------------------------------------------------------ r6769 | Darkvater | 2006-10-14 09:51:04 +0000 (Sat, 14 Oct 2006) | 3 lines -Codechange: Minor syntax, const correctness, variable localization, coding style changes to airport code, and cleanup of airport.c. Should not change any functionality. ------------------------------------------------------------------------ r6768 | Darkvater | 2006-10-13 23:08:55 +0000 (Fri, 13 Oct 2006) | 3 lines -Cleanup: For airports change *Airport to *apc (variable naming coding style conformance (AirportFTAClass), *FA to *apFA (to better reflect its type AirportFTAbuildup), and ->next_in_chain into ->next. ------------------------------------------------------------------------ r6767 | miham | 2006-10-13 17:55:56 +0000 (Fri, 13 Oct 2006) | 8 lines WebTranslator2 update to 2006-10-13 19:54:10 american - 5 fixed by WhiteRabbit (5) brazilian_portuguese - 5 fixed, 8 changed by tucalipe (13) bulgarian - 136 fixed, 12 changed by groupsky (148) dutch - 5 fixed by habell (5) french - 5 fixed by belugas (5) slovak - 5 fixed by lengyel (5) ------------------------------------------------------------------------ r6766 | Darkvater | 2006-10-13 15:52:22 +0000 (Fri, 13 Oct 2006) | 1 line -Codechange: Move _openttd_revision[] into the functions that use it instead of global ------------------------------------------------------------------------ r6765 | peter1138 | 2006-10-13 15:15:22 +0000 (Fri, 13 Oct 2006) | 2 lines - Fix: Don't add up running cost of articulated engine parts. ------------------------------------------------------------------------ r6764 | Darkvater | 2006-10-12 22:11:18 +0000 (Thu, 12 Oct 2006) | 2 lines -Fix (r6758): Wrong height difference calculated because invalid drag-type was passed to the function. Thanks peter1138. ------------------------------------------------------------------------ r6761 | miham | 2006-10-12 16:12:06 +0000 (Thu, 12 Oct 2006) | 4 lines WebTranslator2 update to 2006-10-12 18:11:37 catalan - 5 fixed, 15 changed by arnaullv (20) hungarian - 5 fixed by miham (5) ------------------------------------------------------------------------ r6760 | Darkvater | 2006-10-12 15:39:33 +0000 (Thu, 12 Oct 2006) | 2 lines -Codechange: Do a case insensitive sort of train engine names and just normally check a boolean; no special magic needed ------------------------------------------------------------------------ r6759 | Darkvater | 2006-10-12 15:38:37 +0000 (Thu, 12 Oct 2006) | 1 line -Codechange: Remove the brainheaded usage of STR_JUST_STRING to pass a StringID ------------------------------------------------------------------------ r6758 | Darkvater | 2006-10-12 15:13:40 +0000 (Thu, 12 Oct 2006) | 3 lines -Feature: Add a measurement tool that will show dimensions and height differences of various draggable tools (inspiration, concept and double checking by MeusH). ------------------------------------------------------------------------ r6757 | Darkvater | 2006-10-12 15:06:59 +0000 (Thu, 12 Oct 2006) | 2 lines -Fix (r6754): Remove double function declerations from functions.h..Gaah local copy mess.... ------------------------------------------------------------------------ r6756 | peter1138 | 2006-10-12 15:05:25 +0000 (Thu, 12 Oct 2006) | 2 lines - Fix: When resolving vehicle groups, only fall back to the default group if the group chosen is undefined, not if it returns a bad result. This fixes some issues with UKRS. ------------------------------------------------------------------------ r6755 | peter1138 | 2006-10-12 15:03:19 +0000 (Thu, 12 Oct 2006) | 2 lines - Fix: Pass the newly created vehicle when checking for articulated engines. As this could result in more parts being added than previously counted, we check to see if we need to allocate more vehicles as we add parts. ------------------------------------------------------------------------ r6754 | Darkvater | 2006-10-12 14:59:27 +0000 (Thu, 12 Oct 2006) | 3 lines -Codechange: Remove some #idef ENABLE_NETWORK specific defines. With networking disabled hardcode _networking/_network_available to zero and let the compiler handle all optimizations. ------------------------------------------------------------------------ r6753 | Darkvater | 2006-10-12 14:48:36 +0000 (Thu, 12 Oct 2006) | 2 lines -Codechange: Move some function declerations from functions.h into network.h and let NetworkDisconnect handle all shutdown related operations. ------------------------------------------------------------------------ r6752 | Darkvater | 2006-10-12 14:42:00 +0000 (Thu, 12 Oct 2006) | 1 line -Codechange: Move command functions from messy functions.h into command.h ------------------------------------------------------------------------ r6751 | Darkvater | 2006-10-12 14:31:42 +0000 (Thu, 12 Oct 2006) | 1 line -Fix: Add option to enable/disable network support. Default is on ------------------------------------------------------------------------ r6750 | Darkvater | 2006-10-12 14:13:39 +0000 (Thu, 12 Oct 2006) | 2 lines -Codechange: Juggle around some header includes as they're only used when networking is enabled. ------------------------------------------------------------------------ r6749 | miham | 2006-10-12 13:46:45 +0000 (Thu, 12 Oct 2006) | 8 lines WebTranslator2 update to 2006-10-12 15:46:08 brazilian_portuguese - 15 fixed by tucalipe (15) bulgarian - 2 changed by groupsky (2) catalan - 2 changed by arnaullv (2) finnish - 22 changed by kerba (22) german - 7 fixed by Neonox (7) slovak - 9 fixed by lengyel (9) ------------------------------------------------------------------------ r6748 | Darkvater | 2006-10-12 11:42:57 +0000 (Thu, 12 Oct 2006) | 1 line -Codechange: Use already existing function to count active players. ------------------------------------------------------------------------ r6747 | Darkvater | 2006-10-12 11:30:16 +0000 (Thu, 12 Oct 2006) | 1 line -Revert wrongly committed english strings. ------------------------------------------------------------------------ r6746 | Darkvater | 2006-10-12 11:27:37 +0000 (Thu, 12 Oct 2006) | 2 lines -Codechange: Remove the need for double strings in "checkmarked" items. While here have a little go at the MenuWndProc() function for a little cleanup. ------------------------------------------------------------------------ r6745 | Darkvater | 2006-10-12 10:52:24 +0000 (Thu, 12 Oct 2006) | 5 lines -Codechange: Have the dropdown menus fall fully inside the top toolbar. So normally they will start at the left side of the parent button except when they would stick out, then align with the top toolbar's right side. This also means the extra parameter 'x' is not needed, it is deducted from the widget position. ------------------------------------------------------------------------ r6744 | Darkvater | 2006-10-12 10:43:14 +0000 (Thu, 12 Oct 2006) | 2 lines -Fix: Determine the length of the main toolbar dropdown list based on the length of the strings in that list. ------------------------------------------------------------------------ r6743 | Darkvater | 2006-10-12 10:14:45 +0000 (Thu, 12 Oct 2006) | 3 lines -Fix (r6462): When determining string length for GetStringBoundingBox SETX and SETXY parameters were wrongly accounted for. The identifier itself was taken not the amount. ------------------------------------------------------------------------ r6742 | peter1138 | 2006-10-12 07:42:37 +0000 (Thu, 12 Oct 2006) | 2 lines - Newsounds: Add support for importing sounds from previously loaded GRF files. ------------------------------------------------------------------------ r6741 | peter1138 | 2006-10-11 22:05:59 +0000 (Wed, 11 Oct 2006) | 2 lines - Codechange: Simplify and unify resolving of station groups, and use the first available cargo type instead of only the default. ------------------------------------------------------------------------ r6740 | Darkvater | 2006-10-11 22:04:46 +0000 (Wed, 11 Oct 2006) | 1 line -Fix: if a rail is not available, don't show toolbar even with hotkey 'A' ------------------------------------------------------------------------ r6739 | Darkvater | 2006-10-11 21:20:53 +0000 (Wed, 11 Oct 2006) | 3 lines -Fix (r6001): Crash on removing farmland belonging to a farm. The search would loop around the edges causing some troubles. Also make sure that the land after farm removal is not barren but 2/3rd grass. Better suited. ------------------------------------------------------------------------ r6738 | peter1138 | 2006-10-11 18:57:02 +0000 (Wed, 11 Oct 2006) | 2 lines - Fix (r2441): Only apply the virtual transfer profit if the order is a transfer order, rather than to any unload order. This fixes an issue where the AI doesn't know that a route is unprofitable. ------------------------------------------------------------------------ r6737 | peter1138 | 2006-10-11 18:44:02 +0000 (Wed, 11 Oct 2006) | 2 lines - Codechange: Sort train engines by their NewGRF specified list position instead of plain EngineID. This brings us back the custom order that was lost when generalized sorting was introduced. ------------------------------------------------------------------------ r6736 | peter1138 | 2006-10-11 18:35:40 +0000 (Wed, 11 Oct 2006) | 2 lines - Add a function to get the list position of an engine ID, for use with sorting. This is basically a reversed version of GetRailVehAtPosition() ------------------------------------------------------------------------