rubidium 
							
						 
					 
					
						
						
							
						
						eb543de4cd 
					 
					
						
						
							
							(svn r6437) -Fix: reset the location of the last sound as that location can be outside the map when you are loading another (smaller) map. Thanks to MeusH for noticing.  
						
						
						
						
					 
					
						2006-09-10 08:28:32 +00:00 
						 
				 
			
				
					
						
							
							
								rubidium 
							
						 
					 
					
						
						
							
						
						6fdf0155bc 
					 
					
						
						
							
							(svn r6433) -Codechange: replace some magic numbers (industry gfx indices) by enums.  
						
						
						
						
					 
					
						2006-09-08 22:12:57 +00:00 
						 
				 
			
				
					
						
							
							
								rubidium 
							
						 
					 
					
						
						
							
						
						27cee58ab8 
					 
					
						
						
							
							(svn r6204) -Cleanup: replace non-indentation with spaces; like '}<TAB>else {' -> '} else {', tabs between code and comment, etc.  
						
						
						
						
					 
					
						2006-08-28 18:53:03 +00:00 
						 
				 
			
				
					
						
							
							
								truelight 
							
						 
					 
					
						
						
							
						
						b7fcce091e 
					 
					
						
						
							
							(svn r6156) -Codechange: DeleteIndustry removes an industry from the pool  
						
						... 
						
						
						
						-Codechange: DestroyIndustry is called by DeleteIndustry to remove all things where a industry depends on.
  Last 2 changes to prepare for new pool system. Not pretty now, will be soon. 
						
						
					 
					
						2006-08-26 19:51:49 +00:00 
						 
				 
			
				
					
						
							
							
								truelight 
							
						 
					 
					
						
						
							
						
						93d5b5a355 
					 
					
						
						
							
							(svn r6058) -Fix: Get(Industry|Town)ArraySize could never return 0  
						
						... 
						
						
						
						Note: _total_towns and _total_industries willb e removed soon, so this 'hack' is okay, for now ;) 
						
						
					 
					
						2006-08-22 21:17:19 +00:00 
						 
				 
			
				
					
						
							
							
								truelight 
							
						 
					 
					
						
						
							
						
						ceb523c29f 
					 
					
						
						
							
							(svn r6057) -Codechange: made a function GetRandomXXX, that _always_ returns a valid XXX, unless there are none to pick from. Then NULL is returned.  
						
						
						
						
					 
					
						2006-08-22 21:14:45 +00:00 
						 
				 
			
				
					
						
							
							
								truelight 
							
						 
					 
					
						
						
							
						
						5fd9aeb12b 
					 
					
						
						
							
							(svn r6055) -Codechange: added GetXXXArraySize, which returns HighestID + 1 (or, will do that).  
						
						... 
						
						
						
						It isn't the best name, but we couldn't find any better.
  This unifies the pool-system even more. 
						
						
					 
					
						2006-08-22 20:41:26 +00:00 
						 
				 
			
				
					
						
							
							
								truelight 
							
						 
					 
					
						
						
							
						
						0461d89612 
					 
					
						
						
							
							(svn r6047) -Codechange: FOR_ALL now _only_ loops valid items, and skips invalid ones  
						
						... 
						
						
						
						-Codechange: use IsValidXXX where ever possible
  Note: both changes to prepare for new pool system, which needs those changes.
  For every pool there are 2 ugly lines, which will be removed when done
  implementing new pool system.
  Based on FS#13 by blathijs, partly implemented. 
						
						
					 
					
						2006-08-22 15:33:35 +00:00 
						 
				 
			
				
					
						
							
							
								rubidium 
							
						 
					 
					
						
						
							
						
						480af9c917 
					 
					
						
						
							
							(svn r6045) -Cleanup: align all table-like structures using spaces, i.e. whitespace fixes only except for a few comments to make them uniform for the whole enum/struct.  
						
						
						
						
					 
					
						2006-08-22 14:38:37 +00:00 
						 
				 
			
				
					
						
							
							
								rubidium 
							
						 
					 
					
						
						
							
						
						b1e2ae44d6 
					 
					
						
						
							
							(svn r6005) -Cleanup: introduce IndustryID and use it  
						
						... 
						
						
						
						-Cleanup: use TownID and StationID for two instances of uint16 
						
						
					 
					
						2006-08-20 19:31:58 +00:00 
						 
				 
			
				
					
						
							
							
								rubidium 
							
						 
					 
					
						
						
							
						
						893d4ba9d4 
					 
					
						
						
							
							(svn r6002) -Cleanup: remove the now redundant BASE_YEAR constant.  
						
						
						
						
					 
					
						2006-08-20 19:05:28 +00:00 
						 
				 
			
				
					
						
							
							
								truelight 
							
						 
					 
					
						
						
							
						
						9e755051a1 
					 
					
						
						
							
							(svn r6001) -Feature: when removing a farm, his farmland is removed too (over time) (based on peter1138's patch, FS#82)  
						
						... 
						
						
						
						To make this to work, in older games farmland is removed on load, and replanted 
						
						
					 
					
						2006-08-20 18:44:26 +00:00 
						 
				 
			
				
					
						
							
							
								rubidium 
							
						 
					 
					
						
						
							
						
						28a0843707 
					 
					
						
						
							
							(svn r5999) -Feature: change the original date format to a 32 bits format based at the year 0.  
						
						... 
						
						
						
						The game date subsystem now allows someone to start in the year 0 and continue
up to the year 5 000 000. However, you currently cannot build anything before 
1920 as there is no newgrf support for dates before 1920 or after 2090 yet. 
						
						
					 
					
						2006-08-20 18:40:57 +00:00 
						 
				 
			
				
					
						
							
							
								rubidium 
							
						 
					 
					
						
						
							
						
						5890ea5a71 
					 
					
						
						
							
							(svn r5966) -Fix: prevent that the industry placement's terraforming checks can leave the map on the southern side  
						
						
						
						
					 
					
						2006-08-20 10:45:36 +00:00 
						 
				 
			
				
					
						
							
							
								truelight 
							
						 
					 
					
						
						
							
						
						aace8968d6 
					 
					
						
						
							
							(svn r5948) -Fix: inversed check caused oringal land-generator to put industries on mountains (tnx Darkvater)  
						
						
						
						
					 
					
						2006-08-19 11:28:41 +00:00 
						 
				 
			
				
					
						
							
							
								truelight 
							
						 
					 
					
						
						
							
						
						10b842bddc 
					 
					
						
						
							
							(svn r5946) -Add: merged the TGP branch to mainline. TGP adds:  
						
						... 
						
						
						
						- New optional landscape generator (TerraGenesis Perlin)
  - Load heightmaps (either BMP or PNG)
  - Progress dialog while generating worlds (no longer a 'hanging' screen)
  - New dialogs for NewGame, Create Scenario and Play Heightmap
    - Easier to configure your landscape
    - More things to configure (tree-placer, ..)
  - Speedup of world generation
  - New console command 'restart': restart the map EXACTLY as it was when you
      first started it (needs a game made after or with this commit)
  - New console command 'getseed': get the seed of your map and share it with
      others (of course only works with generated maps)
  - Many new, world generation related, things
  - Many internal cleanups and rewrites
  Many tnx to those people who helped making this:
     Belugas, DaleStan, glx, KUDr, RichK67, Rubidium, and TrueLight (alfabetic)
  Many tnx to those who helped testing:
     Arnau, Bjarni, and tokai (alfabetic)
  And to all other people who helped testing and sending comments / bugs
  Stats: 673 lines changed, 3534 new lines, 79 new strings 
						
						
					 
					
						2006-08-19 10:00:30 +00:00 
						 
				 
			
				
					
						
							
							
								rubidium 
							
						 
					 
					
						
						
							
						
						7cfd3eb618 
					 
					
						
						
							
							(svn r5934) -Cleanup: forgot some conversions to Year and to Date  
						
						... 
						
						
						
						-Cleanup: use _cur_year instead of _date for some (year based) comparisons
-Cleanup: remove a magic number in favour of another (less) magic number 
						
						
					 
					
						2006-08-17 20:22:35 +00:00 
						 
				 
			
				
					
						
							
							
								rubidium 
							
						 
					 
					
						
						
							
						
						3cab5f30c0 
					 
					
						
						
							
							(svn r5926) -Codechange: make _cur_year contain the full year, instead of the offset since 1920  
						
						... 
						
						
						
						-Codechange: store all year related variables that are _not_ stored in a savegame/transported over the network in the same format as _cur_year 
						
						
					 
					
						2006-08-16 11:39:55 +00:00 
						 
				 
			
				
					
						
							
							
								rubidium 
							
						 
					 
					
						
						
							
						
						243872b4fd 
					 
					
						
						
							
							(svn r5887) -Cleanup: move date related functions, defines and variables to date.[ch]  
						
						... 
						
						
						
						-Cleanup: fix whitespace related coding style issues in date.[ch]
-Cleanup: make original comments doxygen compatible and remove/change outdated comments 
						
						
					 
					
						2006-08-14 14:21:15 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						3254155930 
					 
					
						
						
							
							(svn r5794) Pass the TileIndex plus x and y coordinates into GetSlopeZ_* instead of a TileInfo  
						
						
						
						
					 
					
						2006-08-06 16:32:49 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						2b27073156 
					 
					
						
						
							
							(svn r5391) Miscellaneous, mostly bracing and whitespace, nothing spectacular  
						
						
						
						
					 
					
						2006-06-27 21:25:53 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						2a3aca6139 
					 
					
						
						
							
							(svn r4920) Remove parameters, which get only used in certain functions, by splitting those functions.  
						
						... 
						
						
						
						At least in the case of checking for oil industry restrictions this makes the check conditions more clear. 
						
						
					 
					
						2006-05-20 16:46:37 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						5622ad4b5e 
					 
					
						
						
							
							(svn r4765) Add GetTileMaxZ(), which returns the height of the highest corner of a tile, and use it to simplify the code in a few places  
						
						
						
						
					 
					
						2006-05-07 07:55:05 +00:00 
						 
				 
			
				
					
						
							
							
								belugas 
							
						 
					 
					
						
						
							
						
						7ab8b20faf 
					 
					
						
						
							
							(svn r4614) CodeChange : Cleanup of industry_cmd (Step-4).  
						
						... 
						
						
						
						Removing the _industry_type_costs in favor of IndustrySpec.cost_multiplier;
In order to let industry_gui use the GetIndustrySpec accessor,
some structs had to be moved in industry.h 
						
						
					 
					
						2006-04-28 21:58:16 +00:00 
						 
				 
			
				
					
						
							
							
								belugas 
							
						 
					 
					
						
						
							
						
						6a31b30a20 
					 
					
						
						
							
							(svn r4584) CodeChange : Cleanup of industry_cmd (Step-3).  
						
						... 
						
						
						
						Renaming GetIndustrySpecification to GetIndustrySpec. Looks better.
Removing the _industry_prod_up/down/close_strings
in favor of IndustrySpec.closure/production_up/down_text;
A few reformatting along the way.
Work of tfc_team 
						
						
					 
					
						2006-04-26 21:10:01 +00:00 
						 
				 
			
				
					
						
							
							
								belugas 
							
						 
					 
					
						
						
							
						
						8d622e04f8 
					 
					
						
						
							
							(svn r4578) CodeChange : Cleanup of industry_cmd (Step-2).  
						
						... 
						
						
						
						Removing the _industry_min_cargo[] in favor of IndustrySpec.minimal_cargo,
IndustrySpec.a,b,c are now conflicting[], add an enum for IndustrySpec.checkproc
Work of tfc_team 
						
						
					 
					
						2006-04-26 17:01:27 +00:00 
						 
				 
			
				
					
						
							
							
								belugas 
							
						 
					 
					
						
						
							
						
						8443f43d1f 
					 
					
						
						
							
							(svn r4577) CodeChange : Cleanup of industry_cmd (Step-1).  
						
						... 
						
						
						
						Add an accessor to _industry_specs array.
Work of tfc_team 
						
						
					 
					
						2006-04-26 14:58:06 +00:00 
						 
				 
			
				
					
						
							
							
								belugas 
							
						 
					 
					
						
						
							
						
						5c7cf7d0e5 
					 
					
						
						
							
							(svn r4576) Fix : Temperate bank will no longer appear (during game) in tropic landscape.  
						
						... 
						
						
						
						This bug is from the original game. 
						
						
					 
					
						2006-04-26 01:33:46 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						18ad0ae50e 
					 
					
						
						
							
							(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 
						 
				 
			
				
					
						
							
							
								belugas 
							
						 
					 
					
						
						
							
						
						ebf6797678 
					 
					
						
						
							
							(svn r4568) CodeChange : Bring definitions and uses of DrawTypesStructures toguether.  
						
						
						
						
					 
					
						2006-04-24 21:10:56 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						c1dc517dab 
					 
					
						
						
							
							(svn r4554) Replace magic numbers by TILE_{HEIGHT,SIZE}  
						
						
						
						
					 
					
						2006-04-23 19:35:36 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						0347fb2ab6 
					 
					
						
						
							
							(svn r4541) Add a type for slopes and replace many magic numbers by the appropriate enums  
						
						
						
						
					 
					
						2006-04-23 13:48:16 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						ae7ec5cd0d 
					 
					
						
						
							
							(svn r4471) - Pools: Add a facility for calling a custom function during pool block clean up.  
						
						
						
						
					 
					
						2006-04-18 18:48:50 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						4287cfb640 
					 
					
						
						
							
							(svn r4467) -Fix: New plantations now cause the correct ".. being planted .." news item (MeusH)  
						
						
						
						
					 
					
						2006-04-18 13:16:00 +00:00 
						 
				 
			
				
					
						
							
							
								belugas 
							
						 
					 
					
						
						
							
						
						ea706f8ead 
					 
					
						
						
							
							(svn r4425) Fix bug introduced in r4411 : while IS_BYTE_INSIDE, max value is STRICKLY LESS THEN.  This caused airports animations to stay unanimated.  Industries were similarly affected.  
						
						... 
						
						
						
						Thanks to Richk67 for finding it.
Also, more Gfx define and use. 
						
						
					 
					
						2006-04-15 01:06:53 +00:00 
						 
				 
			
				
					
						
							
							
								belugas 
							
						 
					 
					
						
						
							
						
						e84d878213 
					 
					
						
						
							
							(svn r4411) CodeChange : Define and use some Gfx for both stations and industries.  More are still to come  
						
						... 
						
						
						
						Also, a bit of code cleaning, as pointed by Tron 
						
						
					 
					
						2006-04-14 01:54:07 +00:00 
						 
				 
			
				
					
						
							
							
								belugas 
							
						 
					 
					
						
						
							
						
						0a9d5f051f 
					 
					
						
						
							
							(svn r4399) CodeChange : Add and make use of [G|S]etIndustryAnimationLoop accessors.  
						
						
						
						
					 
					
						2006-04-12 18:10:54 +00:00 
						 
				 
			
				
					
						
							
							
								belugas 
							
						 
					 
					
						
						
							
						
						f1da549c10 
					 
					
						
						
							
							(svn r4350) CodeChange : Add and use accessors [G|S]etIndustrype. Define and use IndustryGfx type instead of uint  
						
						
						
						
					 
					
						2006-04-10 21:00:56 +00:00 
						 
				 
			
				
					
						
							
							
								belugas 
							
						 
					 
					
						
						
							
						
						8166a53179 
					 
					
						
						
							
							(svn r4347) CodeChange : Renamed IndustryType to IndustryLifeType.  Cleanup step toward bringing accessors [G|S]etIndustrype  
						
						
						
						
					 
					
						2006-04-10 16:20:47 +00:00 
						 
				 
			
				
					
						
							
							
								belugas 
							
						 
					 
					
						
						
							
						
						a972760294 
					 
					
						
						
							
							(svn r4346) CodeChange : Add and Use Accessors to Industry's Stage and Counter construction.  Removed last direct map access from Disaster_cmd.c as well.  Based on work from Rubidium in tfc_newmap  
						
						
						
						
					 
					
						2006-04-10 15:09:56 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						eae5fcc455 
					 
					
						
						
							
							(svn r4345) -Codechange: Similar to airport tiles, rename _industry_map5_ arrays to _industry_sections  
						
						
						
						
					 
					
						2006-04-10 14:27:26 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						81e6d68f95 
					 
					
						
						
							
							(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 
							
						 
					 
					
						
						
							
						
						99a6b9b8f2 
					 
					
						
						
							
							(svn r4279) s/\<CL_/CLEAR_/  
						
						
						
						
					 
					
						2006-04-04 21:35:13 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						5f7a0a748d 
					 
					
						
						
							
							(svn r4270) Rename some bogus map5 to gfx  
						
						
						
						
					 
					
						2006-04-04 06:04:54 +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 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						3aa1e38be6 
					 
					
						
						
							
							(svn r4246) -Codechange. Replaced about 100 occurences of '16' by TILE_SIZE  
						
						
						
						
					 
					
						2006-04-03 05:32:11 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						892a4c587d 
					 
					
						
						
							
							(svn r4242) Pass TileIndex and slope to GetSlopeTileh_*() instead of TileInfo  
						
						
						
						
					 
					
						2006-04-02 12:49:18 +00:00 
						 
				 
			
				
					
						
							
							
								belugas 
							
						 
					 
					
						
						
							
						
						80570009dd 
					 
					
						
						
							
							(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 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						d5909f901a 
					 
					
						
						
							
							(svn r4128) - CodeChange: Add proper semantics for CargoID for such variables instead of using the general byte-type.  
						
						
						
						
					 
					
						2006-03-26 22:23:32 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						cda8934a55 
					 
					
						
						
							
							(svn r4120) Use the new station functions where appropriate  
						
						
						
						
					 
					
						2006-03-26 19:20:15 +00:00