Darkvater 
							
						 
					 
					
						
						
							
						
						725cfc26d0 
					 
					
						
						
							
							(svn r4586) - Codechange: Recursive commands that rely on _error_message to handle success/failure can fail if a recursive call fails but doesn't set the error message, thus resulting in an old, possibly erroneous being used (see FS#130 prior to r4585). Now properly reset the global variable _error_message in these cases.  
						
						
						
						
					 
					
						2006-04-26 21:48:22 +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 
						 
				 
			
				
					
						
							
							
								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 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						aa5777c874 
					 
					
						
						
							
							(svn r4279) s/\<CL_/CLEAR_/  
						
						
						
						
					 
					
						2006-04-04 21:35:13 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						69e1c716e8 
					 
					
						
						
							
							(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 
							
						 
					 
					
						
						
							
						
						7163a64c25 
					 
					
						
						
							
							(svn r4242) Pass TileIndex and slope to GetSlopeTileh_*() instead of TileInfo  
						
						
						
						
					 
					
						2006-04-02 12:49:18 +00:00 
						 
				 
			
				
					
						
							
							
								belugas 
							
						 
					 
					
						
						
							
						
						1b28d92fc8 
					 
					
						
						
							
							(svn r4181) CodeChange : Replaced [G/S]etMapExtraBits by [G/S]etTropicZone. Although it was an accessor, nor his usage nor the values were clear.  
						
						
						
						
					 
					
						2006-03-30 19:16:44 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						747fe64b31 
					 
					
						
						
							
							(svn r4073) Add functions to make and test for (most) unmovable tiles  
						
						
						
						
					 
					
						2006-03-23 20:47:56 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						b5b348bdce 
					 
					
						
						
							
							(svn r3992) -Fix: Rewrote the code to determine whether a rail-tile can be terraformed.  
						
						... 
						
						
						
						Fixes a bug where you could terraform a tunnel (fixed by r3228, but reverted that one)
Fixes a bug introduced by r3228 which allowed steep rail tiles resulting in ... unwanted effects such as display artifacts.
That means the terraform feature should not work as intended; it also uses _valid_tileh_slopes to determine valid configurations instead of hand-brewn stuff.
TODO: _terraform_err_tile and similar TileIndices should have INVALID_TILE as "unused", not 0. (0 is a valid tile). 
						
						
					 
					
						2006-03-20 16:43:48 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						bf3811122d 
					 
					
						
						
							
							(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 
							
						 
					 
					
						
						
							
						
						c3fffd07f2 
					 
					
						
						
							
							(svn r3794) Use already available accessor functions instead of GB()  
						
						
						
						
					 
					
						2006-03-08 15:28:38 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						3027b8673e 
					 
					
						
						
							
							(svn r3779) Move CheckTunnelInWay() to a more appropriate place, invert its result and give it a less ambiguous name (IsTunnelInWay)  
						
						
						
						
					 
					
						2006-03-07 07:51:05 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						4efa560ffc 
					 
					
						
						
							
							(svn r3763) Adapt to the new 'map accessors go in foo_map.h'-scheme  
						
						
						
						
					 
					
						2006-03-05 10:19:33 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						087fe86ed2 
					 
					
						
						
							
							(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 
							
						 
					 
					
						
						
							
						
						99f55ae733 
					 
					
						
						
							
							(svn r3554) Add accessors for the field type and fences of clear tiles  
						
						
						
						
					 
					
						2006-02-05 11:54:25 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						41dda81b29 
					 
					
						
						
							
							(svn r3515) Fix copy&pasto in r3514  
						
						
						
						
					 
					
						2006-02-01 16:17:08 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						5e0c8a239e 
					 
					
						
						
							
							(svn r3514) -Codechange: Replace direct fiddling of bits for the ground type and density of clear tiles with symbolic names and accessors.  
						
						... 
						
						
						
						See clear.h for details 
						
						
					 
					
						2006-02-01 15:31:21 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						1c3e8630fe 
					 
					
						
						
							
							(svn r3511) More whitespace ([FS#46] by Rubidium)  
						
						
						
						
					 
					
						2006-02-01 07:36:15 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						9712d6f639 
					 
					
						
						
							
							(svn r3510) Fiddle with whitespace and parentheses  
						
						
						
						
					 
					
						2006-02-01 06:32:03 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						244d4ab5cb 
					 
					
						
						
							
							(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 
							
						 
					 
					
						
						
							
						
						9e142209fc 
					 
					
						
						
							
							(svn r3249) Fix for issue introduced in r3228. The original code was good for raising, then for lowering, now for both.  
						
						
						
						
					 
					
						2005-11-30 07:31:54 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						48855806d6 
					 
					
						
						
							
							(svn r3228) - Fix: [ 1327011 ] Fix: don't lower land on tunnel, even with diag tracks on it (based on patch by glx)  
						
						
						
						
					 
					
						2005-11-22 22:30:35 +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 
							
						 
					 
					
						
						
							
						
						524fd25cbd 
					 
					
						
						
							
							(svn r3177) GB, CLRBIT, HASBIT, TOGGLEBIT  
						
						
						
						
					 
					
						2005-11-14 08:09:57 +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 
						 
				 
			
				
					
						
							
							
								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 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						ae44d3aa1f 
					 
					
						
						
							
							(svn r2739) -Fix(?): Change the fence algorithm so it removes fences when no farm tile is adjacent  
						
						
						
						
					 
					
						2005-07-28 19:23:19 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						0e64dc50b6 
					 
					
						
						
							
							(svn r2738) Small bit fiddling cleanup  
						
						
						
						
					 
					
						2005-07-28 19:18:27 +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 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						8b05455903 
					 
					
						
						
							
							(svn r2664) Remove depedency on player.h from variables.h  
						
						
						
						
					 
					
						2005-07-21 19:36:43 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						b0779b4b65 
					 
					
						
						
							
							(svn r2663) Include variables.h only in these files which need it, not globally via openttd.h  
						
						
						
						
					 
					
						2005-07-21 18:44:27 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						6ad3895306 
					 
					
						
						
							
							(svn r2660) Get rid of some more shifting/anding/casting  
						
						
						
						
					 
					
						2005-07-21 06:31:02 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						f09638ad3d 
					 
					
						
						
							
							(svn r2650) Convert many explicit shifts+ands to extract bits to invocations of GB - should be a bit nicer to read  
						
						
						
						
					 
					
						2005-07-20 15:29:28 +00:00 
						 
				 
			
				
					
						
							
							
								ludde 
							
						 
					 
					
						
						
							
						
						2123deff13 
					 
					
						
						
							
							(svn r2560) Fix: various minor code changes.  
						
						... 
						
						
						
						Added RandomTile/RandomTileSeed functions to generate a random tile.
Changed landscape routines so they don't assume that the Y map side is a power of two. (support for this is not complete, though)
Changed some frequently used map macros to not compute the values each time.
Silence some warnings on MSVC. 
						
						
					 
					
						2005-07-13 19:51:31 +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 
							
						 
					 
					
						
						
							
						
						5cbd8b598c 
					 
					
						
						
							
							(svn r2492) Remove some pointless casts and fix some nearby indentation  
						
						
						
						
					 
					
						2005-06-27 06:57:24 +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 
							
						 
					 
					
						
						
							
						
						80760b4f69 
					 
					
						
						
							
							(svn r2485) Missed two uint -> TileIndex, thanks _Luca_  
						
						
						
						
					 
					
						2005-06-24 17:41:08 +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 
							
						 
					 
					
						
						
							
						
						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 
							
						 
					 
					
						
						
							
						
						2d355e0826 
					 
					
						
						
							
							(svn r2384) - Fix: Check selling land and setting player colour. Also an extra map-bounds check for terraforming; inspired by the monkey (and Tron :) )  
						
						
						
						
					 
					
						2005-05-30 15:50:20 +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 
							
						 
					 
					
						
						
							
						
						84b0d2d19d 
					 
					
						
						
							
							(svn r2286) - CodeChange: paramcheck the next batch of commands.  
						
						... 
						
						
						
						- Fix (regression): fix up terraform land where every player can terraform land (towns, map generation), and player can terraform different corners; used for building tunnels 
						
						
					 
					
						2005-05-09 16:37:40 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						419af5cece 
					 
					
						
						
							
							(svn r2279) - Fix: Check the parameters of the first 10 Commands. While there also add proper comments for the functions and fix up CmdFailed()  
						
						
						
						
					 
					
						2005-05-07 10:26:12 +00:00