tron 
							
						 
					 
					
						
						
							
						
						2ecfed2fad 
					 
					
						
						
							
							(svn r4269) We don't use GNU indentation style  
						
						
						
						
					 
					
						2006-04-04 06:01:45 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						ce19e9b570 
					 
					
						
						
							
							(svn r4266) - Fix: compile warning on VS2005 (not all control paths return a value)  
						
						
						
						
					 
					
						2006-04-03 18:12:42 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						89c145b14e 
					 
					
						
						
							
							(svn r4252) -Codechange: Make more use of map accessors. water_cmd is now map access free  
						
						
						
						
					 
					
						2006-04-03 10:50:54 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						7d3827cf35 
					 
					
						
						
							
							(svn r4250) -Codechange: Further use of map accessors for water tiles  
						
						
						
						
					 
					
						2006-04-03 10:28:16 +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 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						892a4c587d 
					 
					
						
						
							
							(svn r4242) Pass TileIndex and slope to GetSlopeTileh_*() instead of TileInfo  
						
						
						
						
					 
					
						2006-04-02 12:49:18 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						736983a06d 
					 
					
						
						
							
							(svn r4212) -Codechange: Add and make use of an accessor that retrieves the type of a water tile. Add an enum describing the different water tiles  
						
						
						
						
					 
					
						2006-03-31 18:36:13 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						8a91805c05 
					 
					
						
						
							
							(svn r4172) -Codechange: Added a few accessors to work with ShipDepots and Locks  
						
						
						
						
					 
					
						2006-03-30 11:21:36 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						24f23babd1 
					 
					
						
						
							
							(svn r4171) -Codechange: Create map accessor functions for creating ship depots and locks. Make use of them  
						
						
						
						
					 
					
						2006-03-30 11:11:35 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						cda8934a55 
					 
					
						
						
							
							(svn r4120) Use the new station functions where appropriate  
						
						
						
						
					 
					
						2006-03-26 19:20:15 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						979f3f3957 
					 
					
						
						
							
							(svn r3987) Fix another bug in r3979 *grumble*  
						
						
						
						
					 
					
						2006-03-19 19:55:43 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						52e5d9f328 
					 
					
						
						
							
							(svn r3980) Fix glitch in r3979 spotted by Rubidium. Maybe I'm getting too old for this...  
						
						
						
						
					 
					
						2006-03-19 13:44:11 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						77e5cf4bc1 
					 
					
						
						
							
							(svn r3979) Move GetRailFoundation() to rail_map.h and use it and friends to get information about rail tiles  
						
						
						
						
					 
					
						2006-03-19 12:06:12 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						b8da06ddb1 
					 
					
						
						
							
							(svn r3907) Replace many bridge related direct map accesses with calls to shiny new functions and mark some strange constructs with XXX  
						
						
						
						
					 
					
						2006-03-16 15:16:27 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						e8ccd9641f 
					 
					
						
						
							
							(svn r3846) Add functions to set the type of stuff (clear, water, rail, road) under bridges  
						
						
						
						
					 
					
						2006-03-13 12:55:20 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						b394f72fa9 
					 
					
						
						
							
							(svn r3829) Reduce the use of _error_message by directly returning error codes instead of using this global variable  
						
						
						
						
					 
					
						2006-03-12 12:19:25 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						293bf531be 
					 
					
						
						
							
							(svn r3813) Simplify strange control flow  
						
						
						
						
					 
					
						2006-03-10 12:57:42 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						2c6435ccc9 
					 
					
						
						
							
							(svn r3792) -Fix: Mark the right tile as dirty. It's just a graphical glitch which happend in r1592  
						
						
						
						
					 
					
						2006-03-08 13:03:29 +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 
							
						 
					 
					
						
						
							
						
						819d210acc 
					 
					
						
						
							
							(svn r3714) Add functions to turn tiles into water and shore tiles  
						
						
						
						
					 
					
						2006-03-01 21:00:44 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						ea73b46684 
					 
					
						
						
							
							(svn r3597) Miscellaneous (I like that word) changes: Fix some indentation, add consts, reduce indentation level by short-circuit logic, convert if cascades to switch, whitespace, bracing, plus some minor stuff  
						
						
						
						
					 
					
						2006-02-13 21:15:00 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						453b30e387 
					 
					
						
						
							
							(svn r3564) Several smaller changes:  
						
						... 
						
						
						
						- Don't treat non-booleans as booleans
