tron 
							
						 
					 
					
						
						
							
						
						45186b1601 
					 
					
						
						
							
							(svn r3194) Don't use FindLandscapeHeightByTile() when it's overkill  
						
						
						
						
					 
					
						2005-11-16 11:52:21 +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 
							
						 
					 
					
						
						
							
						
						181d586a7c 
					 
					
						
						
							
							(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 
							
						 
					 
					
						
						
							
						
						0b936c3222 
					 
					
						
						
							
							(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 
							
						 
					 
					
						
						
							
						
						71d293f2a3 
					 
					
						
						
							
							(svn r3066) Constify the parameter of GetSlopeZ_*()  
						
						
						
						
					 
					
						2005-10-19 14:49:46 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						53a4a6a0f4 
					 
					
						
						
							
							(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 
							
						 
					 
					
						
						
							
						
						7ab7d79190 
					 
					
						
						
							
							(svn r3028) s/255/OWNER_SPECTATOR/  
						
						
						
						
					 
					
						2005-10-10 10:36:37 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						39f5dbfd3b 
					 
					
						
						
							
							(svn r3019) -Codechange: Replace explicit shifting/anding/oring with GB and SB  
						
						
						
						
					 
					
						2005-10-05 07:20:26 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						4a58250cb9 
					 
					
						
						
							
							(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 
							
						 
					 
					
						
						
							
						
						9a060a0f24 
					 
					
						
						
							
							(svn r2781) Fix some of the issues with variables in .h files.  
						
						
						
						
					 
					
						2005-08-01 16:31:19 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						647cbd6bdd 
					 
					
						
						
							
							(svn r2701) Insert Id tags into all source files  
						
						
						
						
					 
					
						2005-07-24 14:12:37 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						54cbd01825 
					 
					
						
						
							
							(svn r2673) Include functions.h directly, not globally via openttd.h  
						
						
						
						
					 
					
						2005-07-22 07:02:20 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						1fed0046ac 
					 
					
						
						
							
							(svn r2658) -Codechange: Use MAKE_TRANSPARENT to display a transparented sprite  
						
						
						
						
					 
					
						2005-07-20 22:05:13 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						a4bf608d40 
					 
					
						
						
							
							(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 
							
						 
					 
					
						
						
							
						
						9617614b04 
					 
					
						
						
							
							(svn r2487) Replace TILE_XY by TileXY/TileDiffXY  
						
						
						
						
					 
					
						2005-06-25 16:44:57 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						2b73dec567 
					 
					
						
						
							
							(svn r2486) Turn TILE_FROM_XY into an inline function and rename it to TileVirtXY  
						
						
						
						
					 
					
						2005-06-25 06:15:43 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						a733fede9b 
					 
					
						
						
							
							(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"  
						
						
						
						
					 
					
						2005-06-24 12:38:35 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						ff0030936e 
					 
					
						
						
							
							(svn r2408) Introduce SetTileOwner() and use it  
						
						
						
						
					 
					
						2005-06-04 12:13:24 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						a9b95b3cbb 
					 
					
						
						
							
							(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 
							
						 
					 
					
						
						
							
						
						ba8c649fac 
					 
					
						
						
							
							(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.  
						
						
						
						
					 
					
						2005-06-02 19:30:21 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						ddd4958164 
					 
					
						
						
							
							(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 
							
						 
					 
					
						
						
							
						
						6d349b6284 
					 
					
						
						
							
							(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 
							
						 
					 
					
						
						
							
						
						f8302a137a 
					 
					
						
						
							
							(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 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						b05713285e 
					 
					
						
						
							
							(svn r2136) - Fix: [ 1174313 ] terrain hotkeys nonfunctional in scenario editor (D,Q,W,E,R,T,Y,U fltr)  
						
						... 
						
						
						
						- Fix: 'L' no longer opens ingame terraform bar in scenario editor bar, but the land generator one
- Feature: [ 1095110 ] Create Lake and draggable Create Desert tools (initial implementation GoneWacko), also added sticky buttons to land generator and town generator
- CodeChange: moved around some of the draggable tools, demystifying them
- CodeChange: change CmdBuildCanal to allow for XANDY dragging not only X or Y (only scenario editor)
- CodeChange: add some more enums to sprites.
- TODO: merge most of the ingame and scenario editor land terraform code. This can only be done after OnClickButton function is changed so it also includes the backreference to the widget being clicked, postponed to after 0.4.0 
						
						
					 
					
						2005-04-02 23:05:09 +00:00 
						 
				 
			
				
					
						
							
							
								truelight 
							
						 
					 
					
						
						
							
						
						4c9f0eefb4 
					 
					
						
						
							
							(svn r2109) -Fix: use FindVehicleOnTileZ(tile, 0) over FindVehicleBetween(tile, tile, 0)  
						
						
						
						
					 
					
						2005-03-30 09:25:20 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						690dd5555c 
					 
					
						
						
							
							(svn r1903) Replace some casts and macro magic with proper typing, similar to r1902  
						
						
						
						
					 
					
						2005-02-22 18:27:57 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						830565514c 
					 
					
						
						
							
							(svn r1867) Include tables/sprites.h only in files which need it  
						
						
						
						
					 
					
						2005-02-13 11:18:02 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						6d2b9d2c3a 
					 
					
						
						
							
							(svn r1863) Give the effect vehicle type enums more descriptive names and use the enum as parameter type for CreateEffectVehicle*()  
						
						... 
						
						
						
						-Fix: [1116619] Generate the correct smoke type for diesel trains 
						
						
					 
					
						2005-02-12 15:53:32 +00:00 
						 
				 
			
				
					
						
							
							
								truelight 
							
						 
					 
					
						
						
							
						
						bd7f37d592 
					 
					
						
						
							
							(svn r1817) -Codechange: Moved depot-functions to depot.c  
						
						... 
						
						
						
						-Codechange: Added wrappers around depot-access (GetDepot no exists)
-Codechange: Made depot-functions a bit more logic (no longer 
GetDepotByTile crashes your game when you request it on a non-depot tile)
-Add: made depots dynamic (yes, 64k depots are possible now) 
						
						
					 
					
						2005-02-06 10:18:47 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						38587b60f7 
					 
					
						
						
							
							(svn r1718) Use the enum TileType as parameter/return type for [GS]etTileType() instead of plain int.  
						
						... 
						
						
						
						This makes it necessary to rename TileType() to GetTileType() because a type and a function may not share the same name. 
						
						
					 
					
						2005-01-29 15:12:40 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						39858e696b 
					 
					
						
						
							
							(svn r1713) Split off several functions which query/set information about a single tile from map.h and put them into a seperate file tile.h  
						
						
						
						
					 
					
						2005-01-29 12:19:05 +00:00 
						 
				 
			
				
					
						
							
							
								darkvater 
							
						 
					 
					
						
						
							
						
						59e099149c 
					 
					
						
						
							
							(svn r1633) -Fix: [1040119] Flood and wagons in depot  
						
						
						
						
					 
					
						2005-01-24 00:36:22 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						94d5aeabb2 
					 
					
						
						
							
							(svn r1594) Convert all undefined parameter lists to (void) and add the appropriate warning flags in the Makefile  
						
						
						
						
					 
					
						2005-01-22 20:23:18 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						ba79ff1210 
					 
					
						
						
							
							(svn r1592) -Fix: [1090495] Slopes under high bridges weren't flooded  
						
						
						
						
					 
					
						2005-01-22 19:05:30 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						eeca2435ba 
					 
					
						
						
							
							(svn r1577) Fix: [1103301] Railroad tracks on slopes weren't flooded  
						
						
						
						
					 
					
						2005-01-20 18:19:37 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						9a1a67b237 
					 
					
						
						
							
							(svn r1576) Clean TileLoopWaterHelper() a bit up  
						
						
						
						
					 
					
						2005-01-20 18:18:32 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						7ff921855a 
					 
					
						
						
							
							(svn r1549) Clean up some functions:  
						
						... 
						
						
						
						uint tile -> TileIndex tile
if () cascade -> switch () 
						
						
					 
					
						2005-01-17 09:41:46 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						ca8eb44828 
					 
					
						
						
							
							(svn r1542) Rename TileHeight to TilePixelHeight, because this is what it actually returns  
						
						
						
						
					 
					
						2005-01-16 14:06:22 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						61a6bc544d 
					 
					
						
						
							
							(svn r1536) Move GET_TILEHEIGHT, GET_TILETYPE and IS_TILETYPE to map.h, turn them into inline functions and add some asserts  
						
						
						
						
					 
					
						2005-01-16 11:24:58 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						b7e1286480 
					 
					
						
						
							
							(svn r1507) Remove unreachable code  
						
						
						
						
					 
					
						2005-01-14 19:39:06 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						414ac3286b 
					 
					
						
						
							
							(svn r1414) Move TileIndex, TILE_MASK and GET_TILE_[XY] to map.h and turn the latter into inline functions names Tile[XY]  
						
						
						
						
					 
					
						2005-01-07 17:02:43 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						d3c6855320 
					 
					
						
						
							
							(svn r1396) Introduce TileIndexDiffC - the compile time version of TileIndexDiff  
						
						
						
						
					 
					
						2005-01-06 11:39:00 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						e4cf2ba1b3 
					 
					
						
						
							
							(svn r1386) Move TileIndexDiff to map.h  
						
						... 
						
						
						
						Move _tileoffs_by_dir to map.[ch] and encapsulate it in TileOffsByDir() 
						
						
					 
					
						2005-01-05 13:32:03 +00:00 
						 
				 
			
				
					
						
							
							
								darkvater 
							
						 
					 
					
						
						
							
						
						fc52b512aa 
					 
					
						
						
							
							(svn r1375) -Fix: [1050990] Buying trains sometimes accounted for incorrectly. Was the result of the cost getting reset in a recursive call of docommand. That is fixed. In addition all cost-commands are typed explicitely. Please do not forget to do so or your costs will be credited to construction if you are unlucky.  
						
						
						
						
					 
					
						2005-01-04 17:11:03 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						bcff0ab932 
					 
					
						
						
							
							(svn r1344) Use MapSize[XY]() (or MapSize()/MapMax[XY]() where appropriate) instead of TILES_[XY]  
						
						
						
						
					 
					
						2005-01-03 18:59:58 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						181e9b6cf9 
					 
					
						
						
							
							(svn r1337) Use MapMax[XY]() (or MapSize[XY]() if appropriate) instead of TILE_MAX_[XY]  
						
						... 
						
						
						
						While here replace one erroneous TILE_MAX_X with MapMaxY() 
						
						
					 
					
						2005-01-03 12:56:22 +00:00 
						 
				 
			
				
					
						
							
							
								darkvater 
							
						 
					 
					
						
						
							
						
						452db59121 
					 
					
						
						
							
							(svn r1211) -Feature: Introduce sticky windows to all vehicle windows...Just make sure you do not sticky more than 23 at a time. Also a lot of places in the code invalidated the 'status bar' of the vehicle, referring to it as widget 4. This is now widget 5 and has been #definitized  
						
						
						
						
					 
					
						2004-12-21 23:27:58 +00:00 
						 
				 
			
				
					
						
							
							
								dominik 
							
						 
					 
					
						
						
							
						
						f5c99c09db 
					 
					
						
						
							
							(svn r1178) Fix: Error message for building canals on slopes is correct  
						
						
						
						
					 
					
						2004-12-19 22:17:27 +00:00 
						 
				 
			
				
					
						
							
							
								dominik 
							
						 
					 
					
						
						
							
						
						10350dda5c 
					 
					
						
						
							
							(svn r1166) Fix: [ 1040119 ] Flooded wagons in depots don't keep constantly exploding any more  
						
						
						
						
					 
					
						2004-12-19 09:33:02 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						a148ff4e0d 
					 
					
						
						
							
							(svn r1117) Move map arrays and some related macros into their own files map.c and map.h  
						
						
						
						
					 
					
						2004-12-15 22:18:54 +00:00