train_cmd.c
Sat, 04 Jun 2005 11:56:32 +0000 tron (svn r2407) Use {Get,Is}TileOwner to get/check the owner of a tile and fix some bogus reads of _map_owner
Fri, 03 Jun 2005 10:39:30 +0000 hackykid (svn r2401) - Fix: [newgrf] Finish up callback mechanism, implement 'refit capacity' callback slightly more correct.
Thu, 02 Jun 2005 19:30:21 +0000 Darkvater (svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.
Wed, 01 Jun 2005 11:34:37 +0000 hackykid (svn r2389) - Feature: [newgrf] Implement the mechanism for handling newgrf callbacks.
Wed, 01 Jun 2005 10:30:45 +0000 hackykid (svn r2388) - Fix: [realistic accel] Very slow trains no longer get an increase in maximum speed when part of them is in a depot.
Thu, 26 May 2005 16:31:32 +0000 hackykid (svn r2365) - Change: [refitting] Make refitting capacities for trains newgrf compatible. Train vehicles can now carry twice as much mail/goods as other cargo, and four times as much passengers.
Tue, 17 May 2005 23:08:21 +0000 Darkvater (svn r2347) - Fix (regression): depot window did not get redrawn when a non-train-engine was sold.
Sat, 14 May 2005 12:36:16 +0000 Darkvater (svn r2306) - CodeChange: Check the last commands; refits. This needed an extensive rewrite and global/local-cargo ID juggling and bitmasking. However with this done it looks better as well and is compatible with newgrf handling. Big thanks to HackyKid for doing most of the work. This also closes patch "[ 1199277 ] Command checks"
Thu, 12 May 2005 00:18:30 +0000 Darkvater (svn r2298) - CodeChange: removed CmdAbuses: CmdSetTownNameType(), CmdStartNewGame(), CmdCreateScenario(), CmdSetNewLandscapeType() and CmdGenRandomNewGame().
Wed, 11 May 2005 16:17:03 +0000 Darkvater (svn r2294) - CodeChange: check the service interval settings when changing of all vehicle-types. To simplify things introduce GetServiceIntervalClamped() that returns the same or clamped value of the new service interval. There were some inconsistencies in the gui files so I had to change those, and const correctness kicked in, so it's a bit messy at certain points.
Wed, 11 May 2005 00:00:27 +0000 Darkvater (svn r2290) - CodeChange: protect the next batch of commands. This brings us to a total of 61, which is 53% :)
Mon, 09 May 2005 22:33:00 +0000 Darkvater (svn r2288) - CodeChange: protected the next batch of commands (41 so far, out of 115).
Sun, 08 May 2005 20:53:02 +0000 Darkvater (svn r2283) - Fix (regression): [ 1197493 ] train_gui.c:1341: failed assertion ..., somehow RebuildVehicleList() got lost during the rewrite :P
Sat, 07 May 2005 22:00:36 +0000 matthijs (svn r2281) - Fix: [ 1115204 ] [NPF] When pressing the goto depot button, trains will now also look behind it if there is no depot in front. If so, the train reverses immediately. This also work anywhere, not just at stations.
Fri, 06 May 2005 16:13:44 +0000 Darkvater (svn r2274) - Codechange: some comments, parentheses and EngineID typedef for engine_type
Thu, 05 May 2005 20:46:14 +0000 Darkvater (svn r2270) - Fix/Codechange: fix up selling rail vehicles. Try to be smart about it. When selling dual-headed trains, also sell the rear end; if the now-first wagon is an engine, make it a train. When selling the whole train, try to leave dual-headed setups intact
Tue, 03 May 2005 20:45:23 +0000 matthijs (svn r2262) - Fix: Assertion when vehicle in a depot wants to do pathfinding.
Tue, 03 May 2005 19:31:33 +0000 matthijs (svn r2261) - Fix: When crashed vehicles try to find a depot for servicing, openttd asserts.
Mon, 02 May 2005 23:59:11 +0000 matthijs (svn r2256) - Fix: Trains cannot find a depot when they are in a tunnel. (glx)
Fri, 15 Apr 2005 13:48:08 +0000 matthijs (svn r2202) - Fix: [NPF] When a vehicle could not reach its target, it would choose a random direction. It will now try to get as close as possible.
Tue, 12 Apr 2005 10:31:26 +0000 tron (svn r2189) Introduce and use IsCompatibleTrainStationTile()
Tue, 12 Apr 2005 09:21:04 +0000 tron (svn r2188) Revert r2185, because trains always accerlated (Requested by Celestar)
Tue, 12 Apr 2005 09:17:51 +0000 tron (svn r2187) Implement a slightly better workaround than r1588 did. (Joint effort with Celestar)
Mon, 11 Apr 2005 21:10:47 +0000 celestar (svn r2185) -Fix: Made sure that the realistic acceleration does not freeze trains anymore
Mon, 11 Apr 2005 14:59:06 +0000 celestar (svn r2180) -Fix: Deceleration code now only takes into account rail station tiles for computing the remaining distance
Mon, 11 Apr 2005 12:08:09 +0000 matthijs (svn r2179) - Fix: [ 1121437, 1114228 ] Vehicles not entering depots for auto servicing.
Sat, 02 Apr 2005 01:08:01 +0000 pasky (svn r2119) - Fix: [ 1172878 ] Trains "Go to depot" button: click twice skip to next order (patch by Loic GUILLOUX). I also added short explanation of OF_/OFB_ difference to order.h.
Tue, 29 Mar 2005 11:19:10 +0000 celestar (svn r2105) -Codechange: Added a cache for the first vehicle of a chain to increase performance, especially with many long trains
Fri, 25 Mar 2005 12:07:26 +0000 truelight (svn r2058) -Fix: hopefully this fixes the reverse-train-in-depot-bugs (plural)
Fri, 25 Mar 2005 11:03:05 +0000 celestar (svn r2056) -Fix: [ 1166999 ] Strange cast removed. Thanks Tron
Fri, 25 Mar 2005 10:40:58 +0000 celestar (svn r2055) -CodeChange: Begun introducting StationID
Thu, 24 Mar 2005 17:03:37 +0000 truelight (svn r2046) -Codechange: moved all waypoint code to waypoint.c/waypoint.h
Wed, 23 Mar 2005 08:24:13 +0000 tron (svn r2035) - Remove unneeded realloc()
Sun, 20 Mar 2005 08:43:29 +0000 celestar (svn r2034) -Codechange: Replaced the rather meaningless LOAD and UNLOAD flags for depots by something more meaningful
Sat, 19 Mar 2005 21:16:22 +0000 bjarni (svn r2024) -Fix: [autoreplace] reverted all changes involving v->set_for_replacement as they caused desyncs.
Tue, 15 Mar 2005 12:21:59 +0000 darkvater (svn r2011) - Fix: [ 1162209 ] Fix OS/2 build (orudge) #2
Wed, 09 Mar 2005 21:54:52 +0000 tron (svn r1979) Const correctness
Wed, 09 Mar 2005 19:09:04 +0000 tron (svn r1976) Cleanups - mostly indentation and fiddling with loops
Tue, 08 Mar 2005 20:13:21 +0000 matthijs (svn r1965) - Fix: [NPF] Forgot to update one line where NPFGetFlag() should have been used two commits ago.
Tue, 08 Mar 2005 19:54:10 +0000 matthijs (svn r1963) - Add: [NPF] Penalty for a red signal that is the last signal on the path.
Tue, 08 Mar 2005 16:27:26 +0000 Celestar (svn r1959) -Fix: Repaired two memleaks I have hacked :(
Sun, 06 Mar 2005 16:58:42 +0000 pasky (svn r1947) As in r1946, permit DC_QUERY_COST even on non-depot tiles - so that it works for the ai_new. It is de iure not a bug yet but let's be safe against future annoying headaches. Signed-Off-By: TrueLight
Sun, 06 Mar 2005 15:15:27 +0000 tron (svn r1942) Fix r1938
Sun, 06 Mar 2005 12:54:19 +0000 tron (svn r1938) Miscellaneous cleanups: const correctness, kill a goto, ...
Sun, 06 Mar 2005 12:41:18 +0000 tron (svn r1936) End some void-pointer-as-int-abuse; this also fixes a latent bug where a TileIndex was only 24bit wide (on 32bit architectures)
Sun, 06 Mar 2005 12:33:33 +0000 tron (svn r1935) Missing braces; while here turn the ifs into a single switch
Sun, 06 Mar 2005 12:31:07 +0000 tron (svn r1934) Small cleanup (uint -> TileIndex, (uint)-1 -> INVALID_TILE and similar stuff)
Thu, 03 Mar 2005 23:26:35 +0000 Darkvater (svn r1922) - Fix: Disappearing of crashed trains inside tunnels were not checked properly.
Tue, 22 Feb 2005 12:48:03 +0000 tron (svn r1898) Remove some unused macros from macros.h and move some others to more appropriate headers
Sun, 20 Feb 2005 07:47:42 +0000 celestar (svn r1891) -Fix: [ 1143587 ] carriages of newgrfs can be refitted again
Sat, 12 Feb 2005 15:53:32 +0000 tron (svn r1863) Give the effect vehicle type enums more descriptive names and use the enum as parameter type for CreateEffectVehicle*()
Mon, 07 Feb 2005 12:47:29 +0000 celestar (svn r1841) -Fix: [ 1117538 ] non-stop orders are no longer accidently skipped
Sun, 06 Feb 2005 22:36:08 +0000 matthijs (svn r1834) - Fix: NPF does not check the owner of its target, busses try to enter other players' depots. TODO
Sun, 06 Feb 2005 10:18:47 +0000 truelight (svn r1817) -Codechange: Moved depot-functions to depot.c
Fri, 04 Feb 2005 14:24:23 +0000 truelight (svn r1786) -Fix: unitnumber is increased to 16bit, so now you can have up to 5000
Wed, 02 Feb 2005 16:16:43 +0000 truelight (svn r1770) -Fix: Hopefully last pieces of code that are containing a station-id
Mon, 31 Jan 2005 11:23:10 +0000 matthijs (svn r1751) - Feature: New PathFinder (NPF).
Mon, 31 Jan 2005 07:23:15 +0000 tron (svn r1749) Move the functions which calculate distances to map.[ch] and give the more meaningful names
Sun, 30 Jan 2005 20:50:06 +0000 bjarni (svn r1741) - Fix: added IsVehicleIndex() so it's possible to protect GetVehicle() from reading an invalid vehicle index
Sun, 30 Jan 2005 19:51:39 +0000 celestar (svn r1740) -Fix: [ 1112342 ] Realistic acceleration works properly with TTDPatch non-stop handling behaviour