- Reduce variable scope
- Bracing
- Use DeMorgan's law to make conditionals easier to read
- if cascade -> switch
- Replace some magic numbers by symbolic names
- Avoid assignments within other statements 
						
						
					 
					
						2006-02-06 09:18:04 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						22dc05faf2 
					 
					
						
						
							
							(svn r3510) Fiddle with whitespace and parentheses  
						
						
						
						
					 
					
						2006-02-01 06:32:03 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						5e1e902600 
					 
					
						
						
							
							(svn r3490) -Fix: A bunch (10) of off-by-one errors when checking if a TileIndex points to a tile on the map  
						
						
						
						
					 
					
						2006-01-30 17:18:45 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						809b03c81a 
					 
					
						
						
							
							(svn r3282) - Codechange: Replace tests against CMD_ERROR with CmdFailed()  
						
						
						
						
					 
					
						2005-12-10 12:05:39 +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 
							
						 
					 
					
						
						
							
						
						cc61dd4890 
					 
					
						
						
							
							(svn r3199) -Fix: There are only 2 possible directions for ship depots, not 4  
						
						
						
						
					 
					
						2005-11-16 12:20:15 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						1806293e46 
					 
					
						
						
							
							(svn r3194) Don't use FindLandscapeHeightByTile() when it's overkill  
						
						
						
						
					 
					
						2005-11-16 11:52:21 +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 
							
						 
					 
					
						
						
							
						
						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 
							
						 
					 
					
						
						
							
						
						2cc2154ad2 
					 
					
						
						
							
							(svn r3077) static, const, bracing, indentation, 0 -> '\0'/NULL, typos in comments, excess empty lines, minor other changes  
						
						... 
						
						
						
						nothing spectacular, just some stuff, which piled up 
						
						
					 
					
						2005-10-22 06:39:32 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						ece9b9b2b6 
					 
					
						
						
							
							(svn r3066) Constify the parameter of GetSlopeZ_*()  
						
						
						
						
					 
					
						2005-10-19 14:49:46 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						d5042d4ab2 
					 
					
						
						
							
							(svn r3046) Replace some numbers with sprite names and fix a typo in the sprite list  
						
						
						
						
					 
					
						2005-10-15 11:06:54 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						76db75d81a 
					 
					
						
						
							
							(svn r3028) s/255/OWNER_SPECTATOR/  
						
						
						
						
					 
					
						2005-10-10 10:36:37 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						ae4a1f3675 
					 
					
						
						
							
							(svn r3019) -Codechange: Replace explicit shifting/anding/oring with GB and SB  
						
						
						
						
					 
					
						2005-10-05 07:20:26 +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 
						 
				 
			
				
					
						
							
							
								ludde 
							
						 
					 
					
						
						
							
						
						29564f9fcf 
					 
					
						
						
							
							(svn r2781) Fix some of the issues with variables in .h files.  
						
						
						
						
					 
					
						2005-08-01 16:31:19 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						a227065ab7 
					 
					
						
						
							
							(svn r2701) Insert Id tags into all source files  
						
						
						
						
					 
					
						2005-07-24 14:12:37 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						559babcdc9 
					 
					
						
						
							
							(svn r2673) Include functions.h directly, not globally via openttd.h  
						
						
						
						
					 
					
						2005-07-22 07:02:20 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						85f06d6e7b 
					 
					
						
						
							
							(svn r2658) -Codechange: Use MAKE_TRANSPARENT to display a transparented sprite  
						
						
						
						
					 
					
						2005-07-20 22:05:13 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						8c1d74162f 
					 
					
						
						
							
							(svn r2558) Change the internal map format from 7 arrays to one array of structs, this doesn't change the saved format for now. It's a stepping stone for further changes.  
						
						
						
						
					 
					
						2005-07-13 18:04:01 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						bec5e4fb4c 
					 
					
						
						
							
							(svn r2487) Replace TILE_XY by TileXY/TileDiffXY  
						
						
						
						
					 
					
						2005-06-25 16:44:57 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						61f6f07edd 
					 
					
						
						
							
							(svn r2486) Turn TILE_FROM_XY into an inline function and rename it to TileVirtXY  
						
						
						
						
					 
					
						2005-06-25 06:15:43 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						3154e7148d 
					 
					
						
						
							
							(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"  
						
						
						
						
					 
					
						2005-06-24 12:38:35 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						74541c1dcc 
					 
					
						
						
							
							(svn r2408) Introduce SetTileOwner() and use it  
						
						
						
						
					 
					
						2005-06-04 12:13:24 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						0c4ecbe9ec 
					 
					
						
						
							
							(svn r2407) Use {Get,Is}TileOwner to get/check the owner of a tile and fix some bogus reads of _map_owner  
						
						
						
						
					 
					
						2005-06-04 11:56:32 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						b438b1248c 
					 
					
						
						
							
							(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.  
						
						
						
						
					 
					
						2005-06-02 19:30:21 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						033995ec6e 
					 
					
						
						
							
							(svn r2300) - CodeChange: check the last number of commands, now only the refit ones remain, and some server-only commands.  
						
						... 
						
						
						
						- CodeChange: remove cmd-misuses CmdStartScenario() and CmdDestroyCompanyHQ()
- Fix (invisible): when parameter checking CmdRestoreOrderIndex() the vehicle did not have its orders yet, so it would fail. So move doing this until AFTER the orders have been added back in RestoreVehicleOrders() 
						
						
					 
					
						2005-05-12 23:46:01 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						ab954a934a 
					 
					
						
						
							
							(svn r2288) - CodeChange: protected the next batch of commands (41 so far, out of 115).  
						
						... 
						
						
						
						- CodeChange: changed the airport gui airport-type checking. Added function GetValidAirports() that returns bitmasked availibility, is also used for checking.
- CodeChange: to check tree-planting, 2 const arrays have been moved to table/tree_land.h (type and count)
- CodeChange: added IsTownIndex() in following of IsStationIndex(), etc.
- Fix (regression): road tunnels did not work anymore, forgot that their type was 0x200 (documented now) 
						
						
					 
					
						2005-05-09 22:33:00 +00:00 
						 
				 
			
				
					
						
							
							
								matthijs 
							
						 
					 
					
						
						
							
						
						6eb094c726 
					 
					
						
						
							
							(svn r2256) - Fix: Trains cannot find a depot when they are in a tunnel. (glx)  
						
						... 
						
						
						
						- Add: GetVehicleTrackdir() helper function.
- Codechange: Moved SortStruct from vehicle_gui.h to ttd.h, so the dependency from vehicle.h on vehicle_gui.h could be removed.
- Codechange: Typedeffed the VehicleTypes struct so it can be used as the type for Vehicle.type instead of "byte".
- Codechange: Removed prototype for VehicleSorter(), which had no implementation anymore and was never called. 
						
						
					 
					
						2005-05-02 23:59:11 +00:00