Darkvater [Tue, 19 Jul 2005 20:43:53 +0000] rev 2128
(svn r2638) - 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.
miham [Tue, 19 Jul 2005 16:34:46 +0000] rev 2127
(svn r2637) [Translations] Updated to 2005-07-18
ludde [Tue, 19 Jul 2005 11:55:47 +0000] rev 2126
(svn r2636) Fix: Switched to using the _fastcall calling convention instead of cdecl. (Please tell me if you get linking problems)
ludde [Tue, 19 Jul 2005 11:42:40 +0000] rev 2125
(svn r2635) 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.
tron [Tue, 19 Jul 2005 07:20:48 +0000] rev 2124
(svn r2634) Fix typo: IsSteepTile expects a tileh, not a TileIndex (thanks to peter1138)
tron [Tue, 19 Jul 2005 06:54:13 +0000] rev 2123
(svn r2633) Move spritecache related variable from variables.h to spritecache.[ch]
tron [Tue, 19 Jul 2005 06:48:12 +0000] rev 2122
(svn r2632) Revert accidently commited change
tron [Tue, 19 Jul 2005 06:47:07 +0000] rev 2121
(svn r2631) Move screenshot related variables from variables.h to screenshot.[ch]
tron [Tue, 19 Jul 2005 06:31:39 +0000] rev 2120
(svn r2630) Forgot one Pixel (see r2571)
truelight [Mon, 18 Jul 2005 23:33:14 +0000] rev 2119
(svn r2629) -Codechange: removed stupid comment on top of players.c
Darkvater [Mon, 18 Jul 2005 00:17:19 +0000] rev 2118
(svn r2628) - Fix: Planting trees does not result in a MapSize() assertion anymore; introduced in r2598
miham [Sun, 17 Jul 2005 22:20:04 +0000] rev 2117
(svn r2627) [Translations] Fixing typos in hungarian langfile
tron [Sun, 17 Jul 2005 20:14:58 +0000] rev 2116
(svn r2626) static, const, misc.
hackykid [Sun, 17 Jul 2005 20:09:02 +0000] rev 2115
(svn r2625) - 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.
Darkvater [Sun, 17 Jul 2005 19:38:40 +0000] rev 2114
(svn r2624) - Fix: oops, forgot to change the already in use DrawStringCenteredTruncated() functions.
Darkvater [Sun, 17 Jul 2005 19:23:18 +0000] rev 2113
(svn r2623) - 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.
ludde [Sun, 17 Jul 2005 18:49:05 +0000] rev 2112
(svn r2622) Fix: remove _cargoc.names_p, it was never used.
hackykid [Sun, 17 Jul 2005 18:48:45 +0000] rev 2111
(svn r2621) - Fix: [pbs] When removing tracks, clear their reserved status.
ludde [Sun, 17 Jul 2005 18:48:05 +0000] rev 2110
(svn r2620) Fix: [language] Fix broken french.txt and polish.txt
ludde [Sun, 17 Jul 2005 18:36:47 +0000] rev 2109
(svn r2619) Fix: [viewport] Fix potential buffer overflow reported by Tron
Darkvater [Sun, 17 Jul 2005 18:20:55 +0000] rev 2108
(svn r2618) - Fix: add mersenne.c to VS6 project file (ludde)
Darkvater [Sun, 17 Jul 2005 18:11:17 +0000] rev 2107
(svn r2617) - Fix: fix some warnings, and reenable vs.net2003 signed/unsigned warnings
tron [Sun, 17 Jul 2005 18:09:23 +0000] rev 2106
(svn r2616) Don't stop when compiling a language fails, just delete the defective .lng
miham [Sun, 17 Jul 2005 17:57:57 +0000] rev 2105
(svn r2615) [trrnasltwsds] 45253rqwer2
Darkvater [Sun, 17 Jul 2005 17:16:35 +0000] rev 2104
(svn r2614) - 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.
Darkvater [Sun, 17 Jul 2005 17:15:33 +0000] rev 2103
(svn r2613) - Truncate savegames, and vehicle-texts in their window.
- Hardcoded width 5 for saves-path...oops :O
truelight [Sun, 17 Jul 2005 16:22:27 +0000] rev 2102
(svn r2612) -Fix: corrected headers for ai_new.h
Darkvater [Sun, 17 Jul 2005 16:02:17 +0000] rev 2101
(svn r2611) - CodeChange: use standardized truncutation with the newsmessage-history window as well
Darkvater [Sun, 17 Jul 2005 16:01:26 +0000] rev 2100
(svn r2610) - 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
Darkvater [Sun, 17 Jul 2005 15:58:47 +0000] rev 2099
(svn r2609) - Feature: remove extension from savegames/scenarios when browsing the folders.
Darkvater [Sun, 17 Jul 2005 15:55:26 +0000] rev 2098
(svn r2608) - Fix: add strings.h to vs.net2003 project file
Darkvater [Sun, 17 Jul 2005 15:54:57 +0000] rev 2097
(svn r2607) - Feature: add support for truncating strings to a given (pixel) length. Function courtesy of Ludde.
truelight [Sun, 17 Jul 2005 15:34:10 +0000] rev 2096
(svn r2606) -Codechange: renamed ai.c to ai_old.c, and ai.h to ai_new.h to make room
for a global AI-handler
ludde [Sun, 17 Jul 2005 14:03:33 +0000] rev 2095
(svn r2605) Fix [languages] Add ##plural command in all langfiles.
ludde [Sun, 17 Jul 2005 13:46:42 +0000] rev 2094
(svn r2604) Fix: removed unused variable
ludde [Sun, 17 Jul 2005 13:45:43 +0000] rev 2093
(svn r2603) 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.
truelight [Sun, 17 Jul 2005 13:34:19 +0000] rev 2092
(svn r2602) -Codechange: removed unused variable (disable_computer)
-Fix: Changed some stuff to make server-side AIs possible in the far future
ludde [Sun, 17 Jul 2005 12:49:00 +0000] rev 2091
(svn r2601) Fix: Added TIC,TOC macros do be able to do profiling easier.
ludde [Sun, 17 Jul 2005 12:44:35 +0000] rev 2090
(svn r2600) Fix: [vehicles] Fix problem with vehicle loop not distributing the calls evenly over the day.
ludde [Sun, 17 Jul 2005 12:29:33 +0000] rev 2089
(svn r2599) 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.
tron [Sun, 17 Jul 2005 11:09:03 +0000] rev 2088
(svn r2598) Small cleanup, especially get rid of a FindLandscapeHeight(), because it was overkill
ludde [Sun, 17 Jul 2005 10:18:23 +0000] rev 2087
(svn r2597) 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.
tron [Sun, 17 Jul 2005 09:41:28 +0000] rev 2086
(svn r2596) Add macros ROL and ROR to ROtate values Left/Right. Also shorten the parameter names for GB and SB to increase readability
celestar [Sat, 16 Jul 2005 23:47:37 +0000] rev 2085
(svn r2595) -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
ludde [Sat, 16 Jul 2005 20:58:04 +0000] rev 2084
(svn r2594) 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.
miham [Sat, 16 Jul 2005 17:46:58 +0000] rev 2083
(svn r2593) [Translators] Updated translations to 20050716 (27 lang(s))
ludde [Sat, 16 Jul 2005 17:12:32 +0000] rev 2082
(svn r2592) 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.
ludde [Sat, 16 Jul 2005 15:05:52 +0000] rev 2081
(svn r2591) Codechange: [network] Cleanup NetworkHandleCommandQueue
ludde [Sat, 16 Jul 2005 14:29:36 +0000] rev 2080
(svn r2590) Fix: [network] Fixed NetworkHandleLocalQueue
ludde [Sat, 16 Jul 2005 12:59:23 +0000] rev 2079
(svn r2589) Fix: [network] Fixed static variable that wasn't initialized. Would stop the sync checking from working in some cases.
ludde [Sat, 16 Jul 2005 12:30:03 +0000] rev 2078
(svn r2588) Codechange: Remove PLAYER_SEED_RANDOM
Darkvater [Sat, 16 Jul 2005 09:55:31 +0000] rev 2077
(svn r2587) - Fix: Don't close the save-thread if it wasn't started because of some error or a network-server
Darkvater [Fri, 15 Jul 2005 21:31:09 +0000] rev 2076
(svn r2586) - Fix [Makefile]: add mersenne.c to VS.NET2003 project file
Darkvater [Fri, 15 Jul 2005 21:28:26 +0000] rev 2075
(svn r2585) - Fix [Makefile]: some small cleanups, remove warnings, and add mersenne to makefile (Luca)
Darkvater [Fri, 15 Jul 2005 21:17:38 +0000] rev 2074
(svn r2584) - Fix: Game no longer asserts when you use the remove-road tool on a town building or industry.
ludde [Fri, 15 Jul 2005 20:29:06 +0000] rev 2073
(svn r2583) 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
ludde [Fri, 15 Jul 2005 19:51:54 +0000] rev 2072
(svn r2582) 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.
ludde [Fri, 15 Jul 2005 18:43:39 +0000] rev 2071
(svn r2581) 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.
ludde [Fri, 15 Jul 2005 18:30:13 +0000] rev 2070
(svn r2580) 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.
ludde [Fri, 15 Jul 2005 17:59:55 +0000] rev 2069
(svn r2579) Change some strgen errors into warnings to prevent build from stopping.
miham [Fri, 15 Jul 2005 17:58:31 +0000] rev 2068
(svn r2578) translation fix
miham [Fri, 15 Jul 2005 17:45:54 +0000] rev 2067
(svn r2577) [Translators] Updated translations to 20050715 (26 lang(s))
celestar [Fri, 15 Jul 2005 16:50:39 +0000] rev 2066
(svn r2576) -Fix: Whitespace. Somehow a commit bypassed the pre-commit hook
ludde [Fri, 15 Jul 2005 16:29:30 +0000] rev 2065
(svn r2574) Fix: AnimatedTile leak in town_cmd.c (this one has probably been here since day 1)
ludde [Fri, 15 Jul 2005 15:09:52 +0000] rev 2064
(svn r2573) 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.
ludde [Fri, 15 Jul 2005 14:53:44 +0000] rev 2063
(svn r2572) - 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.
tron [Fri, 15 Jul 2005 14:16:14 +0000] rev 2062
(svn r2571) Add explicit type Pixel for ... Pixels
ludde [Fri, 15 Jul 2005 12:16:16 +0000] rev 2061
(svn r2570) Fix: Removed some code that had no effect.
tron [Fri, 15 Jul 2005 09:01:23 +0000] rev 2060
(svn r2569) Get rid of some dubious casts and thus warnings on 64bit machines
tron [Fri, 15 Jul 2005 07:48:17 +0000] rev 2059
(svn r2568) Small cleanup in strgen: static, bracing, ...
miham [Thu, 14 Jul 2005 17:45:02 +0000] rev 2058
(svn r2567) [Translators] Updated translations to 20050714 (2 lang(s))
tron [Thu, 14 Jul 2005 15:10:20 +0000] rev 2057
(svn r2566) Rename COMMA{8,16,32} to just COMMA, because it's the same anyway
ludde [Thu, 14 Jul 2005 09:53:52 +0000] rev 2056
(svn r2565) Fix: Remove GetParamInt8, GetParamInt16, GetParamUint16.. they are just confusing and just do the same thing as GetParamInt32
ludde [Thu, 14 Jul 2005 09:43:59 +0000] rev 2055
(svn r2564) 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.
tron [Thu, 14 Jul 2005 06:10:23 +0000] rev 2054
(svn r2563) -Fix: [1209084] Spaces in the path to the MIDI files caused the win32 MIDI player to fail
ludde [Wed, 13 Jul 2005 20:41:44 +0000] rev 2053
(svn r2562) Fix: Merged {NUMU16}, {INT32}. They do the same thing now.
ludde [Wed, 13 Jul 2005 20:35:52 +0000] rev 2052
(svn r2561) Fix: Remove {COMMA16} and {COMMA8}. Those are not needed anymore.
ludde [Wed, 13 Jul 2005 19:51:31 +0000] rev 2051
(svn r2560) 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.
ludde [Wed, 13 Jul 2005 18:46:51 +0000] rev 2050
(svn r2559) Cleaned up new saveload code for the map
tron [Wed, 13 Jul 2005 18:04:01 +0000] rev 2049
(svn r2558) 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.
celestar [Wed, 13 Jul 2005 09:51:01 +0000] rev 2048
(svn r2557) -Add: Added the AUTOBRIEF option to the Doxyfile
Darkvater [Tue, 12 Jul 2005 21:27:56 +0000] rev 2047
(svn r2556) -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 <file>'
tron [Tue, 12 Jul 2005 21:13:30 +0000] rev 2046
(svn r2555) Initialise since r2553 uninitialised variable and remove since r2553 unused array (ludde)
ludde [Tue, 12 Jul 2005 20:41:17 +0000] rev 2045
(svn r2554) - Fix: [pathfinding] Change to using some helper functions for checking the railtype.
ludde [Tue, 12 Jul 2005 20:28:19 +0000] rev 2044
(svn r2553) - 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.
ludde [Tue, 12 Jul 2005 19:57:41 +0000] rev 2043
(svn r2552) - Fix: [map] Fix so the code compiles correctly and doesn't crash on MSVC6 in optimization mode.
miham [Tue, 12 Jul 2005 19:51:58 +0000] rev 2042
(svn r2551) [Translations] Added slovenian language (~20% complete)
ludde [Tue, 12 Jul 2005 19:15:56 +0000] rev 2041
(svn r2550) raise 32767 limit of gamma values, and 16MB limit of RIFF chunks in saveload code.
miham [Tue, 12 Jul 2005 17:45:09 +0000] rev 2040
(svn r2549) [Translators] Updated translations to 20050712 (1 lang(s))
Darkvater [Tue, 12 Jul 2005 10:50:56 +0000] rev 2039
(svn r2548) -Fix: blinking 'lock' gfx in multiplayer games. Some pixels had special values that triggered palette-change
miham [Mon, 11 Jul 2005 17:45:26 +0000] rev 2038
(svn r2547) [Translators] Updated translations to 20050711 (3 lang(s))
tron [Mon, 11 Jul 2005 15:47:20 +0000] rev 2037
(svn r2546) Don't calculate a value which never gets used and simplify some calculations
celestar [Mon, 11 Jul 2005 09:12:41 +0000] rev 2036
(svn r2545) -Fix: Modified the Doxyfile so that it works on other computers (than mine) as well :)
celestar [Mon, 11 Jul 2005 09:00:49 +0000] rev 2035
(svn r2544) -Add: Added the Doxyfile to the trunk. run "doxygen" to generate html-based documentation on the source code on the fly (about 9MB in size currently).
documentation will be stored in docs/source/html/ (request by blathijs)
miham [Sun, 10 Jul 2005 17:46:07 +0000] rev 2034
(svn r2543) [Translators] Updated translations to 20050710 (2 lang(s))
truelight [Sun, 10 Jul 2005 14:57:43 +0000] rev 2033
(svn r2542) -Add: [GPMI] Added GPMI (http://sourceforge.net/projects/libgpmi/)
support to OpenTTD in preperation of AIScripts (long term). It is OFF
by default. Add GPMI:=1 to Makefile.config to enable.
celestar [Sun, 10 Jul 2005 01:25:17 +0000] rev 2032
(svn r2541) -Feature: Modified IsCompatibleRail so that an engine can move on more
than one railtype (like Diesel engines on electrified rail).
-Codechange: Use IsCompatibleRail where it should be used
miham [Sat, 09 Jul 2005 17:45:57 +0000] rev 2031
(svn r2540) [Translators] Updated translations to 20050709 (12 lang(s))
matthijs [Sat, 09 Jul 2005 13:45:21 +0000] rev 2030
(svn r2539) * Fix: Mixed up use of trackdirs and directions in GetTileRailType() causes NPF to not consider routes under bridges.
hackykid [Sat, 09 Jul 2005 11:39:35 +0000] rev 2029
(svn r2538) - Fix: Use IsCompatibleRailType() function instead of checking this yourself.
tron [Sat, 09 Jul 2005 09:24:34 +0000] rev 2028
(svn r2537) Small changes, especially use fprintf to stderr for warnings and errors instead of plain printf
Darkvater [Sat, 09 Jul 2005 00:14:40 +0000] rev 2027
(svn r2536) - Fix: [ 1215999 ] Segmentation fault in main menu - corrupted sample.cat. Flush the output buffer to print the error message before the game crashes. (mcmohr)
tron [Fri, 08 Jul 2005 22:25:24 +0000] rev 2026
(svn r2535) Tabs
tron [Fri, 08 Jul 2005 21:24:27 +0000] rev 2025
(svn r2534) Small cleanup
tron [Fri, 08 Jul 2005 19:46:41 +0000] rev 2024
(svn r2533) Move misplaced parenthesis, found by ludde
hackykid [Fri, 08 Jul 2005 19:02:26 +0000] rev 2023
(svn r2532) - Fix: Don't waste space using an int where a byte would suffice. (ludde)
miham [Fri, 08 Jul 2005 17:46:10 +0000] rev 2022
(svn r2531) [Translators] Updated translations to 20050708 (1 lang(s))
Darkvater [Fri, 08 Jul 2005 00:14:19 +0000] rev 2021
(svn r2530) - Fix: [ 1219829 ] Mouse-wheel crashes OTTD. Widget detection failed to detect the most-right and most-bottom pixels of a widget. If scrollwheel is used on a not-found widget (such as the background of the toolbar), it will now fail correctly (glx)
Darkvater [Thu, 07 Jul 2005 22:15:34 +0000] rev 2020
(svn r2529) - Fix: PBS signals showed up as normal signals with the query tool
- Update landscape_grid.html to show busy bits used by PBS.
Darkvater [Thu, 07 Jul 2005 22:14:37 +0000] rev 2019
(svn r2528) - Fix: TTDPatch games had garbage in _map3[hi]&0xF0 which interfered with OpenTTD PBS functionality; fixed in oldloader
- Fix: TTD AI internals are still a puzzle and the AI in state 'SellVehicle' doesn't have a valid vehicle, so change the state to something harmless. Both fixed make sure that Megarail TTD scenario works
Darkvater [Thu, 07 Jul 2005 15:21:55 +0000] rev 2018
(svn r2527) - Clarify map-description file. Bits are from left to right with the lowest bit on the left. Eg. 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 ... Is that clear?
hackykid [Wed, 06 Jul 2005 10:43:36 +0000] rev 2017
(svn r2525) - Fix: [pbs] Fix a mistake in the comments/docs.
Darkvater [Wed, 06 Jul 2005 10:41:56 +0000] rev 2016
(svn r2524) - Add pbs.[ch] to VS.NET2003 and VS6 project files.
tron [Wed, 06 Jul 2005 06:18:53 +0000] rev 2015
(svn r2523) Readd a comment which got lost in r2522
tron [Tue, 05 Jul 2005 19:54:35 +0000] rev 2014
(svn r2522) Reorganize sprite load and decompression in order to remove a special case from the sprite blitter, which decompressed certain sprites every time when blitting them
celestar [Tue, 05 Jul 2005 17:47:10 +0000] rev 2013
(svn r2521) -Codechange: Removed trailing "\n"s from DEBUG statements
miham [Tue, 05 Jul 2005 17:45:50 +0000] rev 2012
(svn r2520) [Translators] Updated translations to 20050705 (14 lang(s))
orudge [Tue, 05 Jul 2005 12:10:06 +0000] rev 2011
(svn r2519) - Fix: Update OS/2 project with pbs.c
tron [Tue, 05 Jul 2005 11:09:18 +0000] rev 2010
(svn r2518) Small cleanup
hackykid [Mon, 04 Jul 2005 15:25:06 +0000] rev 2009
(svn r2517) - Fix: [pbs] Detect end-of-lines properly regarding depots.