train_cmd.c
Fri, 24 Jun 2005 12:38:35 +0000 tron (svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"
Thu, 23 Jun 2005 06:19:06 +0000 celestar (svn r2475) -Fix: [ 1214982 & 1217473 ] realistic acceleration problem. (glx)
Tue, 21 Jun 2005 14:50:08 +0000 hackykid (svn r2467) - Fix: [newgrf] Prevent trains with shorter wagons breaking apart when reversing in some cases. (Therax)
Thu, 16 Jun 2005 18:04:02 +0000 matthijs (svn r2448) General cleanup of rail related code, more to follow.
Wed, 15 Jun 2005 16:58:15 +0000 celestar (svn r2441) -Feature: You can now give transfer order to set up feeder systems
Wed, 15 Jun 2005 14:04:48 +0000 hackykid (svn r2440) - Fix: [newgrf] Fix the spritesorter to handle overlapping sprites properly, this fixes display problems with really short wagons. (algorithm by patchman, ported by therax)
Tue, 07 Jun 2005 21:37:00 +0000 Darkvater (svn r2433) - CodeChange: unmagicify all road/train crossings with IsLevelCrossing() function (peter1138)
Tue, 07 Jun 2005 18:13:49 +0000 tron (svn r2432) Use GetEngine() instead of DEREF_ENGINE() or even _engines[]
Tue, 07 Jun 2005 16:44:54 +0000 hackykid (svn r2431) - Fix: [newgrf] clamp() instead of assert() on the result of the vehicle length calculation, as it can depend on external input. (thanks tron)
Mon, 06 Jun 2005 22:44:11 +0000 hackykid (svn r2428) - Feature: [newgrf] Implement shorter train vehicles (Therax), and the callback that goes with it.
Mon, 06 Jun 2005 21:32:04 +0000 hackykid (svn r2427) - Fix: CmdMoveRailVehice; Prevent possible assertion failure when moving vehicles within one chain.
Mon, 06 Jun 2005 14:26:15 +0000 hackykid (svn r2423) - CodeChange: Include first_engine in the train cache, instead of calculating it all over the place.
Mon, 06 Jun 2005 01:31:36 +0000 hackykid (svn r2415) - Fix: [newgrf] Powered Wagons - Don't assume an undefined callback will fail.
Mon, 06 Jun 2005 00:19:24 +0000 hackykid (svn r2414) - Feature: [newgrf] Implement powered wagons, and the callback that goes with it.
Sun, 05 Jun 2005 15:37:00 +0000 hackykid (svn r2411) - Codechange: Have trains cache stuff like consist power/weight/max speed instead of recalculating it each time.
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)