tron 
							
						 
					 
					
						
						
							
						
						fa74002356 
					 
					
						
						
							
							(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  
						
						
						
						
					 
					
						2006-06-04 16:04:15 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						a0caafeb50 
					 
					
						
						
							
							(svn r5094) Remove _new_{aircraft,roadveh,ship,train,wagon}_id. _new_vehicle_id is enough.  
						
						
						
						
					 
					
						2006-06-04 09:28:33 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						4557832c9c 
					 
					
						
						
							
							(svn r4967) -Fix: [clone vehicles] a cloned train engine heads the same way as the original (pointed out by bobingabout)  
						
						... 
						
						
						
						[autoreplace] the same applies to autoreplaced trains if the engine is a single unit (not dualheaded or articulated) 
						
						
					 
					
						2006-05-23 21:49:18 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						1706164ff7 
					 
					
						
						
							
							(svn r4937) Reduce the use of _error_message a bit  
						
						
						
						
					 
					
						2006-05-21 11:34:08 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						13d9690f3a 
					 
					
						
						
							
							(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)  
						
						
						
						
					 
					
						2006-05-11 14:24:33 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						2e05a16959 
					 
					
						
						
							
							(svn r4826) -Fix: [autoreplace] fixed possible problem when autoreplacing and was number of vehicles (of a type, not total) was reached  
						
						... 
						
						
						
						now the new vehicle gets the same number as the old one, completely removing the problem where we could run out of numbers
	since we don't have to find free numbers for the new vehicles, autoreplace should be somewhat faster, specially in late games
	NOTE: in CmdBuildRailVehicle(), bit 0 and 1 in p2 have been switched to make the meaning of bit 0 consistent with the other build commands. CmdCloneVehicle() is modified to follow this as well 
						
						
					 
					
						2006-05-11 13:31:14 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						06156142d4 
					 
					
						
						
							
							(svn r4825) - Fix [clone FS#159]: Game crashes when cloning reaches train-limit.  
						
						
						
						
					 
					
						2006-05-11 12:42:24 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						c9defc0fea 
					 
					
						
						
							
							(svn r4790) Remove slope magic from EnsureNoVehicleZ() and rename it to EnsureNoVehicleOnGround() to make more clear what it does  
						
						
						
						
					 
					
						2006-05-09 09:56:09 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						246e53d206 
					 
					
						
						
							
							(svn r4599) -Fix: [Cloning, autoreplace]  FS#141 clone service-interval  
						
						... 
						
						
						
						now cloned vehicles get the same service interval as the original vehicle
	I applied this to autoreplace as well even though it's not mentioned in the bug report (autorenew should not alter service interval) 
						
						
					 
					
						2006-04-27 23:11:43 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						18ad0ae50e 
					 
					
						
						
							
							(svn r4572) Remove vehicle_leave_tile_proc  
						
						... 
						
						
						
						There's exactly one implemented function (unbarring a level crossing) and one place where it can be triggered (a train leaves a level crossing)
It's a bit overkill, so just handle this one case where it can happen 
						
						
					 
					
						2006-04-25 07:32:33 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						c1dc517dab 
					 
					
						
						
							
							(svn r4554) Replace magic numbers by TILE_{HEIGHT,SIZE}  
						
						
						
						
					 
					
						2006-04-23 19:35:36 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						0347fb2ab6 
					 
					
						
						
							
							(svn r4541) Add a type for slopes and replace many magic numbers by the appropriate enums  
						
						
						
						
					 
					
						2006-04-23 13:48:16 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						ae7ec5cd0d 
					 
					
						
						
							
							(svn r4471) - Pools: Add a facility for calling a custom function during pool block clean up.  
						
						
						
						
					 
					
						2006-04-18 18:48:50 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						81e6d68f95 
					 
					
						
						
							
							(svn r4342) Change the first two parameters of commands - virtual pixel coordinates of the tile to operate on - to a TileIndex  
						
						... 
						
						
						
						Remove DoCommandByTile(), because now it does the same as DoCommand() 
						
						
					 
					
						2006-04-10 07:15:58 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						6926bd55fd 
					 
					
						
						
							
							(svn r4341) -Fix (FS#101) When a player got bankrupt, slots were not cleared, because vehicles got deleted directly by DeleteVehicle  
						
						
						
						
					 
					
						2006-04-09 18:35:24 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						5931b34aff 
					 
					
						
						
							
							(svn r4259) -[multistop] Fix/Feature/Codechange:  
						
						... 
						
						
						
						1) Improved the road vehicle allocation (aka slotting) for multistop. Stops can now accept unlimited, er... 256, vehicles.
2) Removed the "wait for stop" feature, because it did not work in practise.
3) Slotting now ignores unreachable stations. Uses NPF at the moment because the old pathfinder cannot do it (yet)
4) Now matter how many vehicles approach a station, they will always be distributed evenly over existing stops.
5) Hopefully the last fundamental change to multistop 
						
						
					 
					
						2006-04-03 14:25:32 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						9d5e052bbc 
					 
					
						
						
							
							(svn r4256) - Codechange: Replace lone map access in vehicle.c with its map accessor.  
						
						
						
						
					 
					
						2006-04-03 12:41:31 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						cc87f682b9 
					 
					
						
						
							
							(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  
						
						
						
						
					 
					
						2006-04-03 09:07:21 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						3aa1e38be6 
					 
					
						
						
							
							(svn r4246) -Codechange. Replaced about 100 occurences of '16' by TILE_SIZE  
						
						
						
						
					 
					
						2006-04-03 05:32:11 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						7c64aa4142 
					 
					
						
						
							
							(svn r4228) -Fix: [autoreplace] allow replacement of wagons even when the engine fails to be replaced  
						
						
						
						
					 
					
						2006-04-01 15:11:30 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						96288ee39a 
					 
					
						
						
							
							(svn r4227) - Fix: Wagon replace nows checks if the cargo types are the same before seeing if it can refit.  
						
						
						
						
					 
					
						2006-04-01 14:53:38 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						446493149c 
					 
					
						
						
							
							(svn r4215) -Codechange: Renamed *RoadStation* functions to *RoadStop* and moved them to station_map.h to keep consistency  
						
						
						
						
					 
					
						2006-03-31 19:10:54 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						cd0a67dc65 
					 
					
						
						
							
							(svn r4201) - Codechange: Do for _engine_info[] what we do for _*_vehicle_info[]; create and use a function to retrieve data, and ensure constness.  
						
						
						
						
					 
					
						2006-03-31 12:59:43 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						0151ab0379 
					 
					
						
						
							
							(svn r4159) added missing comments about refitting in CmdCloneVehicle  
						
						
						
						
					 
					
						2006-03-29 20:57:17 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						0c64cecc66 
					 
					
						
						
							
							(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  
						
						
						
						
					 
					
						2006-03-29 20:41:15 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						a7d8ad0004 
					 
					
						
						
							
							(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.  
						
						
						
						
					 
					
						2006-03-29 16:30:26 +00:00 
						 
				 
			
				
					
						
							
							
								belugas 
							
						 
					 
					
						
						
							
						
						26a5b62865 
					 
					
						
						
							
							(svn r4092) CodeChange : Named sprites instead of magic numbers plus create/use helper macro/enum for recoloring scheme  
						
						
						
						
					 
					
						2006-03-24 18:16:39 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						d9ee10d3b8 
					 
					
						
						
							
							(svn r3895) - Add proper SLE(G)_CONDNULL macros for the empty space reservation in savegames and update where used  
						
						... 
						
						
						
						- Also add this capability to settings 
						
						
					 
					
						2006-03-16 00:20:33 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						12d252d9bd 
					 
					
						
						
							
							(svn r3831) Add and use GetRailDepotDirection()  
						
						
						
						
					 
					
						2006-03-12 16:13:16 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						929fae7b68 
					 
					
						
						
							
							(svn r3816) Use existing accessors  
						
						
						
						
					 
					
						2006-03-11 09:10:46 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						96641f462e 
					 
					
						
						
							
							(svn r3811) -Fix: [autoreplace]: (FS#67) autoreplacing trains now keep their tile length instead of their pixel length  
						
						
						
						
					 
					
						2006-03-10 10:01:56 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						9c7f09322e 
					 
					
						
						
							
							(svn r3805) - [FS#62] Fix doxygen comments to refer to the correct parameter. (sulai)  
						
						
						
						
					 
					
						2006-03-09 20:37:51 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						2181a72e9e 
					 
					
						
						
							
							(svn r3787) Use DirToDiagDir() instead of >> 1  
						
						
						
						
					 
					
						2006-03-08 08:28:48 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						ecabf8a5f0 
					 
					
						
						
							
							(svn r3784) Add a type and functions to handle direction changes  
						
						
						
						
					 
					
						2006-03-08 07:48:56 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						fbe939b31f 
					 
					
						
						
							
							(svn r3783) Replace further ints and magic numbers by Direction, DiagDirection and friends  
						
						
						
						
					 
					
						2006-03-08 06:55:33 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						4270026b42 
					 
					
						
						
							
							(svn r3757) -Feature: Delete news items about vehicles, when they get stale  
						
						... 
						
						
						
						This is used to delete
- all news about a vehicle, when it gets deleted
- "vehicle has stopped in depot" news, when it gets started
- "vehicle has invalid orders" news, when the orders get changed 
						
						
					 
					
						2006-03-04 11:01:35 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						40fd4377b0 
					 
					
						
						
							
							(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)  
						
						
						
						
					 
					
						2006-03-03 19:42:09 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						741fc26522 
					 
					
						
						
							
							(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.  
						
						
						
						
					 
					
						2006-03-01 23:14:03 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						24217d5c8d 
					 
					
						
						
							
							(svn r3701) [2cc] move vehicle/engine palette functions out of header file and document the remaining definitions  
						
						
						
						
					 
					
						2006-03-01 17:35:01 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						45e85d2eb2 
					 
					
						
						
							
							(svn r3627) - Change all hardcoded 255 max-saveload versions with the define SL_MAX_VERSION  
						
						
						
						
					 
					
						2006-02-20 19:43:26 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						4f9ea7640a 
					 
					
						
						
							
							(svn r3620) - 2cc: Replace use of macro to determine colour map with a function call for drawing of vehicles.  
						
						
						
						
					 
					
						2006-02-20 09:26:07 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						4c8c1e8f6a 
					 
					
						
						
							
							(svn r3619) - Codechange: Simplify a NullStruct initialization in the vehicle array (merge the two together to avoid confusion)  
						
						
						
						
					 
					
						2006-02-20 01:36:48 +00:00 
						 
				 
			
				
					
						
							
							
								truelight 
							
						 
					 
					
						
						
							
						
						0068f19605 
					 
					
						
						
							
							(svn r3598) -Fix: suppress invalid warning by assigning value to variable  
						
						
						
						
					 
					
						2006-02-13 21:47:02 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						efe76c22e6 
					 
					
						
						
							
							(svn r3589) - Rename u.road.unk2 to u.road.blocked_ctr  
						
						
						
						
					 
					
						2006-02-11 10:45:20 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						f4215cf6a0 
					 
					
						
						
							
							(svn r3579) v->u.rail.first_engine holds an engine type, not a vehicle index, so use INVALID_ENGINE.  
						
						
						
						
					 
					
						2006-02-08 19:06:46 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						2265915e6c 
					 
					
						
						
							
							(svn r3576) - Allow unused wagons have their ->first set. This fixes the faulty cache warning message, and noticably speeds up depot operations in large games.  
						
						
						
						
					 
					
						2006-02-08 08:18:29 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						9dba135f79 
					 
					
						
						
							
							(svn r3573) - Replace assert(0) with NOT_REACHED(). This commit sponsored by "giving Darkvater credit for the last three".  
						
						
						
						
					 
					
						2006-02-07 19:11:51 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						59333131a5 
					 
					
						
						
							
							(svn r3572) - Rewrite GetFreeUnitNumber() so that only one loop of vehicles is required. Instead a list of used/unused numbers is created and the first unused number is chosen. This significantly improves performance in large games.  
						
						
						
						
					 
					
						2006-02-07 19:01:01 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						66fcdc5e6d 
					 
					
						
						
							
							(svn r3571) - When loading a game, call TrainConsistChanged() for each train head separately before updating images, as v->first is used extensively in GetTrainImage() for custom graphics. This gives a significant speed improvement on loading a game.  
						
						
						
						
					 
					
						2006-02-07 18:57:16 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						78b51cbec2 
					 
					
						
						
							
							(svn r3535) -Feature: [autoreplace] allow autoreplacing of train wagons  
						
						... 
						
						
						
						currently ALL available wagons are displayed in the right menu in the replace window
	however the replacement will only be done if the new wagon can be refitted to carry same cargo as the old one is currently carrying
	Since the standard vehicles do not have any valid wagon replacements, this feature can only be used when using newgrf sets 
						
						
					 
					
						2006-02-04 18:25:07 +00:00