peter1138 
							
						 
					 
					
						
						
							
						
						1ffc700797 
					 
					
						
						
							
							(svn r3352) - NewGRF: Move initialization of vehicle random_bits to DC_EXEC blocks to allow use of Random() instead of InteractiveRandom(), which will alleviate some possible network desyncs.  
						
						
						
						
					 
					
						2005-12-28 22:29:59 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						f6330faead 
					 
					
						
						
							
							(svn r3303) Change #if PF_BENCHMARK to #ifdef PF_BENCHMARK  
						
						
						
						
					 
					
						2005-12-14 09:15:06 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						23bfc03054 
					 
					
						
						
							
							(svn r3297) Staticise  
						
						
						
						
					 
					
						2005-12-14 06:20:23 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						fde99748c0 
					 
					
						
						
							
							(svn r3248) - Codechange: Change interface of CanRefitTo() to supply the engine type directly instead of getting it from a vehicle. This allows the function to be used before vehicles are involved.  
						
						
						
						
					 
					
						2005-11-29 22:29:59 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						e472fed85a 
					 
					
						
						
							
							(svn r3219) -Codechange: removed the now obsolite code in the build train command to make half multiheaded engines  
						
						
						
						
					 
					
						2005-11-19 00:10:20 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						22a4679837 
					 
					
						
						
							
							(svn r3218) -Feature: Multiheaded train engines will now stay in the same train  
						
						... 
						
						
						
						This means that any user attempt to remove a rear engine will tell the user to move the front engine instead
	This fixes the assert when moving multiheaded engines (introduced in r3144)
	Note: to make old savegames use this feature, some engines might be turned around in order to link engines in pairs
-Codechange: train subtype is now a bitmask
	This allows fast access to info like if it is a wagon or engine and if it is in front and so on
	Note: savegame version bump 
						
						
					 
					
						2005-11-18 23:41:03 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						89cfe202b8 
					 
					
						
						
							
							(svn r3208) Don't explicitly pass the engine type to look for to GetRearEngine(), because it's the engine type of the vehicle which gets passed as first parameter  
						
						
						
						
					 
					
						2005-11-16 14:07:34 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						8cebe2f607 
					 
					
						
						
							
							(svn r3204) Make handling of clicking on vehicles a bit less ugly by avoiding function declarations in .c files and unnecessary indirection  
						
						
						
						
					 
					
						2005-11-16 12:52:01 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						f7abff5f96 
					 
					
						
						
							
							(svn r3181) -Bracing  
						
						... 
						
						
						
						-Indentation
