------------------------------------------------------------------------ r2189 | tron | 2005-04-12 10:31:26 +0000 (Tue, 12 Apr 2005) | 3 lines Introduce and use IsCompatibleTrainStationTile() This should prevent trains, which are longer than the station, to turn around without stopping under certain circumstances and fix speed limit for trains entering a station, when realistic accerlation is used ------------------------------------------------------------------------ r2188 | tron | 2005-04-12 09:21:04 +0000 (Tue, 12 Apr 2005) | 1 line Revert r2185, because trains always accerlated (Requested by Celestar) ------------------------------------------------------------------------ r2187 | tron | 2005-04-12 09:17:51 +0000 (Tue, 12 Apr 2005) | 1 line Implement a slightly better workaround than r1588 did. (Joint effort with Celestar) ------------------------------------------------------------------------ r2186 | miham | 2005-04-12 07:29:37 +0000 (Tue, 12 Apr 2005) | 1 line [Translations] Refreshed translations (20 strs/3 langs) ------------------------------------------------------------------------ r2185 | celestar | 2005-04-11 21:10:47 +0000 (Mon, 11 Apr 2005) | 1 line -Fix: Made sure that the realistic acceleration does not freeze trains anymore ------------------------------------------------------------------------ r2184 | Darkvater | 2005-04-11 20:54:25 +0000 (Mon, 11 Apr 2005) | 1 line - CodeChange: remove the copy of ClearSlot(), which is now also called for CmdSkipOrder(). This also fixes the involuntary crash introduced 2 revisions ago ------------------------------------------------------------------------ r2183 | matthijs | 2005-04-11 20:19:41 +0000 (Mon, 11 Apr 2005) | 2 lines - Fix: Removed brackets from around STRAIGHT_TRACK_LENGTH, they caused preliminary rounding... ------------------------------------------------------------------------ r2182 | matthijs | 2005-04-11 19:53:44 +0000 (Mon, 11 Apr 2005) | 3 lines - Add: [NPF] There is now a debug class for NPF. Use -d npf to enable debugging printouts from npf. - Codechange: [NPF] Removed NPF_MARKROUTE macro, to mark routes just specify a npf debugging level >= 1 on the commandline. ------------------------------------------------------------------------ r2181 | matthijs | 2005-04-11 19:14:48 +0000 (Mon, 11 Apr 2005) | 5 lines - Add: DistanceTrack() to calculate the distance over optimally laid out tracks. - Codechange: [NPF] Removed unused heuristic function NPFCalcTileHeuristic(). - Codechange: [NPF] Use DistanceTrack() instead of DistanceManhattan() for ship and train heuristic. - Codechange: Renamed variables x and y to dx and dy in some of the distance calculation functions. ------------------------------------------------------------------------ r2180 | celestar | 2005-04-11 14:59:06 +0000 (Mon, 11 Apr 2005) | 1 line -Fix: Deceleration code now only takes into account rail station tiles for computing the remaining distance ------------------------------------------------------------------------ r2179 | matthijs | 2005-04-11 12:08:09 +0000 (Mon, 11 Apr 2005) | 2 lines - Fix: [ 1121437, 1114228 ] Vehicles not entering depots for auto servicing. ------------------------------------------------------------------------ r2178 | Darkvater | 2005-04-10 21:54:29 +0000 (Sun, 10 Apr 2005) | 1 line Postprevcommitaddendum: add debug.h if you use DEBUG() ------------------------------------------------------------------------ r2177 | Darkvater | 2005-04-10 21:51:11 +0000 (Sun, 10 Apr 2005) | 1 line - Fix: Fix a slot desync with setting the invalid slot to the correct value ------------------------------------------------------------------------ r2176 | tron | 2005-04-10 20:48:43 +0000 (Sun, 10 Apr 2005) | 7 lines Revise CheckOprhanedSlot(): - Don't assert the vehicle type, as it can be anything - Don't touch the slot information of the vehicle, because it's possible that it is not a road vehicle anymore and even if it is, it has nothing to to with that slot - Trim the debug printout, because the information about the vehicle is arbitrary (Joint effort with Darkvater) ------------------------------------------------------------------------ r2175 | miham | 2005-04-10 18:02:48 +0000 (Sun, 10 Apr 2005) | 1 line [Translations] Updated translations (11 strs/3 langs) ------------------------------------------------------------------------ r2174 | miham | 2005-04-09 22:42:12 +0000 (Sat, 09 Apr 2005) | 1 line [Translations] Updated translations (7 strs/2 langs) ------------------------------------------------------------------------ r2173 | celestar | 2005-04-09 06:20:03 +0000 (Sat, 09 Apr 2005) | 1 line -Fix: [ 1179380 ] Rail now builds on reserved land. Cause by the problem that CMD_ERROR is just the highest bit of the return value, but CMD_CLEAR_LANDSCAPE returns a negative value for owned land. So the highest bit is set as well. Note to self: Finish Command Patch ------------------------------------------------------------------------ r2172 | miham | 2005-04-09 06:19:08 +0000 (Sat, 09 Apr 2005) | 1 line [Translations] Translations from the last two days (37 strs/11 langs) ------------------------------------------------------------------------ r2171 | miham | 2005-04-09 06:15:16 +0000 (Sat, 09 Apr 2005) | 1 line [Translations] Manually fixed string-order in english.txt (someone fscked it up!) ------------------------------------------------------------------------ r2170 | bjarni | 2005-04-08 23:46:18 +0000 (Fri, 08 Apr 2005) | 2 lines -fix: [1179457] the industry list can now no longer scroll down then the end of the list is reached (Hackykid) ------------------------------------------------------------------------ r2169 | celestar | 2005-04-08 22:50:22 +0000 (Fri, 08 Apr 2005) | 1 line -Fix: Doing the slot clearing also for crashed road vehicles (c.f. previous commit) ------------------------------------------------------------------------ r2168 | Darkvater | 2005-04-08 22:44:06 +0000 (Fri, 08 Apr 2005) | 1 line - Fix: Various stages of invisible trains, and wrong v->u.rail.track combinations. When a vehicle was sold its (possibly) assigned road slot for multislot was not cleared, thus resulting in a bug confusion. This should fix [ 1178520 ] Assertion failure in ai.c (invalid v->u.rail.track). With big thanks to TrueLight for the demo-recording patch, BJH for the wonderful savegame, Hackykid for his brilliant suggestions of the problem and Celestar for... ehm, making it all possible ;p ------------------------------------------------------------------------ r2167 | bjarni | 2005-04-08 15:40:44 +0000 (Fri, 08 Apr 2005) | 3 lines -fix: [autoreplace] trains now get the default cargo type if the engine replaced from did not have cargo capacity (instead of refitting to passengers) ------------------------------------------------------------------------ r2166 | matthijs | 2005-04-07 19:33:32 +0000 (Thu, 07 Apr 2005) | 2 lines Fixed two warnings in the last commit. ------------------------------------------------------------------------ r2165 | matthijs | 2005-04-07 19:19:16 +0000 (Thu, 07 Apr 2005) | 4 lines - Codechange: [NPF] Properly enummed NPF hash size, it is easily changable now. - Codechange: [NPF] Improved the NPF hash calculation slightly. - Codechange: [NPF] Increased hash size, should speed up somewhat. ------------------------------------------------------------------------ r2164 | Darkvater | 2005-04-07 10:50:55 +0000 (Thu, 07 Apr 2005) | 1 line - Language: [ 1173684 ] fix some wrong french translations (glx) ------------------------------------------------------------------------ r2163 | Darkvater | 2005-04-07 01:18:50 +0000 (Thu, 07 Apr 2005) | 1 line - SVN: Set ignore on grfcodec for when you decode/encode grf files there ------------------------------------------------------------------------ r2162 | Darkvater | 2005-04-07 01:02:15 +0000 (Thu, 07 Apr 2005) | 1 line - Fix: Tooltips of horizontal scrollbars were wrong; they now say left/right instead of up/down ------------------------------------------------------------------------ r2161 | Darkvater | 2005-04-07 00:59:54 +0000 (Thu, 07 Apr 2005) | 4 lines - Fix: When resizing a window, the button is also visibly depressed - CodeChange: Use images as arrows in the scenario-date scroller, looks better - Feature: Clicked buttons with images/text now visibly depress their contents when pressed (eg it really seems like the button is moving) - Fix: Fix sprite offsets of the arrow sprites in openttd.grf ------------------------------------------------------------------------ r2160 | Darkvater | 2005-04-06 21:12:28 +0000 (Wed, 06 Apr 2005) | 1 line - Fix (Regression): Convert rail failed to work; stupid bitshifts :P (sorry) ------------------------------------------------------------------------ r2159 | matthijs | 2005-04-06 21:03:24 +0000 (Wed, 06 Apr 2005) | 3 lines - Fix: [NPF] Road vehicles never found their target station or depots (introduced in r2154) - Fix: [NPF] Trains still tried to go through the back of depots. ------------------------------------------------------------------------ r2158 | miham | 2005-04-06 20:20:31 +0000 (Wed, 06 Apr 2005) | 1 line [Translations] Updated translations (72 strs/2 langs) ------------------------------------------------------------------------ r2157 | Darkvater | 2005-04-06 18:44:34 +0000 (Wed, 06 Apr 2005) | 2 lines - Feature (request): [ 1166978 ] Focus keyboard on input-box in Multiplayer Menu - Feature: If the to be started server is using a password, draw a red '*' after the set password button to remind the user. ------------------------------------------------------------------------ r2156 | truelight | 2005-04-06 15:39:18 +0000 (Wed, 06 Apr 2005) | 6 lines -Fix: in revision 2104 someone forgot to add a very important check in GetPrevVehicleInChain; this caused some nasty bugs in depots, like wagons without engines complain about not being stopped, and stuff like that. Hopefully this fixes those problems. With a big tnx to BJH for his perfect demo! ------------------------------------------------------------------------ r2155 | Darkvater | 2005-04-06 09:34:56 +0000 (Wed, 06 Apr 2005) | 1 line - Fix: Company value was $2 when value more than an int32 could handle (use max64 instead of max) ------------------------------------------------------------------------ r2154 | matthijs | 2005-04-05 22:06:02 +0000 (Tue, 05 Apr 2005) | 4 lines - Fix: [NPF] Vehicles should no longer try to drive through the back of depots and road stations. - Add: GetDepotDirection() wrapper function. - Fix: [NPF] Ships can now actually reach buoys. ------------------------------------------------------------------------ r2153 | darkvater | 2005-04-05 21:09:36 +0000 (Tue, 05 Apr 2005) | 1 line - Fix: [ 1173690 ] Path displaying as "C:\\" in saveload window win32-only (glx) ------------------------------------------------------------------------ r2152 | darkvater | 2005-04-05 21:03:30 +0000 (Tue, 05 Apr 2005) | 3 lines - Fix: Chatbar in MP games is now on-top of the news window. - CodeChange: Introduction of SendWindowMessage() where a window can send another window a message (ala windows style msg, wparam, lparam). Messages can be sent by windowclass and by windowpointer. - CodeChange: IsVitalWindow() simplifies a lot of checks for window handling that need to know what windows it can close, or be on top of, etc. ------------------------------------------------------------------------ r2151 | miham | 2005-04-05 20:52:55 +0000 (Tue, 05 Apr 2005) | 1 line [Translations] Updated translations (36 strs/2 langs) ------------------------------------------------------------------------