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 
							
						 
					 
					
						
						
							
						
						71140a5768 
					 
					
						
						
							
							(svn r2669) Shuffle some more stuff around to reduce dependencies  
						
						
						
						
					 
					
						2005-07-21 22:15:02 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						8b05455903 
					 
					
						
						
							
							(svn r2664) Remove depedency on player.h from variables.h  
						
						
						
						
					 
					
						2005-07-21 19:36:43 +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 
							
						 
					 
					
						
						
							
						
						8086017097 
					 
					
						
						
							
							(svn r2564) Fix: Fixed conceptual issue in network_gui.c. AllocateName is not meant to be used by GUI-code, because it modifies the "game-state".  
						
						... 
						
						
						
						Added a way to bind a C-string to an openttd string which doesn't modify the game state. 
						
						
					 
					
						2005-07-14 09:43:59 +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 
							
						 
					 
					
						
						
							
						
						6923badbba 
					 
					
						
						
							
							(svn r2505) Remove some unnecessary #includes  
						
						
						
						
					 
					
						2005-07-01 15:46:27 +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 
							
						 
					 
					
						
						
							
						
						7ea9ddacbb 
					 
					
						
						
							
							(svn r2464) Move definition of _inclined_tileh out of variables.h  
						
						
						
						
					 
					
						2005-06-20 20:08:10 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						ff0030936e 
					 
					
						
						
							
							(svn r2408) Introduce SetTileOwner() and use it  
						
						
						
						
					 
					
						2005-06-04 12:13:24 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						ba8c649fac 
					 
					
						
						
							
							(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.  
						
						
						
						
					 
					
						2005-06-02 19:30:21 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						562a32c3ee 
					 
					
						
						
							
							(svn r2297) - CodeChange: server-check the next batch of commands.  
						
						... 
						
						
						
						- CodeChange: since only the server will be able to modify difficulty settings, leave the checking of correct values besides, and trust users will join legit servers.
- CodeChange: for renaming signs, only check if GetDParam(); eg _decode_parameters is empty ('\0') or not, instead of the extra check of players, etc. That basically does the same thing. Also dirty sign two times when renaming, once before, once after the action. Because if the name becomes shorter and you update only after, garbage remains on the screen.
- CodeChange: made GetMaskOfTownActions() available to the town-cmd to double-check if the action was available to the player. For this purpose the hardcoded _local_player has been removed from the function and is now passed as a parameter. 
						
						
					 
					
						2005-05-12 00:11:37 +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 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						1086f772bb 
					 
					
						
						
							
							(svn r2093) uint -> TileIndex, remove commented out code and a local variable, which was only used once  
						
						
						
						
					 
					
						2005-03-27 18:15:27 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						6b736738ba 
					 
					
						
						
							
							(svn r1888) The landscape template sprites are ordinary sprites, treating them as non-sprites resulted in yet another endianess issue. This fixes the problem introduced in r1855  
						
						
						
						
					 
					
						2005-02-18 21:20:55 +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 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						d2703fd672 
					 
					
						
						
							
							(svn r1854) Split GetSpritePtr() into GetSprite() for regular sprites (returning a Sprite*) and GetNonSprite() for "sprites" of type 0xFF (returning byte*)  
						
						
						
						
					 
					
						2005-02-10 12:14:38 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						7cd19fe07a 
					 
					
						
						
							
							(svn r1853) Move spritecache function declarations into a header of their own and use SpriteID as parameter type where appropriate  
						
						
						
						
					 
					
						2005-02-10 05:43:30 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						7d56d1d841 
					 
					
						
						
							
							(svn r1839) Move GetTileSlope() and GetTileZ() into tile.[ch] and use more explicit types as parameters  
						
						
						
						
					 
					
						2005-02-07 10:41:45 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						3153924ad1 
					 
					
						
						
							
							(svn r1782) Remove line which should've been removed in r1779 and caused map generation to hang infinitely  
						
						
						
						
					 
					
						2005-02-04 07:52:12 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						f09807920f 
					 
					
						
						
							
							(svn r1779) Make the map generation code slightly more readable  
						
						
						
						
					 
					
						2005-02-03 20:52:12 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						d2d39cb692 
					 
					
						
						
							
							(svn r1777) Fix map generation for tropical and arctic landscape on larger/smaller maps  
						
						
						
						
					 
					
						2005-02-03 18:20:43 +00:00 
						 
				 
			
				
					
						
							
							
								matthijs 
							
						 
					 
					
						
						
							
						
						eb78cdb2d4 
					 
					
						
						
							
							(svn r1751) - Feature: New PathFinder (NPF).  
						
						... 
						
						
						
						- Supports trains, road vehicles and ships.
	- Uses A* pathfinding (same codebase as the new ai).
	- Currently unlimited search depth, so might perform badly on large maps/networks (especially ships).
	- Will always find a route if there is one.
	- Allows custom penalties for obstacles to be set in openttd.cfg (npf_ values).
	- With NPF enabled, ships can have orders that are very far apart. Be careful, this will break (ships get lost) when the old pathfinder is used again.
- Feature: Disabling 90 degree turns for trains and ships.
	- Requires NPF to be enabled.
	- Ships and trains can no longer make weird 90 degree turns on tile borders.
- Codechange: Removed table/directions.h.
	- table/directions.h contained ugly static tables but was included more than once. The tables, along with a few new ones are in npf.[ch] now. Better suggestions for a location?
- Fix: Binary heap in queue.c did not allocate enough space, resulting in a segfault.
- Codechange: Rewritten FindFirstBit2x64, added KillFirstBit2x64.
- Codechange: Introduced constant INVALID_TILE, to replace the usage of 0 as an invalid tile. Also replaces TILE_WRAPPED.
- Codechange: Moved TileAddWrap() to map.[ch] 
- Add TileIndexDiffCByDir(), TileIndexDiffCByDir(). 
- Codechange: Moved IsTrainStationTile() to station.h
- Add: IsRoadStationTile() and GetRoadStationDir(). 
						
						
					 
					
						2005-01-31 11:23:10 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						9f86f1bf9d 
					 
					
						
						
							
							(svn r1726) Move an assert() because it could not catch all cases of incorrect input where it was placed  
						
						
						
						
					 
					
						2005-01-30 08:25:39 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						001aa8e453 
					 
					
						
						
							
							(svn r1722) -Feature: Bigger maps - anyone?  
						
						
						
						
					 
					
						2005-01-29 19:45:14 +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 
							
						 
					 
					
						
						
							
						
						e86e9f96ca 
					 
					
						
						
							
							(svn r1715) Move [GS]etMapExtraBits to tile.[ch]  
						
						
						
						
					 
					
						2005-01-29 13:33:48 +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 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						400f07fdb8 
					 
					
						
						
							
							(svn r1706) Implement ScaleByMapSize() and ScaleByMapSize1D()  
						
						... 
						
						
						
						These scale a number relative to the map size/circumference.
Use them to scale the amount of map objects.
Of course at the moment they return just the input, because there are no bigger/smaller maps yet. 
						
						
					 
					
						2005-01-28 15:31:04 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						bbde9225f4 
					 
					
						
						
							
							(svn r1697) Remove superflous special case for the VOID border tiles in FindLandscapeHeightByTile()  
						
						... 
						
						
						
						While here clean up some other stuff: uint -> TileIndex, assert() that the TileIndex is valid and remove a line which was already commented out 
						
						
					 
					
						2005-01-27 15:30:34 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						556c153a2d 
					 
					
						
						
							
							(svn r1686) Fix (Work around?) crash when generating tropical maps  
						
						
						
						
					 
					
						2005-01-26 18:59:10 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						60e59e186d 
					 
					
						
						
							
							(svn r1683) Fix placement of MP_VOID tiles. On square maps it accidently works, but on non-square maps the wrong tiles would get marked as MP_VOID  
						
						
						
						
					 
					
						2005-01-26 18:17:50 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						07cb3068ae 
					 
					
						
						
							
							(svn r1676) Increase the size of TileIndex and TileIndexDiff to 32bits and adapt the save/load data and some other parts of the code to that change  
						
						... 
						
						
						
						WARNING: If i made any mistake here it WILL lead to corrupted savegames! 
						
						
					 
					
						2005-01-25 21:43:57 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						ce01ed4e10 
					 
					
						
						
							
							(svn r1641) Remove a boundary check added in r1332 to work around a bug - the real cause has been eleminated in r1413.  
						
						... 
						
						
						
						Leave an assert() just to be sure... 
						
						
					 
					
						2005-01-24 18:57:16 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						97f893ae2f 
					 
					
						
						
							
							(svn r1596) Add some more statics  
						
						
						
						
					 
					
						2005-01-22 22:47:58 +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 
							
						 
					 
					
						
						
							
						
						90cafa9b15 
					 
					
						
						
							
							(svn r1560) Introduce SetTileType() and SetTileHeight()  
						
						... 
						
						
						
						Replace direct references to _map_type_and_height with these 
						
						
					 
					
						2005-01-18 18:41:56 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						27057ae4b0 
					 
					
						
						
							
							(svn r1545) Add TileHeight() which returns the height (not multiplied by 8)  
						
						... 
						
						
						
						Replace some direct references to _map_type_and_height with TileHeight()/IsTileType() 
						
						
					 
					
						2005-01-16 14:50:01 +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 
							
						 
					 
					
						
						
							
						
						4450ff105c 
					 
					
						
						
							
							(svn r1451) Fix some of the signed/unsigned comparison warnings  
						
						
						
						
					 
					
						2005-01-09 21:25:44 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						872c51f134 
					 
					
						
						
							
							(svn r1415) Move TILE_FROM_XY and TILE_XY to map.h and push TILE_[XY] bits from map.h into map.c.  
						
						... 
						
						
						
						Now the whole source except map.c is independent of TILE_[XY]_BITS! 
						
						
					 
					
						2005-01-07 17:40:23 +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 
						 
				 
			
				
					
						
							
							
								dominik 
							
						 
					 
					
						
						
							
						
						fe798488e6 
					 
					
						
						
							
							(svn r1413) Fixed a serious memory leak problem. The invisible tiles on the southern border now have the correct tile type (MP_VOID) again. Please note that older maps might still have incorrect border tiles, thus still causing overflows.  
						
						
						
						
					 
					
						2005-01-07 12:33:28 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						d3c6855320 
					 
					
						
						
							
							(svn r1396) Introduce TileIndexDiffC - the compile time version of TileIndexDiff  
						
						
						
						
					 
					
						2005-01-06 11:39:00 +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