-Whitespace
-DeMorgan's Law
-Test with NULL or 0 for non-booleans
-'\0' instead of 0 for chars
-Remove redundantly redundant comments (like DoFoo(); // Do foo)
-Join multiple short lines with a single statement
-Split single lines with multiple statements
-Avoid assignments in if 
						
						
					 
					
						2005-11-14 19:48:04 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						5fa6b7eb06 
					 
					
						
						
							
							(svn r3179) - RandomRange() and RandomTile() instead of home brewed versions  
						
						... 
						
						
						
						- CHANCE*() instead of mumbling strange numbers 
						
						
					 
					
						2005-11-14 09:21:05 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						833032adc0 
					 
					
						
						
							
							(svn r3177) GB, CLRBIT, HASBIT, TOGGLEBIT  
						
						
						
						
					 
					
						2005-11-14 08:09:57 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						357aba7475 
					 
					
						
						
							
							(svn r3176) Use proper types, not some variants of int  
						
						
						
						
					 
					
						2005-11-13 21:16:34 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						ee15e3de13 
					 
					
						
						
							
							(svn r3172) static, const  
						
						
						
						
					 
					
						2005-11-13 13:43:55 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						5e278b7ec3 
					 
					
						
						
							
							(svn r3156) -Fix: removed some cases where autoreplace windows were redrawn when nothing was changed  
						
						... 
						
						
						
						due to the FOR_ALL_VEHICLES(), redrawing those windows are slow 
						
						
					 
					
						2005-11-08 23:18:09 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						5481dcd191 
					 
					
						
						
							
							(svn r3155) -Feature: [autoreplace] autoreplace can now remove cars from too long trains  
						
						... 
						
						
						
						-Trains will now remember the length of stations it visits and sell cars
        when being autoreplaced if they became too long
        -If it needs to remove cars, then it starts from the front and sells
        all it can find until the train is short enough
        -This only works for trains, that knows the station length of the route
        so a full uninterrupted run is needed
        -a train needs 1-2 runs to detect if the shortest station is expanded
        -This feature can be turned on and off in the train replace window
        and each company can have it's own setting
        -NOTE: minor savegame version bump 
						
						
					 
					
						2005-11-07 23:20:47 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						8bcfa23d29 
					 
					
						
						
							
							(svn r3150) Unify some code duplication in HandleLocomotiveSmokeCloud()  
						
						
						
						
					 
					
						2005-11-07 13:02:33 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						220b4c27c1 
					 
					
						
						
							
							(svn r3147) Fix crash when building dual-head rail vehicles...  
						
						
						
						
					 
					
						2005-11-06 13:29:28 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						b58cfc36da 
					 
					
						
						
							
							(svn r3146) Avoid use of variable size declared arrays when allocating articulated rail vehicles.  
						
						
						
						
					 
					
						2005-11-06 12:39:30 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						de76933337 
					 
					
						
						
							
							(svn r3145) Fix two off-by-one errors in building articulated rail vehicles.  
						
						
						
						
					 
					
						2005-11-06 10:17:20 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						63842939ed 
					 
					
						
						
							
							(svn r3144) -Fix: a new train is now made if the front unit is an engine and the former front engine is moved away (Meush)  
						
						
						
						
					 
					
						2005-11-06 01:15:10 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						267314b4d0 
					 
					
						
						
							
							(svn r3139) -NewGRF, Feature: support for articulated rail vehicles. This is used, for example, by coal tenders.  
						
						
						
						
					 
					
						2005-11-05 16:07:26 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						c8ea743e47 
					 
					
						
						
							
							(svn r3136) -Fix: [autoreplace] all cargo in engines that consists of more than one vehicle will try to move cargo from all vehicles  
						
						... 
						
						
						
						currently this applies to planes and multiheaded train engines (no more lost airmail)
	added GetNextEnginePart() that returns the next vehicle in an engine nomatter what type it is
	when more types of multivehicle engines are added, they will have to be added here too or autoreplace will not remove all cargo 
						
						
					 
					
						2005-11-04 20:52:03 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						081bae03d9 
					 
					
						
						
							
							(svn r3132) -NewGRF: support positioning of rail vehicle visual effects.  
						
						
						
						
					 
					
						2005-11-04 12:58:18 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						e80d448478 
					 
					
						
						
							
							(svn r3124) Alter train loading/unloading time to use the actual length of the train instead of the number of wagons. The actual length is cached in the first vehicle of the train.  
						
						
						
						
					 
					
						2005-11-03 09:22:24 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						682b9ee8e4 
					 
					
						
						
							
							(svn r3111) -Fix: [autoreplace] [ 1341783 ] Assertion failure in vehicle.c line 378  
						
						... 
						
						
						
						running MaybeReplaceVehicle() is now delayed until after the loop in CallVehicleTicks()
	This avoids selling the vehicle the loop currently works with (and continues to work with afterwards) 
						
						
					 
					
						2005-10-31 12:59:47 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						1a2ad83b00 
					 
					
						
						
							
							(svn r3107) -NewGRF: Move train y-position offset adjustment to remove code duplication, and make it apply only to vehicles with a custom image.  
						
						
						
						
					 
					
						2005-10-30 21:47:42 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						6d41c23cf2 
					 
					
						
						
							
							(svn r3101) -Codechange: added _new_vehicle_id  
						
						... 
						
						
						
						this var works like _new_train_id and the rest of that kind of vars, except it is set each time a vehicle is build, nomatter what type
	this is a nice tool to code vehicle independent code, which in turn can reduce code duplication
	Right now it's used in ReplaceVehicle() and CmdCloneVehicle() 
						
						
					 
					
						2005-10-29 21:54:28 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						9e957ff80b 
					 
					
						
						
							
							(svn r3098) static, const, uint -> TileIndex, indentation, bracing, unused return values, ... mostly related to the clone vehicle GUI  
						
						
						
						
					 
					
						2005-10-28 20:04:54 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						bf467bd99c 
					 
					
						
						
							
							(svn r3081) -Codechange: [autoreplace] complete rewrite of autoreplace  
						
						... 
						
						
						
						this is a complete rewrite, that makes use of existing commands like build and sell
        this means that multiheaded train engines are replaced correctly 
						
						
					 
					
						2005-10-24 19:40:48 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						47137cefb7 
					 
					
						
						
							
							(svn r3078) Some more stuff, which piled up:  
						
						... 
						
						
						
						- const, whitespace, indentation, bracing, GB/SB, pointless casts
- use the trinary operator where appropriate
- data types (uint[] -> AcceptedCargo, ...)
- if cascade -> switch
- if (ptr) -> if (ptr != NULL)
- DeMorgan's Law
- Fix some comments
- 0 -> '\0', change magic numbers to symbolic constants 
						
						
					 
					
						2005-10-23 13:04:44 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						d4752ba0da 
					 
					
						
						
							
							(svn r3058) The default AI may not build dual headed trains under certain circumstances.  
						
						... 
						
						
						
						Simplify this check by testing the rail vehicle info flags instead of passing a global variable around.
Note: This is not exactly the original behaviour, because the Lev4 was always allowed to be built, but i guess that was a glitch. 
						
						
					 
					
						2005-10-18 07:01:00 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						9314ea877f 
					 
					
						
						
							
							(svn r3052) Fix last commit *grml*  
						
						
						
						
					 
					
						2005-10-16 14:12:21 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						0834a88a12 
					 
					
						
						
							
							(svn r3051) Remove the unused function RemoteSubsidyAdd()  
						
						
						
						
					 
					
						2005-10-16 14:07:11 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						ab657338ec 
					 
					
						
						
							
							(svn r3048) Replace 0/1/2 by RAILTYPE_RAIL/MONO/MAGLEV where appropriate  
						
						
						
						
					 
					
						2005-10-16 07:58:15 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						d37639ac3e 
					 
					
						
						
							
							(svn r3036) Use IsCompatibleRail() to check the rail type of level crossings (not a fix, because the old == method works so far)  
						
						
						
						
					 
					
						2005-10-13 14:44:03 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						ae4a1f3675 
					 
					
						
						
							
							(svn r3019) -Codechange: Replace explicit shifting/anding/oring with GB and SB  
						
						
						
						
					 
					
						2005-10-05 07:20:26 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						db3b1228bf 
					 
					
						
						
							
							(svn r3010) Get rid of quite some dubious casts, either by using GB(), proper types or just removing them  
						
						
						
						
					 
					
						2005-10-03 21:20:01 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						a3d40a29fc 
					 
					
						
						
							
							(svn r3008) [ 1247535 ] Native Support for Win64 (compile&run only) (michi_cc)  
						
						... 
						
						
						
						Fix warning in graph_gui.c with const problem 
						
						
					 
					
						2005-10-02 22:39:56 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						0cc45ecd8e 
					 
					
						
						
							
							(svn r3003) Change int, uint, uin16 and byte to EngineID where appropriate, plus some related changes (mostly casts)  
						
						
						
						
					 
					
						2005-10-01 12:43:34 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						ed8c9c91d6 
					 
					
						
						
							
							(svn r3001) s/Player*/const Player*/  
						
						... 
						
						
						
						s/byte/PlayerID/
s/int/PlayerID/
and related changes 
						
						
					 
					
						2005-09-30 20:37:25 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						fbf06041ca 
					 
					
						
						
							
							(svn r2990) Remove _engine_original_sprites and replace all uses with references to our (new) original engine/vehicle tables.  
						
						
						
						
					 
					
						2005-09-26 19:01:49 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						2314431a59 
					 
					
						
						
							
							(svn r2989) - Make engine/vehicle information tables constant. Duplicate them so NewGRF data can be loaded without wiping out the default data.  
						
						
						
						
					 
					
						2005-09-26 18:43:58 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						c02b1d555d 
					 
					
						
						
							
							(svn r2982) Newgrf: Added patch option for wagon speed limits. This is enabled by default.  
						
						
						
						
					 
					
						2005-09-24 13:56:39 +00:00 
						 
				 
			
				
					
						
							
							
								hackykid 
							
						 
					 
					
						
						
							
						
						d5d8d29c9f 
					 
					
						
						
							
							(svn r2977)  - CodeChange: [pbs] Use a check to see if a rail segment is a pbs segment, instead of letting the pathfinder determine this.  
						
						
						
						
					 
					
						2005-09-23 17:37:21 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						4d8c903d62 
					 
					
						
						
							
							(svn r2967) Fix: newgrf: Wagon speed limits don't apply for wagons with livery overrides. Fixes max speed in dbsetxl etc.  
						
						
						
						
					 
					
						2005-09-20 19:35:52 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						8e6a911700 
					 
					
						
						
							
							(svn r2962) - const correctness for all Get* functions and most Draw* functions that don't change their pointer parameters  
						
						... 
						
						
						
						- change a lot of byte player types to PlayerID
- beautify header files, same "#endif /* filename */" ending 
						
						
					 
					
						2005-09-18 20:56:44 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						2131f68ae2 
					 
					
						
						
							
							(svn r2951) - Fix: [ 1259345 ] Changing engine in netgame opens train window for everyone  
						
						... 
						
						
						
						- Add IsLocalPlayer() which substitutes _local_player == _current_player 
						
						
					 
					
						2005-09-14 18:03:38 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						b45aeb5c36 
					 
					
						
						
							
							(svn r2886) Rename the "owner" attribute to "m1", because when it stores an owner it is accessed by [GS]etOwner anyway and when it doesn't store an owner, but arbitrary data, accessing a field called "owner" is confusing.  
						
						
						
						
					 
					
						2005-08-23 18:47:04 +00:00 
						 
				 
			
				
					
						
							
							
								ludde 
							
						 
					 
					
						
						
							
						
						29564f9fcf 
					 
					
						
						
							
							(svn r2781) Fix some of the issues with variables in .h files.  
						
						
						
						
					 
					
						2005-08-01 16:31:19 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						546c34f2e5 
					 
					
						
						
							
							(svn r2764) -Feature: Clone vehicles  
						
						... 
						
						
						
						-This allows a player to clone an excisting vehicle of his own
  -[fix]: this uncovered an excisting bug in CmdBuildRailVehicle() where depots could build trains of the wrong track type. This is fixed
  -Thanks to Celestar for drawing the sprites and _luca_ for including them in openttd.grf 
						
						
					 
					
						2005-07-31 13:08:08 +00:00