------------------------------------------------------------------------ r2681 | orudge | 2005-07-22 16:14:24 +0000 (Fri, 22 Jul 2005) | 1 line - Fix OS/2 port, please do not modify openttd.wpj/tgt by hand unless you know what you're doing! ------------------------------------------------------------------------ r2680 | tron | 2005-07-22 15:12:51 +0000 (Fri, 22 Jul 2005) | 1 line Fix a warning ------------------------------------------------------------------------ r2675 | Darkvater | 2005-07-22 09:16:34 +0000 (Fri, 22 Jul 2005) | 1 line - Fix: pressing enter on a load-window resulted in saving the game (Luca) ------------------------------------------------------------------------ r2674 | hackykid | 2005-07-22 08:40:19 +0000 (Fri, 22 Jul 2005) | 2 lines - CodeChange: [pbs] Generalise the PSBISPbsDepot function so it can check if an arbitrary junction is a pbs junction. Preparations for making pbs more safe. ------------------------------------------------------------------------ r2673 | tron | 2005-07-22 07:02:20 +0000 (Fri, 22 Jul 2005) | 1 line Include functions.h directly, not globally via openttd.h ------------------------------------------------------------------------ r2672 | tron | 2005-07-22 06:31:31 +0000 (Fri, 22 Jul 2005) | 1 line Move saving/loading related declarations to saveload.h ------------------------------------------------------------------------ r2671 | miham | 2005-07-21 22:22:26 +0000 (Thu, 21 Jul 2005) | 4 lines [Translations] Hand-fix polish.txt Translators beware! Please double check your language behaviour! Otherwise, WebTranslator now also checks paramnumber of the plural param, and refuses to accept badly formatted plural or gender params! ------------------------------------------------------------------------ r2670 | tron | 2005-07-21 22:18:02 +0000 (Thu, 21 Jul 2005) | 1 line Fix r2669 ------------------------------------------------------------------------ r2669 | tron | 2005-07-21 22:15:02 +0000 (Thu, 21 Jul 2005) | 1 line Shuffle some more stuff around to reduce dependencies ------------------------------------------------------------------------ r2668 | miham | 2005-07-21 21:13:42 +0000 (Thu, 21 Jul 2005) | 1 line [Translations] Updated to 2005-07-21 (4 langs) ------------------------------------------------------------------------ r2667 | miham | 2005-07-21 19:58:36 +0000 (Thu, 21 Jul 2005) | 1 line [Translations] Restored german translations (2652:2653) ------------------------------------------------------------------------ r2666 | tron | 2005-07-21 19:57:07 +0000 (Thu, 21 Jul 2005) | 1 line w32dm.c needs MAX_PATH, which gets defined in variables.h ------------------------------------------------------------------------ r2665 | tron | 2005-07-21 19:46:58 +0000 (Thu, 21 Jul 2005) | 1 line Move some variables, which are only used by music_gui.c, there ------------------------------------------------------------------------ r2664 | tron | 2005-07-21 19:36:43 +0000 (Thu, 21 Jul 2005) | 1 line Remove depedency on player.h from variables.h ------------------------------------------------------------------------ r2663 | tron | 2005-07-21 18:44:27 +0000 (Thu, 21 Jul 2005) | 1 line Include variables.h only in these files which need it, not globally via openttd.h ------------------------------------------------------------------------ r2662 | miham | 2005-07-21 18:01:43 +0000 (Thu, 21 Jul 2005) | 1 line [Translations] Updated translations to 2005-07-20 ------------------------------------------------------------------------ r2661 | miham | 2005-07-21 17:44:20 +0000 (Thu, 21 Jul 2005) | 1 line [Translators] Updated translations to 20050721 (1 lang(s)) ------------------------------------------------------------------------ r2660 | tron | 2005-07-21 06:31:02 +0000 (Thu, 21 Jul 2005) | 1 line Get rid of some more shifting/anding/casting ------------------------------------------------------------------------ r2659 | tron | 2005-07-21 06:13:17 +0000 (Thu, 21 Jul 2005) | 1 line Catch up with reality in the landscape documentation ------------------------------------------------------------------------ r2658 | celestar | 2005-07-20 22:05:13 +0000 (Wed, 20 Jul 2005) | 2 lines -Codechange: Use MAKE_TRANSPARENT to display a transparented sprite ------------------------------------------------------------------------ r2657 | celestar | 2005-07-20 22:02:58 +0000 (Wed, 20 Jul 2005) | 4 lines -Codechange: The available railtypes per player are now a bitmask, so that railtypes do not be in ascending order of appearance. Allows easier implementation or more railtypes ------------------------------------------------------------------------ r2656 | miham | 2005-07-20 19:15:23 +0000 (Wed, 20 Jul 2005) | 1 line [Translations] Revert changes done in 2653 ------------------------------------------------------------------------ r2655 | tron | 2005-07-20 19:12:30 +0000 (Wed, 20 Jul 2005) | 1 line An uint16 is an uint16, not a byte - fix wrong cast ------------------------------------------------------------------------ r2654 | tron | 2005-07-20 19:08:02 +0000 (Wed, 20 Jul 2005) | 1 line SlWriteUint16() should have a uint16 as parameter, not some arbitrary enum ------------------------------------------------------------------------ r2653 | miham | 2005-07-20 17:48:35 +0000 (Wed, 20 Jul 2005) | 1 line [Translators] Updated translations to 20050720 (28 lang(s)) ------------------------------------------------------------------------ r2652 | Darkvater | 2005-07-20 15:38:11 +0000 (Wed, 20 Jul 2005) | 1 line - CodeChange: show 'too many sprites' in hex value; Patch signed off by Tron ------------------------------------------------------------------------ r2651 | Darkvater | 2005-07-20 15:36:22 +0000 (Wed, 20 Jul 2005) | 1 line - Fix: [ 1220776 ] Removes warning when compiling saveload.c on some GCC versions (glx). This only works as long as there is only 1 saving thread active, as is the case now. ------------------------------------------------------------------------ r2650 | tron | 2005-07-20 15:29:28 +0000 (Wed, 20 Jul 2005) | 1 line Convert many explicit shifts+ands to extract bits to invocations of GB - should be a bit nicer to read ------------------------------------------------------------------------ r2649 | ludde | 2005-07-20 09:49:04 +0000 (Wed, 20 Jul 2005) | 1 line Get rid of 2 warnings. ------------------------------------------------------------------------ r2648 | ludde | 2005-07-20 09:35:05 +0000 (Wed, 20 Jul 2005) | 1 line Only use _stdcall calling convention for zlib on win32/msvc. ------------------------------------------------------------------------ r2647 | ludde | 2005-07-20 09:31:46 +0000 (Wed, 20 Jul 2005) | 1 line Fix: [ntp] Fix assertion error introduced in r2635 ------------------------------------------------------------------------ r2646 | ludde | 2005-07-20 09:17:20 +0000 (Wed, 20 Jul 2005) | 1 line Change: [ntp] Fix uninitialized variable and add some more asserts to be able to debug an assert error. ------------------------------------------------------------------------ r2645 | Darkvater | 2005-07-19 22:29:35 +0000 (Tue, 19 Jul 2005) | 1 line Fix (useless)warning in graph_gui and add brackets around HASBIT in an if statement ------------------------------------------------------------------------ r2644 | Darkvater | 2005-07-19 22:12:04 +0000 (Tue, 19 Jul 2005) | 2 lines - Fix: my name was mistyped ;p - Add DoDrawStringCentered() and change the multiline strings in the about box to single-line ones ------------------------------------------------------------------------ r2643 | tron | 2005-07-19 21:49:35 +0000 (Tue, 19 Jul 2005) | 1 line Get rid of some unnecessary casts ------------------------------------------------------------------------ r2642 | miham | 2005-07-19 21:28:15 +0000 (Tue, 19 Jul 2005) | 1 line [Translators] Updated translations to 20050719 (0 lang(s)) ------------------------------------------------------------------------ r2641 | ludde | 2005-07-19 21:14:00 +0000 (Tue, 19 Jul 2005) | 1 line Fix: [strings] forgot to increase argv pointer twice for {CARGO} ------------------------------------------------------------------------ r2640 | Darkvater | 2005-07-19 20:52:15 +0000 (Tue, 19 Jul 2005) | 1 line - CodeChange: change calling convention to __fastcall as well for vs.net2003 as it was done for vs6. Debug/Release works fine for me, if there are probs let me (+ludde) know. ------------------------------------------------------------------------ r2639 | celestar | 2005-07-19 20:45:47 +0000 (Tue, 19 Jul 2005) | 1 line -Add: Added the vehicle names in table/engines.h so that you know what line represents what vehicle (I hope I didn't mess that up). Added some comments while I'm at it and include the table/ directory in the Doxygen generation ------------------------------------------------------------------------ r2638 | Darkvater | 2005-07-19 20:43:53 +0000 (Tue, 19 Jul 2005) | 1 line - Fix: Unable to delete savegames. Deleting TTDLX savegames is still broken as it was always broken, but since they don't even show up; we might as well call it a feature. ------------------------------------------------------------------------ r2637 | miham | 2005-07-19 16:34:46 +0000 (Tue, 19 Jul 2005) | 1 line [Translations] Updated to 2005-07-18 ------------------------------------------------------------------------ r2636 | ludde | 2005-07-19 11:55:47 +0000 (Tue, 19 Jul 2005) | 1 line Fix: Switched to using the _fastcall calling convention instead of cdecl. (Please tell me if you get linking problems) ------------------------------------------------------------------------ r2635 | ludde | 2005-07-19 11:42:40 +0000 (Tue, 19 Jul 2005) | 6 lines Fix: [ntp/misc] Improve the old pathfinder. Changed it to A* instead of Dijkstra. - Benchmark shows that NTP is now around 10x faster than NPF. - Made IsTunnelTile macro to determine if a tile is a tunnel. - Added some useful debugging functions for making tiles red / getting accurate timestamps. - Remove old depot finding algorithm. - Disable warning for signed/unsigned comparisons. ------------------------------------------------------------------------ r2634 | tron | 2005-07-19 07:20:48 +0000 (Tue, 19 Jul 2005) | 1 line Fix typo: IsSteepTile expects a tileh, not a TileIndex (thanks to peter1138) ------------------------------------------------------------------------ r2633 | tron | 2005-07-19 06:54:13 +0000 (Tue, 19 Jul 2005) | 1 line Move spritecache related variable from variables.h to spritecache.[ch] ------------------------------------------------------------------------ r2632 | tron | 2005-07-19 06:48:12 +0000 (Tue, 19 Jul 2005) | 1 line Revert accidently commited change ------------------------------------------------------------------------ r2631 | tron | 2005-07-19 06:47:07 +0000 (Tue, 19 Jul 2005) | 1 line Move screenshot related variables from variables.h to screenshot.[ch] ------------------------------------------------------------------------ r2630 | tron | 2005-07-19 06:31:39 +0000 (Tue, 19 Jul 2005) | 1 line Forgot one Pixel (see r2571) ------------------------------------------------------------------------ r2629 | truelight | 2005-07-18 23:33:14 +0000 (Mon, 18 Jul 2005) | 2 lines -Codechange: removed stupid comment on top of players.c ------------------------------------------------------------------------ r2628 | Darkvater | 2005-07-18 00:17:19 +0000 (Mon, 18 Jul 2005) | 1 line - Fix: Planting trees does not result in a MapSize() assertion anymore; introduced in r2598 ------------------------------------------------------------------------ r2627 | miham | 2005-07-17 22:20:04 +0000 (Sun, 17 Jul 2005) | 1 line [Translations] Fixing typos in hungarian langfile ------------------------------------------------------------------------ r2626 | tron | 2005-07-17 20:14:58 +0000 (Sun, 17 Jul 2005) | 1 line static, const, misc. ------------------------------------------------------------------------ r2625 | hackykid | 2005-07-17 20:09:02 +0000 (Sun, 17 Jul 2005) | 4 lines - Fix: [pbs] Store the end of a train's reserved path explicitly. Prevents trains from unreserving eachothers paths in some cases. - CodeChange: Use the TrackdirToTrack function instead of &7, and remove an unneeded variable. ------------------------------------------------------------------------ r2624 | Darkvater | 2005-07-17 19:38:40 +0000 (Sun, 17 Jul 2005) | 1 line - Fix: oops, forgot to change the already in use DrawStringCenteredTruncated() functions. ------------------------------------------------------------------------ r2623 | Darkvater | 2005-07-17 19:23:18 +0000 (Sun, 17 Jul 2005) | 2 lines - CodeChange: rework DrawStringCenteredTruncated() a bit. Instead of giving center + width you give the coordinates of the bounding box (left, right) it has to fit in (ludde) - CodeChange: changed (back) maximum pixel length of truncated strings to a signed integer. ------------------------------------------------------------------------ r2622 | ludde | 2005-07-17 18:49:05 +0000 (Sun, 17 Jul 2005) | 1 line Fix: remove _cargoc.names_p, it was never used. ------------------------------------------------------------------------ r2621 | hackykid | 2005-07-17 18:48:45 +0000 (Sun, 17 Jul 2005) | 2 lines - Fix: [pbs] When removing tracks, clear their reserved status. ------------------------------------------------------------------------ r2620 | ludde | 2005-07-17 18:48:05 +0000 (Sun, 17 Jul 2005) | 1 line Fix: [language] Fix broken french.txt and polish.txt ------------------------------------------------------------------------ r2619 | ludde | 2005-07-17 18:36:47 +0000 (Sun, 17 Jul 2005) | 1 line Fix: [viewport] Fix potential buffer overflow reported by Tron ------------------------------------------------------------------------ r2618 | Darkvater | 2005-07-17 18:20:55 +0000 (Sun, 17 Jul 2005) | 1 line - Fix: add mersenne.c to VS6 project file (ludde) ------------------------------------------------------------------------ r2617 | Darkvater | 2005-07-17 18:11:17 +0000 (Sun, 17 Jul 2005) | 1 line - Fix: fix some warnings, and reenable vs.net2003 signed/unsigned warnings ------------------------------------------------------------------------ r2616 | tron | 2005-07-17 18:09:23 +0000 (Sun, 17 Jul 2005) | 1 line Don't stop when compiling a language fails, just delete the defective .lng ------------------------------------------------------------------------ r2615 | miham | 2005-07-17 17:57:57 +0000 (Sun, 17 Jul 2005) | 1 line [trrnasltwsds] 45253rqwer2 ------------------------------------------------------------------------ r2614 | Darkvater | 2005-07-17 17:16:35 +0000 (Sun, 17 Jul 2005) | 1 line - Fix: Trunctuate function used one less character than it was supposed to. Because of this real width and reported width didn't correspond with eachother. ------------------------------------------------------------------------ r2613 | Darkvater | 2005-07-17 17:15:33 +0000 (Sun, 17 Jul 2005) | 2 lines - Truncate savegames, and vehicle-texts in their window. - Hardcoded width 5 for saves-path...oops :O ------------------------------------------------------------------------ r2612 | truelight | 2005-07-17 16:22:27 +0000 (Sun, 17 Jul 2005) | 2 lines -Fix: corrected headers for ai_new.h ------------------------------------------------------------------------ r2611 | Darkvater | 2005-07-17 16:02:17 +0000 (Sun, 17 Jul 2005) | 1 line - CodeChange: use standardized truncutation with the newsmessage-history window as well ------------------------------------------------------------------------ r2610 | Darkvater | 2005-07-17 16:01:26 +0000 (Sun, 17 Jul 2005) | 2 lines - Feature: set server map name to the loaded name of the game/scenario. Also truncate where neccessary - Feature: truncate the path of the saveload window ------------------------------------------------------------------------ r2609 | Darkvater | 2005-07-17 15:58:47 +0000 (Sun, 17 Jul 2005) | 1 line - Feature: remove extension from savegames/scenarios when browsing the folders. ------------------------------------------------------------------------ r2608 | Darkvater | 2005-07-17 15:55:26 +0000 (Sun, 17 Jul 2005) | 1 line - Fix: add strings.h to vs.net2003 project file ------------------------------------------------------------------------ r2607 | Darkvater | 2005-07-17 15:54:57 +0000 (Sun, 17 Jul 2005) | 1 line - Feature: add support for truncating strings to a given (pixel) length. Function courtesy of Ludde. ------------------------------------------------------------------------ r2606 | truelight | 2005-07-17 15:34:10 +0000 (Sun, 17 Jul 2005) | 3 lines -Codechange: renamed ai.c to ai_old.c, and ai.h to ai_new.h to make room for a global AI-handler ------------------------------------------------------------------------ r2605 | ludde | 2005-07-17 14:03:33 +0000 (Sun, 17 Jul 2005) | 1 line Fix [languages] Add ##plural command in all langfiles. ------------------------------------------------------------------------ r2604 | ludde | 2005-07-17 13:46:42 +0000 (Sun, 17 Jul 2005) | 1 line Fix: removed unused variable ------------------------------------------------------------------------ r2603 | ludde | 2005-07-17 13:45:43 +0000 (Sun, 17 Jul 2005) | 1 line Fix [multistop] Fix problem with multistop handling, the range in my fix was way too high. Also only lock a slot for 5 days instead of 30. ------------------------------------------------------------------------ r2602 | truelight | 2005-07-17 13:34:19 +0000 (Sun, 17 Jul 2005) | 3 lines -Codechange: removed unused variable (disable_computer) -Fix: Changed some stuff to make server-side AIs possible in the far future ------------------------------------------------------------------------ r2601 | ludde | 2005-07-17 12:49:00 +0000 (Sun, 17 Jul 2005) | 1 line Fix: Added TIC,TOC macros do be able to do profiling easier. ------------------------------------------------------------------------ r2600 | ludde | 2005-07-17 12:44:35 +0000 (Sun, 17 Jul 2005) | 1 line Fix: [vehicles] Fix problem with vehicle loop not distributing the calls evenly over the day. ------------------------------------------------------------------------ r2599 | ludde | 2005-07-17 12:29:33 +0000 (Sun, 17 Jul 2005) | 3 lines Fix: Road vehicle multistop handling used NPF even if NPF was off???? - Also simplified/optimized the code. - Now it uses manhattan distance as an approximation instead of actual distance to find the distance. Much faster. ------------------------------------------------------------------------ r2598 | tron | 2005-07-17 11:09:03 +0000 (Sun, 17 Jul 2005) | 1 line Small cleanup, especially get rid of a FindLandscapeHeight(), because it was overkill ------------------------------------------------------------------------ r2597 | ludde | 2005-07-17 10:18:23 +0000 (Sun, 17 Jul 2005) | 8 lines Feature: [string system] Support cases. - Cases are used to change a string, such as Coal Mine, depending on the surrounding context. - Cases are defined like "STR_4802_COAL_MINE.ack :Coala Mina" - All cases need to be listed on the top of the file like this "##case ack" - When using the string, type {STRING.ack} to choose the "ack" version of Coal mine. - Also combined the strgen arrays into a struct, and fixed a bug with SetXY. ------------------------------------------------------------------------ r2596 | tron | 2005-07-17 09:41:28 +0000 (Sun, 17 Jul 2005) | 1 line Add macros ROL and ROR to ROtate values Left/Right. Also shorten the parameter names for GB and SB to increase readability ------------------------------------------------------------------------ r2595 | celestar | 2005-07-16 23:47:37 +0000 (Sat, 16 Jul 2005) | 6 lines -Codechange: Introduced "IsSteepTileh" to find whether a tile is steep (i.e. spans two height levels) and use it throughout the code. -Codechange: Add CanBuildDepotByTileh to find if a tile is suitable to build a depot on it. Wraps some bitmagic which seems quite unreadable at first glance ------------------------------------------------------------------------ r2594 | ludde | 2005-07-16 20:58:04 +0000 (Sat, 16 Jul 2005) | 5 lines Fix: [strgen] Misc updates to the string system. - Renamed the plural command to "P" instead of "PLURAL". Now write something like this to append an s on plural: {P "" s}. (You can optionally still add an argument index to explicitly specifiy which number that's used) - Removed the pluralized cargo strings from the string files. The new method is to use the plural specifier {P} - Added support for genders. First add "##gender der das die" on top, then use {G=der} on a cargoname/industry to set the gender, and to switch between genders do something like {G neu neu neue} {STRING} - Updated the swedish/english translation with P strings. ------------------------------------------------------------------------ r2593 | miham | 2005-07-16 17:46:58 +0000 (Sat, 16 Jul 2005) | 1 line [Translators] Updated translations to 20050716 (27 lang(s)) ------------------------------------------------------------------------ r2592 | ludde | 2005-07-16 17:12:32 +0000 (Sat, 16 Jul 2005) | 4 lines Feature: [strgen] New way to specify plural forms. - {NUM} {PLURAL 0 car cars}: Prints either car or cars depending on if the argument 0 is plural. Also supports languages with weird plural forms such as Polish. The plural format needs to be specified in the beginning of the langfile, like "##plural 7" for Polish. ------------------------------------------------------------------------ r2591 | ludde | 2005-07-16 15:05:52 +0000 (Sat, 16 Jul 2005) | 1 line Codechange: [network] Cleanup NetworkHandleCommandQueue ------------------------------------------------------------------------ r2590 | ludde | 2005-07-16 14:29:36 +0000 (Sat, 16 Jul 2005) | 1 line Fix: [network] Fixed NetworkHandleLocalQueue ------------------------------------------------------------------------ r2589 | ludde | 2005-07-16 12:59:23 +0000 (Sat, 16 Jul 2005) | 1 line Fix: [network] Fixed static variable that wasn't initialized. Would stop the sync checking from working in some cases. ------------------------------------------------------------------------ r2588 | ludde | 2005-07-16 12:30:03 +0000 (Sat, 16 Jul 2005) | 1 line Codechange: Remove PLAYER_SEED_RANDOM ------------------------------------------------------------------------ r2587 | Darkvater | 2005-07-16 09:55:31 +0000 (Sat, 16 Jul 2005) | 1 line - Fix: Don't close the save-thread if it wasn't started because of some error or a network-server ------------------------------------------------------------------------ r2586 | Darkvater | 2005-07-15 21:31:09 +0000 (Fri, 15 Jul 2005) | 1 line - Fix [Makefile]: add mersenne.c to VS.NET2003 project file ------------------------------------------------------------------------ r2585 | Darkvater | 2005-07-15 21:28:26 +0000 (Fri, 15 Jul 2005) | 1 line - Fix [Makefile]: some small cleanups, remove warnings, and add mersenne to makefile (Luca) ------------------------------------------------------------------------ r2584 | Darkvater | 2005-07-15 21:17:38 +0000 (Fri, 15 Jul 2005) | 1 line - Fix: Game no longer asserts when you use the remove-road tool on a town building or industry. ------------------------------------------------------------------------ r2583 | ludde | 2005-07-15 20:29:06 +0000 (Fri, 15 Jul 2005) | 3 lines Move OS specific code out of misc.c Added support for Mersenne Twister random number generator (not implemented in network yet) Wrap player randoms around #ifdef ------------------------------------------------------------------------ r2582 | ludde | 2005-07-15 19:51:54 +0000 (Fri, 15 Jul 2005) | 1 line Fix: Prevent generating unrealistically many Oil refineries on large maps. They are always placed next to the borderline, so the perimeter is used instead of area to scale the number of those industries. ------------------------------------------------------------------------ r2581 | ludde | 2005-07-15 18:43:39 +0000 (Fri, 15 Jul 2005) | 2 lines Fix: Behave a bit safer if central server sends bogus information about clients. Change: Made code a little bit more readable by putting _selected_item in a local var with a shorter name. ------------------------------------------------------------------------ r2580 | ludde | 2005-07-15 18:30:13 +0000 (Fri, 15 Jul 2005) | 3 lines Change: Added {INDUSTRY} command for printing industry names instead of the old {TOWN} {STRING} way. - The formatting of the industry name can be controlled with the string STR_INDUSTRY_FORMAT. Change: Changed several occurences of {STRING1} into {TOWN} to get rid of townnametype being used directly. ------------------------------------------------------------------------