------------------------------------------------------------------------ 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() ------------------------------------------------------------------------ r6735 | peter1138 | 2006-10-11 17:28:31 +0000 (Wed, 11 Oct 2006) | 2 lines - Codestyle: Just some tidying up... ------------------------------------------------------------------------ r6734 | miham | 2006-10-11 17:25:36 +0000 (Wed, 11 Oct 2006) | 5 lines WebTranslator2 update to 2006-10-11 19:25:04 catalan - 12 changed by arnaullv (12) estonian - 13 fixed by vermon (13) finnish - 179 fixed, 13 changed by kerba (192) ------------------------------------------------------------------------ r6733 | miham | 2006-10-11 09:16:05 +0000 (Wed, 11 Oct 2006) | 7 lines WebTranslator2 update to 2006-10-11 11:15:30 catalan - 17 changed by arnaullv (17) galician - 11 fixed, 7 changed by Condex (18) greek - 1 deleted, 1 changed by gonik (2) polish - 1 changed by meush (1) turkish - 6 fixed by jnmbk (6) ------------------------------------------------------------------------ r6730 | belugas | 2006-10-11 00:48:55 +0000 (Wed, 11 Oct 2006) | 1 line Fix: Make Build HQ and Relocate HQ buttons of Player window behave as normal placement buttons, and not as push buttons. ------------------------------------------------------------------------ r6729 | bjarni | 2006-10-10 20:11:48 +0000 (Tue, 10 Oct 2006) | 3 lines -Fix r6707: [build aircraft window] solved a crash when using a grf set with a buildable helicopter with a lower EngineID than the first buildable plane Also removed a lot of const cast as they mess up the code and didn't help much ------------------------------------------------------------------------ r6728 | bjarni | 2006-10-10 17:53:08 +0000 (Tue, 10 Oct 2006) | 1 line -Fix r6651: solved issue where moving rail vehicles in a depot could read from a NULL pointer ------------------------------------------------------------------------ r6727 | glx | 2006-10-10 17:19:21 +0000 (Tue, 10 Oct 2006) | 1 line -Fix r6619: don't disable inexistant widget ------------------------------------------------------------------------ r6726 | bjarni | 2006-10-10 15:46:03 +0000 (Tue, 10 Oct 2006) | 3 lines -Codechange: [vehicle build window] cleaned up the name sorter (mainly by peter1138) Now both names are checked against the cache (instead of just one of them) and we got rid of some global vars ------------------------------------------------------------------------ r6725 | bjarni | 2006-10-10 15:13:41 +0000 (Tue, 10 Oct 2006) | 1 line -Fix r6624: fixed some translated strings to apply to the added {STRING} in english.txt ------------------------------------------------------------------------ r6724 | glx | 2006-10-10 15:09:28 +0000 (Tue, 10 Oct 2006) | 1 line -Fix r6723: respect alphabetical order ------------------------------------------------------------------------ r6723 | glx | 2006-10-10 15:07:13 +0000 (Tue, 10 Oct 2006) | 1 line -Fix r6722: forgot openttd.vcproj ------------------------------------------------------------------------ r6722 | bjarni | 2006-10-10 15:02:38 +0000 (Tue, 10 Oct 2006) | 3 lines -Codechange: [aircraft build window] moved aircraft build window to a file of it's own Also made some changes to it so it should be easier to unify all the build vehicle windows ------------------------------------------------------------------------ r6721 | Darkvater | 2006-10-10 14:05:39 +0000 (Tue, 10 Oct 2006) | 1 line -Codechange: some comments, aligning, types and variable localization. ------------------------------------------------------------------------ r6720 | miham | 2006-10-10 12:18:46 +0000 (Tue, 10 Oct 2006) | 9 lines WebTranslator2 update to 2006-10-10 14:18:03 american - 9 fixed by WhiteRabbit (9) catalan - 3 changed by arnaullv (3) danish - 2 fixed, 67 changed by ThomasA (69) dutch - 1 fixed by habell (1) estonian - 27 fixed by t2t2 (27) galician - 11 fixed by Condex (11) spanish - 8 fixed, 2 changed by eusebio (10) ------------------------------------------------------------------------ r6719 | bjarni | 2006-10-10 10:11:41 +0000 (Tue, 10 Oct 2006) | 1 line -Code cleanup: [depot window] removed line that assigned 0 to a var, that's already 0 ------------------------------------------------------------------------ r6718 | bjarni | 2006-10-10 10:04:09 +0000 (Tue, 10 Oct 2006) | 4 lines -Codechange: added function to get the line height for a vehicle type -Fix r6513: [depot window] fixed incorrect line height for large ships -Fix r6513: [depot window] fixed incorrect resizing of the sell button ------------------------------------------------------------------------ r6717 | Darkvater | 2006-10-10 09:40:12 +0000 (Tue, 10 Oct 2006) | 1 line -Codechange: move OPENTTD_SPRITES_COUNT into table/sprites.h to use it from there. ------------------------------------------------------------------------ r6716 | bjarni | 2006-10-10 08:34:14 +0000 (Tue, 10 Oct 2006) | 2 lines -Code cleanup: [aircraft/train build windows] fixed a spelling mistake in the widget names (the game itself is unaffected by this) ------------------------------------------------------------------------ r6715 | bjarni | 2006-10-10 08:24:29 +0000 (Tue, 10 Oct 2006) | 3 lines -Fix r6714: roadvehicle and ship building windows are now also marked dirty when getting a WE_INVALIDATE_DATA event This will make the windows mark dirty again when a new vehicle is available or one is removed from the list (again) ------------------------------------------------------------------------ r6714 | bjarni | 2006-10-10 08:14:30 +0000 (Tue, 10 Oct 2006) | 4 lines -Codechange: replaced a direct manipulation of windows with InvalidateWindowData() in rail_cmd.c Moved the actual modification of railtype to WE_INVALIDATE_DATA in the train depot handler -Codechange: added SetWindowDirty() to WE_INVALIDATE_DATA as it made no sense to update the list without making the window dirty ------------------------------------------------------------------------ r6713 | miham | 2006-10-10 07:57:16 +0000 (Tue, 10 Oct 2006) | 9 lines WebTranslator2 update to 2006-10-10 09:56:34 catalan - 7 fixed by arnaullv (7) danish - 12 fixed by ThomasA (12) dutch - 8 fixed by webfreakz (8) hungarian - 9 fixed by miham (9) italian - 9 fixed by sidew (9) polish - 7 fixed by meush (7) swedish - 20 fixed by daishan (20) ------------------------------------------------------------------------ r6712 | bjarni | 2006-10-10 07:56:23 +0000 (Tue, 10 Oct 2006) | 1 line -Code cleanup: renamed buildtrain_d to buildvehicle_d as it's used for all vehicle types ------------------------------------------------------------------------ r6711 | miham | 2006-10-10 06:19:46 +0000 (Tue, 10 Oct 2006) | 10 lines WebTranslator2 update to 2006-10-10 08:19:02 catalan - 14 fixed by arnaullv (14) estonian - 45 fixed by vermon (45) french - 9 fixed, 9 changed by glx (18) galician - 3 fixed by Condex (3) german - 1 fixed by Neonox (1) polish - 1 fixed, 2 changed by meush (3) spanish - 1 fixed by eusebio (1) ukrainian - 26 fixed by znikoz (26) ------------------------------------------------------------------------ r6709 | bjarni | 2006-10-09 21:42:18 +0000 (Mon, 09 Oct 2006) | 3 lines -Fix r6679: [build train window] solved an issue that could lead to trailing empty blocks in the list array Since they were freed with the rest of the array, it only meant that we wasted a few bytes (max 16) while the window were open and we didn't leak memory ------------------------------------------------------------------------ r6708 | bjarni | 2006-10-09 21:30:16 +0000 (Mon, 09 Oct 2006) | 3 lines -Feature: [build aircraft window] added sort options to the list -Fix r6707: solved an issue where scrollcount was not always set correctly ------------------------------------------------------------------------ r6707 | bjarni | 2006-10-09 20:16:56 +0000 (Mon, 09 Oct 2006) | 4 lines -Feature: [build aircraft window] added buttons to view propeller planes, jet planes or helicopters -Codechange: the build aircraft window now generates 3 malleced lists and displays based on those list This is preparation for sorting aircraft ------------------------------------------------------------------------ r6699 | Darkvater | 2006-10-09 14:28:35 +0000 (Mon, 09 Oct 2006) | 1 line -Fixed translator link in readme ------------------------------------------------------------------------ r6698 | bjarni | 2006-10-08 22:16:30 +0000 (Sun, 08 Oct 2006) | 1 line -Code cleanup r6697: simplified getting the string of the vehicle type ------------------------------------------------------------------------ r6697 | bjarni | 2006-10-08 21:46:05 +0000 (Sun, 08 Oct 2006) | 4 lines -Fix: [order refit] if an order refit fails, the vehicle is now stopped and the player gets a message (like vehicle stopped in depot) This should prevent a vehicle from failing to be refitted and then show up and block a station with full load. In such a case, it's better to stop in a depot (that will not stop any other vehicles) and notify the owner ------------------------------------------------------------------------ r6696 | bjarni | 2006-10-08 21:10:00 +0000 (Sun, 08 Oct 2006) | 3 lines -Codechange: changed all comparision for refit cargo in orders against CT_NO_REFIT to checks for valid cargo IDs This should prevent any bugs made by mixing up CT_NO_REFIT and CT_INVALID ------------------------------------------------------------------------ r6695 | glx | 2006-10-08 21:00:13 +0000 (Sun, 08 Oct 2006) | 1 line -Fix FS#356: disable main toolbar buttons showing company list drop downs when there are no companies ------------------------------------------------------------------------ r6694 | bjarni | 2006-10-08 20:54:27 +0000 (Sun, 08 Oct 2006) | 5 lines -Fix: FS#361 Refit-to Order bug (only one of the two bugs mentioned there) -Now refit orders are copied when copying orders -Fixed an initilation issue where CT_INVALID was used instead of CT_NO_REFIT (resulted in crashes in the order window) -Fixed a compiler warning in the function to load TTD savegames ------------------------------------------------------------------------ r6693 | bjarni | 2006-10-08 19:50:10 +0000 (Sun, 08 Oct 2006) | 2 lines -Fix: [ship view window] disable the refit button when the ship is not refitable or not stopped in a depot ------------------------------------------------------------------------ r6692 | miham | 2006-10-08 19:43:35 +0000 (Sun, 08 Oct 2006) | 11 lines WebTranslator2 update to 2006-10-08 21:42:47 american - 12 fixed by WhiteRabbit (12) danish - 7 fixed by ThomasA (7) dutch - 12 fixed by webfreakz (8), habell (4) estonian - 13 fixed, 2 changed by vermon (15) french - 6 fixed by belugas (6) german - 6 fixed by Neonox (6) polish - 7 fixed, 10 changed by meush (17) slovak - 12 fixed, 2 changed by lengyel (14) spanish - 6 fixed by eusebio (6) ------------------------------------------------------------------------ r6691 | glx | 2006-10-08 19:31:01 +0000 (Sun, 08 Oct 2006) | 1 line -Fix r3907: check the transport type under the bridge when you want to get the road bits under a bridge (thanx hylje) ------------------------------------------------------------------------ r6690 | peter1138 | 2006-10-08 19:28:55 +0000 (Sun, 08 Oct 2006) | 2 lines - Fix (r6602): Translate global to per-climate cargo ids before... doing anything with them. (Thanks to MeusH for pointing this out...) ------------------------------------------------------------------------ r6689 | bjarni | 2006-10-08 17:56:08 +0000 (Sun, 08 Oct 2006) | 3 lines -Fix: corrected vehicle type in tooltip for the list in the refit window This was actually not a bug from unifying this window as it was incorrect even before they were merged ------------------------------------------------------------------------ r6688 | Darkvater | 2006-10-08 11:54:47 +0000 (Sun, 08 Oct 2006) | 1 line -Fix (r6297): Wrong caption for server password query window (eg put 'break' after switch statements) ------------------------------------------------------------------------ r6687 | miham | 2006-10-08 10:40:52 +0000 (Sun, 08 Oct 2006) | 9 lines WebTranslator2 update to 2006-10-08 12:40:12 brazilian_portuguese - 6 fixed by tucalipe (6) german - 6 fixed by chu (6) hungarian - 6 fixed by miham (6) icelandic - 2 changed by scrooge (2) italian - 12 fixed by sidew (12) norwegian - 7 fixed by jhsoby (7) spanish - 6 fixed by eusebio (6) ------------------------------------------------------------------------ r6686 | bjarni | 2006-10-08 08:47:07 +0000 (Sun, 08 Oct 2006) | 1 line -Fix r6684: Intro Date is now called Introduction Date ------------------------------------------------------------------------ r6685 | peter1138 | 2006-10-08 08:04:40 +0000 (Sun, 08 Oct 2006) | 2 lines -Fix (r6672): Hide the 'sell chain' panel instead of the horizontal scroll bar twice... ------------------------------------------------------------------------ r6684 | bjarni | 2006-10-07 22:58:25 +0000 (Sat, 07 Oct 2006) | 2 lines -Feature: [train build window] added sorting options for the engines ------------------------------------------------------------------------ r6683 | KUDr | 2006-10-07 20:31:38 +0000 (Sat, 07 Oct 2006) | 1 line -Fix: '<' signed unsigned mismatch produced by VC8 ------------------------------------------------------------------------