tron 
							
						 
					 
					
						
						
							
						
						7289cc7c07 
					 
					
						
						
							
							(svn r3190) Turn some loops into canonical for loop form  
						
						
						
						
					 
					
						2005-11-15 11:46:49 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						ea5672ec8f 
					 
					
						
						
							
							(svn r3189) There's a dedicated function to check if it's a hangar tile, so use it  
						
						
						
						
					 
					
						2005-11-15 11:08:10 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						e901aefb74 
					 
					
						
						
							
							(svn r3188) Use CmdFailed() to check, if a command failed, don't compare with CMD_ERROR  
						
						
						
						
					 
					
						2005-11-15 10:50:43 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						3848d103c8 
					 
					
						
						
							
							(svn r3187) Simplify overly complicated ifs, especially if (foo) return false; else return true; is confusing  
						
						
						
						
					 
					
						2005-11-15 09:47:25 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						ca1dfe94d2 
					 
					
						
						
							
							(svn r3186) Unnecessary casts and truncation  
						
						
						
						
					 
					
						2005-11-15 09:05:16 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						8a3587fa28 
					 
					
						
						
							
							(svn r3185) const  
						
						
						
						
					 
					
						2005-11-15 09:00:02 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						84a16a0b30 
					 
					
						
						
							
							(svn r3184) GB/SB  
						
						
						
						
					 
					
						2005-11-15 08:49:46 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						ba9157fbbc 
					 
					
						
						
							
							(svn r3183) Remove an unused declaration and properly declare CheckExternalFiles() in a header  
						
						
						
						
					 
					
						2005-11-15 08:40:45 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						0e075e271e 
					 
					
						
						
							
							(svn r3182) Fix braino in r3181  
						
						
						
						
					 
					
						2005-11-14 20:20:24 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						9d0e7b6458 
					 
					
						
						
							
							(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 
							
						 
					 
					
						
						
							
						
						a7843e1546 
					 
					
						
						
							
							(svn r3180) Replace some magic numbers by symbolic names  
						
						
						
						
					 
					
						2005-11-14 15:22:12 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						6509e42db3 
					 
					
						
						
							
							(svn r3179) - RandomRange() and RandomTile() instead of home brewed versions  
						
						... 
						
						
						
						- CHANCE*() instead of mumbling strange numbers 
						
						
					 
					
						2005-11-14 09:21:05 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						bb82872bbf 
					 
					
						
						
							
							(svn r3178) - Codechange: move static _dropdown_* vars into the window custom data, giving var1 and var2 more meaningful names.  
						
						
						
						
					 
					
						2005-11-14 08:42:45 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						524fd25cbd 
					 
					
						
						
							
							(svn r3177) GB, CLRBIT, HASBIT, TOGGLEBIT  
						
						
						
						
					 
					
						2005-11-14 08:09:57 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						b34de09e62 
					 
					
						
						
							
							(svn r3176) Use proper types, not some variants of int  
						
						
						
						
					 
					
						2005-11-13 21:16:34 +00:00 
						 
				 
			
				
					
						
							
							
								orudge 
							
						 
					 
					
						
						
							
						
						39ba8235b2 
					 
					
						
						
							
							(svn r3175) - Updated OS/2 project file to include station_newgrf.c  
						
						
						
						
					 
					
						2005-11-13 18:07:45 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						c7e22d0eb0 
					 
					
						
						
							
							(svn r3174) - Fix: fix compilation for VS.NET2003 and VS6 (missing sourcefile(s) from project)  
						
						
						
						
					 
					
						2005-11-13 16:30:04 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						53f00c8f9d 
					 
					
						
						
							
							(svn r3173) Use the trinary operator and switch to improve readability  
						
						... 
						
						
						
						Also align short cases nicely 
						
						
					 
					
						2005-11-13 14:54:09 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						81e5b16d71 
					 
					
						
						
							
							(svn r3172) static, const  
						
						
						
						
					 
					
						2005-11-13 13:43:55 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						d97f56b4e2 
					 
					
						
						
							
							(svn r3171) - Codechange: remove static _dropdown_disabled/_dropdown_hidden variables, as a window already contains this information.  
						
						
						
						
					 
					
						2005-11-12 11:10:12 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						45f07e63d7 
					 
					
						
						
							
							(svn r3170) - NewGRF: make ttdpatch flags to reflect patch option status, and added some more values.  
						
						
						
						
					 
					
						2005-11-12 09:30:52 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						b1b6d15072 
					 
					
						
						
							
							(svn r3169) Little bit of coding style fixing, and change from value to lengthof()  
						
						
						
						
					 
					
						2005-11-12 08:51:46 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						7bbf614796 
					 
					
						
						
							
							(svn r3168) - NewGRF: Fix "typo" in waypoint drawer :/  
						
						
						
						
					 
					
						2005-11-12 00:29:13 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						12009af1c5 
					 
					
						
						
							
							(svn r3167) - NewGRF: Start moving custom station code to separate files.  
						
						... 
						
						
						
						Rewrite handling of station classes.
          Allow for more than 8 station tile layouts.
          Start of code to unload custom stations. 
						
						
					 
					
						2005-11-12 00:19:34 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						ce9f2fe823 
					 
					
						
						
							
							(svn r3166) Constify read-only accesses of custom stations  
						
						
						
						
					 
					
						2005-11-11 20:34:16 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						388c7df1d7 
					 
					
						
						
							
							(svn r3163) Include header for toupper()  
						
						
						
						
					 
					
						2005-11-10 17:21:05 +00:00 
						 
				 
			
				
					
						
							
							
								truelight 
							
						 
					 
					
						
						
							
						
						17b97b7b63 
					 
					
						
						
							
							(svn r3162) -Fix: renamed 'Message' to 'WindowMessage', a struct named 'Message' already  
						
						... 
						
						
						
						exists on MorphOS 
						
						
					 
					
						2005-11-10 15:23:55 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						d431d15b34 
					 
					
						
						
							
							(svn r3159) Remove the read-only variable _no_button_sound  
						
						
						
						
					 
					
						2005-11-09 11:32:15 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						d6e462dfca 
					 
					
						
						
							
							(svn r3158) - PBS: [ 1252192 ] Fix an assertion failure due to possible junk data in pre-PBS savegames. This will not correct pre-PBS savegames loaded and saved since PBS was introduced. (thanks glx)  
						
						
						
						
					 
					
						2005-11-09 09:16:08 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						7ba8da9dc7 
					 
					
						
						
							
							(svn r3157) - Feature: Added patch option to link the terraform toolbar to the rail, road, water and airport toolbars. If enabled, the terraform toolbar will open and close with those toolbars.  
						
						
						
						
					 
					
						2005-11-09 07:25:55 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						1b3e626ff9 
					 
					
						
						
							
							(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 
							
						 
					 
					
						
						
							
						
						df6c48fdba 
					 
					
						
						
							
							(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 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						1258ca0bf0 
					 
					
						
						
							
							(svn r3154) - Fix: Last value of an array is lengthof-1; let's keep this at a typo, shall we :P  
						
						
						
						
					 
					
						2005-11-07 17:31:21 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						b76df91152 
					 
					
						
						
							
							(svn r3153) - Feature: [ 1276827 ] Drag and drop rocky areas in scenario editor (MeusH-ish)  
						
						
						
						
					 
					
						2005-11-07 16:19:45 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						760830da4e 
					 
					
						
						
							
							(svn r3152) - NewGRF: [ 1340189 ] Action 7/9 new value : is it TTDPatch or OpenTTD? (belugas)  
						
						
						
						
					 
					
						2005-11-07 14:34:23 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						5f281a25f2 
					 
					
						
						
							
							(svn r3151) - Fix: showing the highscore might crash the game with an invalid string message in the case when a highscore file was used before certain strings were added.  
						
						... 
						
						
						
						- Codechange: protect _endgame_perf_titles from out-of-bounds access. 
						
						
					 
					
						2005-11-07 13:30:43 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						d91a4df8d7 
					 
					
						
						
							
							(svn r3150) Unify some code duplication in HandleLocomotiveSmokeCloud()  
						
						
						
						
					 
					
						2005-11-07 13:02:33 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						34c503cabf 
					 
					
						
						
							
							(svn r3148) -NewGRF, Feature: Add support for cargo refitting specification by cargo classes.  
						
						
						
						
					 
					
						2005-11-06 13:42:26 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						1fecb61566 
					 
					
						
						
							
							(svn r3147) Fix crash when building dual-head rail vehicles...  
						
						
						
						
					 
					
						2005-11-06 13:29:28 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						b88564b6be 
					 
					
						
						
							
							(svn r3146) Avoid use of variable size declared arrays when allocating articulated rail vehicles.  
						
						
						
						
					 
					
						2005-11-06 12:39:30 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						3610c0474b 
					 
					
						
						
							
							(svn r3145) Fix two off-by-one errors in building articulated rail vehicles.  
						
						
						
						
					 
					
						2005-11-06 10:17:20 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						a3c06f20fa 
					 
					
						
						
							
							(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 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						6afe6a21ed 
					 
					
						
						
							
							(svn r3143) -Codechange: greatly increased speed when allocating vehicles  
						
						... 
						
						
						
						This increases the speed greatly when allocating more than one at a time
        (planes, artic engines, cloning...) and when adding another block of 
        vehicles to the vehicle pool (adding 512 vehicles each time) 
						
						
					 
					
						2005-11-05 19:58:16 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						acf4b5181d 
					 
					
						
						
							
							(svn r3142) Remove a now invalid case fall-through and use helper function instead of map access.  
						
						
						
						
					 
					
						2005-11-05 18:32:21 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						4c6a67a723 
					 
					
						
						
							
							(svn r3141) Replace incorrect railtype bitmask in CmdRailTrackHelper with appropriate GB()  
						
						
						
						
					 
					
						2005-11-05 18:21:28 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						1ad139c9e0 
					 
					
						
						
							
							(svn r3140) Building/removing a waypoint could leave old PBS reservations behind. This ensures they are cleared.  
						
						
						
						
					 
					
						2005-11-05 18:13:40 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						0d9379f904 
					 
					
						
						
							
							(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 
							
						 
					 
					
						
						
							
						
						3c1dd61bf1 
					 
					
						
						
							
							(svn r3138) -Fix: [clone vehicles] fixed assert when it was possible to allocate some vehicles to clone a train, but not for all cars  
						
						... 
						
						
						
						Now it gives "too many vehicles" error message instead
	To make this work, AllocateVehicles() needed to be moved to vehicle.c (from aircraft_cmd.c) and made non-static 
						
						
					 
					
						2005-11-05 14:01:00 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						ce713fe014 
					 
					
						
						
							
							(svn r3137) -Fix: [autoreplace] fixed assert that was triggerable when a vehicle entered a depot even though the goto depot was canceled  
						
						... 
						
						
						
						this assert could be reached by clicking on the goto depot button to cancel goto depot from the orders and the vehicle
	still entered the depot. The flags in that case would not be "normal" anymore. An additional check is added to prevent this 
						
						
					 
					
						2005-11-04 22:10:49 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						7715deec3d 
					 
					
						
						
							
							(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