vehicle.c
Tue, 22 Aug 2006 14:38:37 +0000 rubidium (svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.
Sun, 20 Aug 2006 18:40:57 +0000 rubidium (svn r5999) -Feature: change the original date format to a 32 bits format based at the year 0.
Tue, 15 Aug 2006 15:27:30 +0000 bjarni (svn r5917) -Fix: [clone vehicles] FS#275 Bugfix: Cloned Road Vehicles Are Not Refitted To Correct Cargo (Mart3p)
Mon, 14 Aug 2006 22:34:43 +0000 Darkvater (svn r5898) -Fix [FS#249]: Bugfix: Goto Depot not always working for road vehicles. (mart3p)
Mon, 14 Aug 2006 16:18:41 +0000 bjarni (svn r5891) -Code cleanup: cleaned up the code added in revision 5888
Mon, 14 Aug 2006 15:03:01 +0000 bjarni (svn r5888) -Fix: [autoreplace] if vehicles breakdowns and service are turned off, the vehicles failed to enter any depots
Mon, 14 Aug 2006 14:21:15 +0000 rubidium (svn r5887) -Cleanup: move date related functions, defines and variables to date.[ch]
Wed, 26 Jul 2006 08:41:14 +0000 tron (svn r5614) Move a type declaration to its only user
Wed, 26 Jul 2006 08:32:20 +0000 tron (svn r5613) Rename VS_DISASTER to VS_SHADOW, because this is what this flag actually means
Wed, 26 Jul 2006 08:27:05 +0000 tron (svn r5612) Restructure some code which uses the vehicle position hash to make it a bit clearer what's going on
Sun, 23 Jul 2006 17:17:43 +0000 tron (svn r5599) GetPrevVehicleInChain() may never fail to find a valid vehicle. Reflect this in the code
Tue, 11 Jul 2006 19:04:50 +0000 KUDr (svn r5483) -Fix: [YAPF] desync - for MP games invalidate YAPF cache on every tick to keep it exactly the same on server and clients (it doesn't fix the real source of the problem, but should solve it). Thanks TrueLight for hunting this bug.
Fri, 07 Jul 2006 17:16:52 +0000 bjarni (svn r5468) -Fix: fixed declaration after statement added in 5465 (I wonder why the makefile failed to warn about this)
Fri, 07 Jul 2006 07:19:38 +0000 bjarni (svn r5465) -Feature: [autoreplace] replacing from a train engine without cargo capacity to one with cargo capacity will now make autoreplace refit the engine to carry the cargo type from the last wagon in the train
Thu, 29 Jun 2006 09:05:30 +0000 bjarni (svn r5428) -Fix: [vehicles] sovled crash when trying to build a vehicle type, that is set to max 0 (spotted by roboman)
Tue, 27 Jun 2006 21:25:53 +0000 tron (svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular
Fri, 09 Jun 2006 07:45:26 +0000 peter1138 (svn r5191) - NewGRF: add cargo refit support for road vehicles
Wed, 07 Jun 2006 07:20:28 +0000 peter1138 (svn r5146) - NewGRF: Support selection of aircraft default cargo type by checking its refit mask. If aircraft can be refitted to passengers, no change happens, else the first refittable type is chosen. Also use refit capacity to determine the default capacity.
Mon, 05 Jun 2006 11:28:00 +0000 tron (svn r5120) Add IsShipInDepot{Stopped,}() and remove some redundant checks
Mon, 05 Jun 2006 10:23:18 +0000 tron (svn r5118) Add IsRoadVehInDepot{Stopped,}()
Mon, 05 Jun 2006 08:34:39 +0000 tron (svn r5116) Move the overly generic GetDepotDirection() from a header to its only consumer
Sun, 04 Jun 2006 16:04:15 +0000 tron (svn r5101) Add a function to convert an axis and a flag for north/south into a DiagDirection. Use it for bridge ramps and ship depots
Sun, 04 Jun 2006 09:28:33 +0000 tron (svn r5094) Remove _new_{aircraft,roadveh,ship,train,wagon}_id. _new_vehicle_id is enough.
Tue, 23 May 2006 21:49:18 +0000 bjarni (svn r4967) -Fix: [clone vehicles] a cloned train engine heads the same way as the original (pointed out by bobingabout)
Sun, 21 May 2006 11:34:08 +0000 tron (svn r4937) Reduce the use of _error_message a bit
Thu, 11 May 2006 14:24:33 +0000 bjarni (svn r4829) -Codechage: [clone vehilces] only check for a free unitnumber for the first engine in the test run as well as execute run (to improve speed. The result should be unchanged)
Thu, 11 May 2006 13:31:14 +0000 bjarni (svn r4826) -Fix: [autoreplace] fixed possible problem when autoreplacing and was number of vehicles (of a type, not total) was reached
Thu, 11 May 2006 12:42:24 +0000 bjarni (svn r4825) - Fix [clone FS#159]: Game crashes when cloning reaches train-limit.
Tue, 09 May 2006 09:56:09 +0000 tron (svn r4790) Remove slope magic from EnsureNoVehicleZ() and rename it to EnsureNoVehicleOnGround() to make more clear what it does
Thu, 27 Apr 2006 23:11:43 +0000 bjarni (svn r4599) -Fix: [Cloning, autoreplace] FS#141 clone service-interval
Tue, 25 Apr 2006 07:32:33 +0000 tron (svn r4572) Remove vehicle_leave_tile_proc
Sun, 23 Apr 2006 19:35:36 +0000 tron (svn r4554) Replace magic numbers by TILE_{HEIGHT,SIZE}
Sun, 23 Apr 2006 13:48:16 +0000 tron (svn r4541) Add a type for slopes and replace many magic numbers by the appropriate enums
Tue, 18 Apr 2006 18:48:50 +0000 peter1138 (svn r4471) - Pools: Add a facility for calling a custom function during pool block clean up.
Mon, 10 Apr 2006 07:15:58 +0000 tron (svn r4342) Change the first two parameters of commands - virtual pixel coordinates of the tile to operate on - to a TileIndex
Sun, 09 Apr 2006 18:35:24 +0000 celestar (svn r4341) -Fix (FS#101) When a player got bankrupt, slots were not cleared, because vehicles got deleted directly by DeleteVehicle
Mon, 03 Apr 2006 14:25:32 +0000 celestar (svn r4259) -[multistop] Fix/Feature/Codechange:
Mon, 03 Apr 2006 12:41:31 +0000 peter1138 (svn r4256) - Codechange: Replace lone map access in vehicle.c with its map accessor.
Mon, 03 Apr 2006 09:07:21 +0000 celestar (svn r4249) -Codechange: Replace more occurences of 16 by TILE_SIZE and of 8 by TILE_HEIGHT. Reverted one change from the previous commit because it was faulty
Mon, 03 Apr 2006 05:32:11 +0000 celestar (svn r4246) -Codechange. Replaced about 100 occurences of '16' by TILE_SIZE
Sat, 01 Apr 2006 15:11:30 +0000 bjarni (svn r4228) -Fix: [autoreplace] allow replacement of wagons even when the engine fails to be replaced
Sat, 01 Apr 2006 14:53:38 +0000 peter1138 (svn r4227) - Fix: Wagon replace nows checks if the cargo types are the same before seeing if it can refit.
Fri, 31 Mar 2006 19:10:54 +0000 celestar (svn r4215) -Codechange: Renamed *RoadStation* functions to *RoadStop* and moved them to station_map.h to keep consistency
Fri, 31 Mar 2006 12:59:43 +0000 peter1138 (svn r4201) - Codechange: Do for _engine_info[] what we do for _*_vehicle_info[]; create and use a function to retrieve data, and ensure constness.
Wed, 29 Mar 2006 20:57:17 +0000 bjarni (svn r4159) added missing comments about refitting in CmdCloneVehicle
Wed, 29 Mar 2006 20:41:15 +0000 bjarni (svn r4158) -Fix: [autoreplace] cost for refitting the new vehicle is now added to the cost animation. The player always paid for it, but it was not displayed until now
Wed, 29 Mar 2006 16:30:26 +0000 celestar (svn r4150) -Feature: Merged elrails into trunk. Thanks to Tron for lots of code and proofreading, thanks to peter1138 for another lot of code and ideas.
Fri, 24 Mar 2006 18:16:39 +0000 belugas (svn r4092) CodeChange : Named sprites instead of magic numbers plus create/use helper macro/enum for recoloring scheme
Thu, 16 Mar 2006 00:20:33 +0000 Darkvater (svn r3895) - Add proper SLE(G)_CONDNULL macros for the empty space reservation in savegames and update where used
Sun, 12 Mar 2006 16:13:16 +0000 tron (svn r3831) Add and use GetRailDepotDirection()
Sat, 11 Mar 2006 09:10:46 +0000 tron (svn r3816) Use existing accessors
Fri, 10 Mar 2006 10:01:56 +0000 bjarni (svn r3811) -Fix: [autoreplace]: (FS#67) autoreplacing trains now keep their tile length instead of their pixel length
Thu, 09 Mar 2006 20:37:51 +0000 peter1138 (svn r3805) - [FS#62] Fix doxygen comments to refer to the correct parameter. (sulai)
Wed, 08 Mar 2006 08:28:48 +0000 tron (svn r3787) Use DirToDiagDir() instead of >> 1
Wed, 08 Mar 2006 07:48:56 +0000 tron (svn r3784) Add a type and functions to handle direction changes
Wed, 08 Mar 2006 06:55:33 +0000 tron (svn r3783) Replace further ints and magic numbers by Direction, DiagDirection and friends
Sat, 04 Mar 2006 11:01:35 +0000 tron (svn r3757) -Feature: Delete news items about vehicles, when they get stale
Fri, 03 Mar 2006 19:42:09 +0000 tron (svn r3747) Change HASBIT() to return 0/1 instead of 0/value of tested bit, because the name suggests it does the former and current behavior broke in some places in very subtle ways (for example HASBIT(x, 0) != HASBIT(y, 1) doesn't work, returning a bool after HASBIT(x, 9) neither)
Wed, 01 Mar 2006 23:14:03 +0000 peter1138 (svn r3717) - [2cc] Add 2cc colour maps and use for newgrf engines requiring them. Currently the second colour is fixed to be the player's colour.
Wed, 01 Mar 2006 17:35:01 +0000 peter1138 (svn r3701) [2cc] move vehicle/engine palette functions out of header file and document the remaining definitions