rubidium 
							
						 
					 
					
						
						
							
						
						9fc837ad85 
					 
					
						
						
							
							(svn r5887) -Cleanup: move date related functions, defines and variables to date.[ch]  
						
						... 
						
						
						
						-Cleanup: fix whitespace related coding style issues in date.[ch]
-Cleanup: make original comments doxygen compatible and remove/change outdated comments 
						
						
					 
					
						2006-08-14 14:21:15 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						db57e88d45 
					 
					
						
						
							
							(svn r5854) -Fix: [elrails] now electric engines are stopped if they enter a non-electrified depot even if they would have left right away if the depot had catenary  
						
						... 
						
						
						
						this solves the issue where electric engines in a certain situation could leave non-electrified depots, turn around and enter all the time 
						
						
					 
					
						2006-08-12 11:08:02 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						1e47593786 
					 
					
						
						
							
							(svn r5853) -Fix: [elrails]  FS#178 Electric Trains can leave Conventional Depot  
						
						... 
						
						
						
						now the user will get an error if he tries to start the train and the status bar will say "no power" instead of "stopped"
	Electric trains already driving in and out of non-electrified depots will still do so, but you can't start new ones 
						
						
					 
					
						2006-08-12 10:41:29 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						8048e8c5bd 
					 
					
						
						
							
							(svn r5822) - NewGRF: add support for callback 31, vehicle start/stop check. This allows a set to disallow a vehicle from being started, i.e. to not be able to leave the depot. This is almost a partner to callback 1D.  
						
						
						
						
					 
					
						2006-08-09 21:11:45 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						53d2650d9b 
					 
					
						
						
							
							(svn r5819) - NewGRF: add support for refit costs specified in NewGRF. This may affect the default refit costs for the default rail vehicles.  
						
						
						
						
					 
					
						2006-08-09 20:44:23 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						3deee7318e 
					 
					
						
						
							
							(svn r5665) - Codechange: check pointers against NULL, coding style, tabulation; nothing serious.  
						
						
						
						
					 
					
						2006-07-30 22:55:17 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						1ee788c0fb 
					 
					
						
						
							
							(svn r5664) -Fix: [SF 1518090 ] moving train engines in depot - crash (svn r5463)  
						
						... 
						
						
						
						this was present long before 5463
	Darkvater deserves some of the credit for this fix since he discovered where the first pointer got set incorrectly 
						
						
					 
					
						2006-07-30 22:43:50 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						3c368fc05e 
					 
					
						
						
							
							(svn r5624) Use {IsPlainRailTile,IsRailDepot,IsRailWaypoint,HasSignals}() instead of GetRailTile{T,Subt}ype() - this is more concise and a bit more flexible if/when the rail tile encoding changes  
						
						
						
						
					 
					
						2006-07-27 05:30:53 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						34e18cbdfe 
					 
					
						
						
							
							(svn r5427) - Codechange: testing for "== true" is redundant.  
						
						
						
						
					 
					
						2006-06-29 08:58:08 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						33f1abc620 
					 
					
						
						
							
							(svn r5240) - NewGRF: when there is more than one engine in a consist, base livery overrides and powered wagon weight/power on the last engine before the wagon.  
						
						
						
						
					 
					
						2006-06-12 11:38:07 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						9b043436d8 
					 
					
						
						
							
							(svn r5187) - NewGRF: temporarily change a vehicle's cargo subtype when calling the refit capacity callback.  
						
						
						
						
					 
					
						2006-06-09 07:03:53 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						0372cceb2f 
					 
					
						
						
							
							(svn r5176) fixing the typo, that should have been fixed in last commit  
						
						
						
						
					 
					
						2006-06-08 20:17:19 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						c4fe960ebf 
					 
					
						
						
							
							(svn r5175) -Fix: [autoreplace]  FS#186 autoreplaced trains can leave all wagons in depot  
						
						... 
						
						
						
						also fixed a serious typo in peter1138's comments 
						
						
					 
					
						2006-06-08 20:12:07 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						7fd88e5798 
					 
					
						
						
							
							(svn r5155) - Remove the bridge branch merge (revision r5070)  
						
						
						
						
					 
					
						2006-06-07 19:35:21 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						20cdd71c9f 
					 
					
						
						
							
							(svn r5105) - NewGRF: Move callbackmask from *VehicleInfo to EngineInfo. This simplifies code that works with more than one vehicle type.  
						
						
						
						
					 
					
						2006-06-04 18:22:32 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						18b0ea5473 
					 
					
						
						
							
							(svn r5104) - When refitting a vehicle to its existing cargo type, don't lose the cargo onboard (useful when adding wagons to a train)  
						
						
						
						
					 
					
						2006-06-04 17:49:16 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						2802c4b9c6 
					 
					
						
						
							
							(svn r5103) - Add cargo subtype parameter to refit commands (mart3p)  
						
						
						
						
					 
					
						2006-06-04 17:38:48 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						9ee944cabb 
					 
					
						
						
							
							(svn r5094) Remove _new_{aircraft,roadveh,ship,train,wagon}_id. _new_vehicle_id is enough.  
						
						
						
						
					 
					
						2006-06-04 09:28:33 +00:00 
						 
				 
			
				
					
						
							
							
								KUDr 
							
						 
					 
					
						
						
							
						
						6b1f0d610c 
					 
					
						
						
							
							(svn r5093) -CodeChange: [YAPF] min. debug level changed from 1 to 3 and 4 for frequent debug messages (performance stats)  
						
						
						
						
					 
					
						2006-06-04 09:13:59 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						c1df13f299 
					 
					
						
						
							
							(svn r5071) - Fix (FS#184): "Erroneous train reversal on waypoints". When processing the next train order, do not even consider reversing the train if the last order was to a waypoint.  
						
						
						
						
					 
					
						2006-06-02 13:15:50 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						b618b75c9b 
					 
					
						
						
							
							(svn r5070) Merged the bridge branch  
						
						... 
						
						
						
						-Feature: Bridges can now be placed above:
	Any railway track combination (excluding depots and waypoints)
	Any road combination (excluding depots)
	Clear tiles (duh), including fields
	Tunnel entrances
	Bridge heads
Thanks to Tron for idea and implementation, KUDr for the yapf synchronization and many others for hours of testing
There are still a number of visual problems remaining, especially when electric railways are on or under the bridge.
DO NOT REPORT THOSE BUGS FOR THE TIME BEING please. 
						
						
					 
					
						2006-06-02 13:05:41 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						53cc2673ab 
					 
					
						
						
							
							(svn r5064) -Fix: Remove stay debug stuff from lat commit. (thanks peter1138)  
						
						
						
						
					 
					
						2006-06-01 09:43:39 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						0b72bcdcaa 
					 
					
						
						
							
							(svn r5063) -Codechange: Add a function to determine the length of a platform (request by KUDr)  
						
						
						
						
					 
					
						2006-06-01 09:41:35 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						17d774517b 
					 
					
						
						
							
							(svn r5061) - NewGRF: always use visual effect callback if it is defined, not just for powered wagons.  
						
						
						
						
					 
					
						2006-05-31 18:00:08 +00:00 
						 
				 
			
				
					
						
							
							
								KUDr 
							
						 
					 
					
						
						
							
						
						308f27a3de 
					 
					
						
						
							
							(svn r4987) Feature: Merged YAPF into trunk. Thanks to devs for continuous support and users for testing.  
						
						
						
						
					 
					
						2006-05-27 16:12:16 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						70306b544f 
					 
					
						
						
							
							(svn r4910) - NewGRF: add and initialize cargo subtype for vehicle visual variations  
						
						
						
						
					 
					
						2006-05-19 10:04:03 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						c5b039960d 
					 
					
						
						
							
							(svn r4860) - NewGRF: remove a missed extern for _traininfo_vehicle_pitch  
						
						
						
						
					 
					
						2006-05-13 12:03:44 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						f17a23e06a 
					 
					
						
						
							
							(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 
							
						 
					 
					
						
						
							
						
						37ec349dec 
					 
					
						
						
							
							(svn r4825) - Fix [clone FS#159]: Game crashes when cloning reaches train-limit.  
						
						
						
						
					 
					
						2006-05-11 12:42:24 +00:00 
						 
				 
			
				
					
						
							
							
								rubidium 
							
						 
					 
					
						
						
							
						
						3dae1a9bba 
					 
					
						
						
							
							(svn r4788) - Codechange: RAILTYPE_{NORMAL,ELECTRIC,...} and RAIL_TYPE_{NORMAL,SIGNAL,...} have nearly the same name, rename RAIL_TYPE_* to RAIL_TILE_* of extra clarity  
						
						
						
						
					 
					
						2006-05-09 08:17:33 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						ebcf2ee3b1 
					 
					
						
						
							
							(svn r4765) Add GetTileMaxZ(), which returns the height of the highest corner of a tile, and use it to simplify the code in a few places  
						
						
						
						
					 
					
						2006-05-07 07:55:05 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						cd9821fb39 
					 
					
						
						
							
							(svn r4750) -Fix: Trains could enter certain sloped rail tiles under bridges with incompatible rail type  
						
						
						
						
					 
					
						2006-05-06 14:32:16 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						744e917c34 
					 
					
						
						
							
							(svn r4706) - NewGRF: add the correct default error message for the wagon attach callback.  
						
						
						
						
					 
					
						2006-05-03 06:24:14 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						2fdce8ee8c 
					 
					
						
						
							
							(svn r4703) - NewGRF: add support for callback 0x1D, "can wagon be attached". This can be used to disallow freight wagons to be placed in passenger trains, along with other uses.  
						
						
						
						
					 
					
						2006-05-02 21:43:47 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						b57640e28a 
					 
					
						
						
							
							(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 
							
						 
					 
					
						
						
							
						
						6dbc9c9ced 
					 
					
						
						
							
							(svn r4554) Replace magic numbers by TILE_{HEIGHT,SIZE}  
						
						
						
						
					 
					
						2006-04-23 19:35:36 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						dd180a1e18 
					 
					
						
						
							
							(svn r4541) Add a type for slopes and replace many magic numbers by the appropriate enums  
						
						
						
						
					 
					
						2006-04-23 13:48:16 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						f80454d5ce 
					 
					
						
						
							
							(svn r4501) -Fix: (FS#129) When, in a train that head multiple engines in front, the _first_ of those engines is sold, all the orders are copied to the second engine (to ensure "seamless" operation). However, during this operation, it was forgotten to update the prev_shared and next_shared pointers of the new head engine AND the next_shared and prev_shared of the share partners.  
						
						
						
						
					 
					
						2006-04-21 17:15:05 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						cc29d3dcb4 
					 
					
						
						
							
							(svn r4479) -Fix (FS#90) electric engines (or rather their pantographs) no longer emit sparks when engine is pulled on convrail (MeusH)  
						
						... 
						
						
						
						P.S. Credit for previous commit goes to the bug reporter, nycom, who submitted the fix as well. 
						
						
					 
					
						2006-04-19 16:10:17 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						fd8e02119c 
					 
					
						
						
							
							(svn r4435) - Fix: an assertion triggered when trying to remove a bridge with the remove-tool (r4348 surfaced this). In CmdRemoveRoad tiletype was not checked for ownership. Intorudce IsLevelCrossingTile() which checks if a tile is a crossing without knowing the type. Suggested by peter1138 and Tron.  
						
						
						
						
					 
					
						2006-04-15 20:07:42 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						a3b8eb37b8 
					 
					
						
						
							
							(svn r4412) When a vehicle is in a depot or tunnel it's always flagged as VS_HIDDEN. So after checking for VS_HIDDEN and the result is false there's no need to check if it's flagged as being in a depot or tunnel  
						
						
						
						
					 
					
						2006-04-14 10:48:54 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						35e93e451f 
					 
					
						
						
							
							(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 
							
						 
					 
					
						
						
							
						
						896466db31 
					 
					
						
						
							
							(svn r4338) -Fix (FS#105): Bug introduced in r4290. IsLevelCrossing does NOT check the tile type, it assumes the tile type IS MP_STREET  
						
						
						
						
					 
					
						2006-04-09 18:01:06 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						60fdfa9f0e 
					 
					
						
						
							
							(svn r4290) -Fix: fixed power computation for mixed consists on level crossings (michi_cc)  
						
						
						
						
					 
					
						2006-04-05 19:08:09 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						9b44cd5dad 
					 
					
						
						
							
							(svn r4226) -Fix: [elrails] it's no longer possible to build electric engines in non-electric depots  
						
						... 
						
						
						
						this prevents autoreplace to replace to electric engines before the line in question got catenary 
						
						
					 
					
						2006-04-01 14:53:11 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						77d1dafa4f 
					 
					
						
						
							
							(svn r4198) - NewGRF: Rename GetCallBackResult() to GetVehicleCallback(), as other types will exist later, and use separate parameters instead of bitshifting.  
						
						
						
						
					 
					
						2006-03-31 10:14:25 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						6c44bf5012 
					 
					
						
						
							
							(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 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						c9bf9b7553 
					 
					
						
						
							
							(svn r4125) - Feature: Add a general TIC() TOC() mechanism using rdtsc or something similar on non-i386 architectures to performance-tune (critical) code. Some systems are probably missing, but those can be added later.  
						
						
						
						
					 
					
						2006-03-26 21:15:09 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						9b3b545259 
					 
					
						
						
							
							(svn r4113) Moved all relevant map functions for stations to station_map.[ch]  
						
						... 
						
						
						
						Some work with animated tiles remains. Thanks to Tron for parts of the code and lots of proof-reading and suggesting 
						
						
					 
					
						2006-03-26 14:41:39 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						db9706cb80 
					 
					
						
						
							
							(svn r4088) -Codechange: Introduce {Unb,B}arCrossing and IsCrossingBarred to put and get the status of a level crossing  
						
						
						
						
					 
					
						2006-03-24 15:24:16 +00:00