------------------------------------------------------------------------ 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. ------------------------------------------------------------------------ r2579 | ludde | 2005-07-15 17:59:55 +0000 (Fri, 15 Jul 2005) | 1 line Change some strgen errors into warnings to prevent build from stopping. ------------------------------------------------------------------------ r2578 | miham | 2005-07-15 17:58:31 +0000 (Fri, 15 Jul 2005) | 1 line translation fix ------------------------------------------------------------------------ r2577 | miham | 2005-07-15 17:45:54 +0000 (Fri, 15 Jul 2005) | 1 line [Translators] Updated translations to 20050715 (26 lang(s)) ------------------------------------------------------------------------ r2576 | celestar | 2005-07-15 16:50:39 +0000 (Fri, 15 Jul 2005) | 1 line -Fix: Whitespace. Somehow a commit bypassed the pre-commit hook ------------------------------------------------------------------------ r2574 | ludde | 2005-07-15 16:29:30 +0000 (Fri, 15 Jul 2005) | 1 line Fix: AnimatedTile leak in town_cmd.c (this one has probably been here since day 1) ------------------------------------------------------------------------ r2573 | ludde | 2005-07-15 15:09:52 +0000 (Fri, 15 Jul 2005) | 2 lines Codechange: Removed WDF_RESTORE_DPARAM, it's not needed with the new string system. Also fixed a bug introduced in r2564, forgot to remove 4 global variables in network_gui.c. ------------------------------------------------------------------------ r2572 | ludde | 2005-07-15 14:53:44 +0000 (Fri, 15 Jul 2005) | 4 lines - Codechange: [string] Changed string system so it's not as dependent on decode_parameters - Feature: [strgen] Allow changing the order of parameters in translated strings. - Use {1:TOWN} syntax to set the order. - Codechange: [strgen] Rewrote lots of strgen internals. ------------------------------------------------------------------------ r2571 | tron | 2005-07-15 14:16:14 +0000 (Fri, 15 Jul 2005) | 1 line Add explicit type Pixel for ... Pixels ------------------------------------------------------------------------ r2570 | ludde | 2005-07-15 12:16:16 +0000 (Fri, 15 Jul 2005) | 1 line Fix: Removed some code that had no effect. ------------------------------------------------------------------------ r2569 | tron | 2005-07-15 09:01:23 +0000 (Fri, 15 Jul 2005) | 1 line Get rid of some dubious casts and thus warnings on 64bit machines ------------------------------------------------------------------------ r2568 | tron | 2005-07-15 07:48:17 +0000 (Fri, 15 Jul 2005) | 1 line Small cleanup in strgen: static, bracing, ... ------------------------------------------------------------------------ r2567 | miham | 2005-07-14 17:45:02 +0000 (Thu, 14 Jul 2005) | 1 line [Translators] Updated translations to 20050714 (2 lang(s)) ------------------------------------------------------------------------ r2566 | tron | 2005-07-14 15:10:20 +0000 (Thu, 14 Jul 2005) | 1 line Rename COMMA{8,16,32} to just COMMA, because it's the same anyway ------------------------------------------------------------------------ r2565 | ludde | 2005-07-14 09:53:52 +0000 (Thu, 14 Jul 2005) | 1 line Fix: Remove GetParamInt8, GetParamInt16, GetParamUint16.. they are just confusing and just do the same thing as GetParamInt32 ------------------------------------------------------------------------ r2564 | ludde | 2005-07-14 09:43:59 +0000 (Thu, 14 Jul 2005) | 2 lines Fix: Fixed conceptual issue in network_gui.c. AllocateName is not meant to be used by GUI-code, because it modifies the "game-state". Added a way to bind a C-string to an openttd string which doesn't modify the game state. ------------------------------------------------------------------------ r2563 | tron | 2005-07-14 06:10:23 +0000 (Thu, 14 Jul 2005) | 1 line -Fix: [1209084] Spaces in the path to the MIDI files caused the win32 MIDI player to fail ------------------------------------------------------------------------ r2562 | ludde | 2005-07-13 20:41:44 +0000 (Wed, 13 Jul 2005) | 1 line Fix: Merged {NUMU16}, {INT32}. They do the same thing now. ------------------------------------------------------------------------ r2561 | ludde | 2005-07-13 20:35:52 +0000 (Wed, 13 Jul 2005) | 1 line Fix: Remove {COMMA16} and {COMMA8}. Those are not needed anymore. ------------------------------------------------------------------------ r2560 | ludde | 2005-07-13 19:51:31 +0000 (Wed, 13 Jul 2005) | 5 lines Fix: various minor code changes. Added RandomTile/RandomTileSeed functions to generate a random tile. Changed landscape routines so they don't assume that the Y map side is a power of two. (support for this is not complete, though) Changed some frequently used map macros to not compute the values each time. Silence some warnings on MSVC. ------------------------------------------------------------------------ r2559 | ludde | 2005-07-13 18:46:51 +0000 (Wed, 13 Jul 2005) | 1 line Cleaned up new saveload code for the map ------------------------------------------------------------------------ r2558 | tron | 2005-07-13 18:04:01 +0000 (Wed, 13 Jul 2005) | 1 line Change the internal map format from 7 arrays to one array of structs, this doesn't change the saved format for now. It's a stepping stone for further changes. ------------------------------------------------------------------------ r2557 | celestar | 2005-07-13 09:51:01 +0000 (Wed, 13 Jul 2005) | 1 line -Add: Added the AUTOBRIEF option to the Doxyfile ------------------------------------------------------------------------ r2556 | Darkvater | 2005-07-12 21:27:56 +0000 (Tue, 12 Jul 2005) | 1 line -Fix: update newline style of new files to native. Don't forget this when you add a new file! 'svn ps svn:eol-style native ' ------------------------------------------------------------------------ r2555 | tron | 2005-07-12 21:13:30 +0000 (Tue, 12 Jul 2005) | 1 line Initialise since r2553 uninitialised variable and remove since r2553 unused array (ludde) ------------------------------------------------------------------------ r2554 | ludde | 2005-07-12 20:41:17 +0000 (Tue, 12 Jul 2005) | 1 line - Fix: [pathfinding] Change to using some helper functions for checking the railtype. ------------------------------------------------------------------------ r2553 | ludde | 2005-07-12 20:28:19 +0000 (Tue, 12 Jul 2005) | 3 lines - Fix: [pathfinding] Remove old-old train pathfinder. Enhanced old pathfinder. - Penalties for red signals and for slopes. - Increased the search depth to work better with large train networks. ------------------------------------------------------------------------ r2552 | ludde | 2005-07-12 19:57:41 +0000 (Tue, 12 Jul 2005) | 1 line - Fix: [map] Fix so the code compiles correctly and doesn't crash on MSVC6 in optimization mode. ------------------------------------------------------------------------ r2551 | miham | 2005-07-12 19:51:58 +0000 (Tue, 12 Jul 2005) | 1 line [Translations] Added slovenian language (~20% complete) ------------------------------------------------------------------------ r2550 | ludde | 2005-07-12 19:15:56 +0000 (Tue, 12 Jul 2005) | 1 line raise 32767 limit of gamma values, and 16MB limit of RIFF chunks in saveload code. ------------------------------------------------------------------------