peter1138 
							
						 
					 
					
						
						
							
						
						97559a9df9 
					 
					
						
						
							
							(svn r3631) - 2cc: Remove use of some temporary variables and perform minor optimization in the form of the ternary operator.  
						
						
						
						
					 
					
						2006-02-20 21:49:31 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						b5cd24f05d 
					 
					
						
						
							
							(svn r3620) - 2cc: Replace use of macro to determine colour map with a function call for drawing of vehicles.  
						
						
						
						
					 
					
						2006-02-20 09:26:07 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						f9b4537228 
					 
					
						
						
							
							(svn r3588) - Refit: Use only one global to return the refit capacity rather than one per vehicle type.  
						
						
						
						
					 
					
						2006-02-11 09:24:51 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						6c28b1cec7 
					 
					
						
						
							
							(svn r3524) - Split newgrf features from engine.[ch] into newgrf_engine.[ch], and add the new files to project files.  
						
						
						
						
					 
					
						2006-02-03 12:55:21 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						17ec6ed70d 
					 
					
						
						
							
							(svn r3520) Remove unused parameters from some functions  
						
						
						
						
					 
					
						2006-02-02 07:15:46 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						1c3e8630fe 
					 
					
						
						
							
							(svn r3511) More whitespace ([FS#46] by Rubidium)  
						
						
						
						
					 
					
						2006-02-01 07:36:15 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						2053685fb5 
					 
					
						
						
							
							(svn r3367) Unify the 4 distinct CMD_CHANGE_{AIRCRAFT,ROADVEH,SHIP,TRAIN}_SERVICE_INT commands into one CMD_CHANGE_SERVICE_INT command.  
						
						... 
						
						
						
						As side effect this is a
-Fix: The default AI tried to change the service intervals of vehicles via the CMD_CHANGE_TRAIN_SERVICE_INT command - regardless of the type of the vehicle - which of course failed for non-trains 
						
						
					 
					
						2006-01-05 21:35:54 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						24d56f889d 
					 
					
						
						
							
							(svn r3354) Fix a typo, which survived for about 3000 revisions: s/SRT_SORT_BY/STR_SORT_BY/ (noticed by chu)  
						
						
						
						
					 
					
						2005-12-29 19:06:44 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						121b54e959 
					 
					
						
						
							
							(svn r3346) - Increase size of aircraft refit window by one item; fixes "[ 1387477 ] Can't refit aircraft to carry Fizzy Drinks"  
						
						
						
						
					 
					
						2005-12-27 16:37:50 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						28b8b7e269 
					 
					
						
						
							
							(svn r3300) Remove unreachable code - in this case some duplicate breaks  
						
						
						
						
					 
					
						2005-12-14 06:49:54 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						5f3dc36983 
					 
					
						
						
							
							(svn r3270) Correct all (mis)uses of WWT_CLOSEBOX / WWT_TEXTBTN to reflect their actual use, and add "Close Window" tooltip where missing.  
						
						
						
						
					 
					
						2005-12-07 15:48:52 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						ea5672ec8f 
					 
					
						
						
							
							(svn r3189) There's a dedicated function to check if it's a hangar tile, so use it  
						
						
						
						
					 
					
						2005-11-15 11:08:10 +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 
							
						 
					 
					
						
						
							
						
						81e5b16d71 
					 
					
						
						
							
							(svn r3172) static, const  
						
						
						
						
					 
					
						2005-11-13 13:43:55 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						7c14b86aaf 
					 
					
						
						
							
							(svn r3098) static, const, uint -> TileIndex, indentation, bracing, unused return values, ... mostly related to the clone vehicle GUI  
						
						
						
						
					 
					
						2005-10-28 20:04:54 +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 
							
						 
					 
					
						
						
							
						
						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 
							
						 
					 
					
						
						
							
						
						8980891b09 
					 
					
						
						
							
							(svn r3024) -Codechange: Another batch of replacements of int/uint/int16/byte/-1 with proper types and constants  
						
						
						
						
					 
					
						2005-10-07 07:35:15 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						0ad3902acf 
					 
					
						
						
							
							(svn r3003) Change int, uint, uin16 and byte to EngineID where appropriate, plus some related changes (mostly casts)  
						
						
						
						
					 
					
						2005-10-01 12:43:34 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						f608232673 
					 
					
						
						
							
							(svn r2992) Use PlayerID, StationID and INVALID_STATION instead of int, int and -1  
						
						
						
						
					 
					
						2005-09-27 18:51:04 +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 
							
						 
					 
					
						
						
							
						
						2aa27f9ecb 
					 
					
						
						
							
							(svn r2932) Give the strings consisting of an up/a down arrow symbolic names  
						
						
						
						
					 
					
						2005-09-10 07:38:03 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						2412ad5a20 
					 
					
						
						
							
							(svn r2795) -Fix: [Clone vehilcle] all error messages should now tell the right vehicle type (chrishuebsch)  
						
						
						
						
					 
					
						2005-08-02 20:14:23 +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 
							
						 
					 
					
						
						
							
						
						2ae758a32b 
					 
					
						
						
							
							(svn r2780) Remove some more unused strings and make the use of a few strings more explicit  
						
						
						
						
					 
					
						2005-08-01 13:01:14 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						0ab62e7498 
					 
					
						
						
							
							(svn r2772) Simplify the age notice in the vehicle details window  
						
						
						
						
					 
					
						2005-07-31 22:28:49 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						059ae19626 
					 
					
						
						
							
							(svn r2764) -Feature: Clone vehicles  
						
						... 
						
						
						
						-This allows a player to clone an excisting vehicle of his own
  -[fix]: this uncovered an excisting bug in CmdBuildRailVehicle() where depots could build trains of the wrong track type. This is fixed
  -Thanks to Celestar for drawing the sprites and _luca_ for including them in openttd.grf 
						
						
					 
					
						2005-07-31 13:08:08 +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 
							
						 
					 
					
						
						
							
						
						71140a5768 
					 
					
						
						
							
							(svn r2669) Shuffle some more stuff around to reduce dependencies  
						
						
						
						
					 
					
						2005-07-21 22:15:02 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						186036229c 
					 
					
						
						
							
							(svn r2623) - CodeChange: rework DrawStringCenteredTruncated() a bit. Instead of giving center + width you give the coordinates of the bounding box (left, right) it has to fit in (ludde)  
						
						... 
						
						
						
						- CodeChange: changed (back) maximum pixel length of truncated strings to a signed integer. 
						
						
					 
					
						2005-07-17 19:23:18 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						3f8ba76b2f 
					 
					
						
						
							
							(svn r2613) - Truncate savegames, and vehicle-texts in their window.  
						
						... 
						
						
						
						- Hardcoded width 5 for saves-path...oops :O 
						
						
					 
					
						2005-07-17 17:15:33 +00:00 
						 
				 
			
				
					
						
							
							
								ludde 
							
						 
					 
					
						
						
							
						
						594dd34e84 
					 
					
						
						
							
							(svn r2594) Fix: [strgen] Misc updates to the string system.  
						
						... 
						
						
						
						- Renamed the plural command to "P" instead of "PLURAL". Now write something like this to append an s on plural: {P "" s}. (You can optionally still add an argument index to explicitly specifiy which number that's used)
  - Removed the pluralized cargo strings from the string files. The new method is to use the plural specifier {P}
  - Added support for genders. First add "##gender der das die" on top, then use {G=der} on a cargoname/industry to set the gender, and to switch between genders do something like {G neu neu neue} {STRING}
  - Updated the swedish/english translation with P strings. 
						
						
					 
					
						2005-07-16 20:58:04 +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 
							
						 
					 
					
						
						
							
						
						a733fede9b 
					 
					
						
						
							
							(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"  
						
						
						
						
					 
					
						2005-06-24 12:38:35 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						354058341b 
					 
					
						
						
							
							(svn r2468) -Codechange: Got rid of DEREF_PLAYER and replaced it by GetPlayer  
						
						
						
						
					 
					
						2005-06-21 16:28:17 +00:00 
						 
				 
			
				
					
						
							
							
								hackykid 
							
						 
					 
					
						
						
							
						
						90900802b9 
					 
					
						
						
							
							(svn r2444)  - CodeChange: Add an enum for demagicifying the values of the 'flags' parameter of DrawFrameRect(). (_Abraxa_)  
						
						
						
						
					 
					
						2005-06-15 17:27:14 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						d2364f1d51 
					 
					
						
						
							
							(svn r2432) Use GetEngine() instead of DEREF_ENGINE() or even _engines[]  
						
						
						
						
					 
					
						2005-06-07 18:13:49 +00:00 
						 
				 
			
				
					
						
							
							
								hackykid 
							
						 
					 
					
						
						
							
						
						daae0d315a 
					 
					
						
						
							
							(svn r2428)  - Feature: [newgrf] Implement shorter train vehicles (Therax), and the callback that goes with it.  
						
						... 
						
						
						
						- Codechange: Remove some magic numbers (PALETTE_CRASH) 
						
						
					 
					
						2005-06-06 22:44:11 +00:00 
						 
				 
			
				
					
						
							
							
								hackykid 
							
						 
					 
					
						
						
							
						
						eebe82c983 
					 
					
						
						
							
							(svn r2413)  - Codechange: Rewrite the displaying of purchase details a bit, make it easyer to add lines later.  
						
						... 
						
						
						
						- Add: In the purchase details for trains display "(refittable)" after the capacity if the vehicle is refittable. 
						
						
					 
					
						2005-06-05 23:01:10 +00:00 
						 
				 
			
				
					
						
							
							
								hackykid 
							
						 
					 
					
						
						
							
						
						c4b426ef8c 
					 
					
						
						
							
							(svn r2412)  - Fix: [ 1214948 ] building vehicles without depot crashes game. (Chris Huebsch)  
						
						
						
						
					 
					
						2005-06-05 20:45:04 +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 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						4eebeff58c 
					 
					
						
						
							
							(svn r2324) Introduce _cmd_text for passing strings with a command instead of abusing _decode_parameters as text buffer. This should prevent several possible buffer overruns and is a bit cleaner to use. As bonus it reduces the size of most command packets by 79 bytes.  
						
						
						
						
					 
					
						2005-05-15 18:50:55 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						7470322a3d 
					 
					
						
						
							
							(svn r2306) - CodeChange: Check the last commands; refits. This needed an extensive rewrite and global/local-cargo ID juggling and bitmasking. However with this done it looks better as well and is compatible with newgrf handling. Big thanks to HackyKid for doing most of the work. This also closes patch "[ 1199277 ] Command checks"  
						
						
						
						
					 
					
						2005-05-14 12:36:16 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						5693f22f18 
					 
					
						
						
							
							(svn r2294) - CodeChange: check the service interval settings when changing of all vehicle-types. To simplify things introduce GetServiceIntervalClamped() that returns the same or clamped value of the new service interval. There were some inconsistencies in the gui files so I had to change those, and const correctness kicked in, so it's a bit messy at certain points.  
						
						
						
						
					 
					
						2005-05-11 16:17:03 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						9b6c01f81f 
					 
					
						
						
							
							(svn r1989) -Feature: Resizable vehicle view windows; this is based on a patch by tmesisbob  
						
						
						
						
					 
					
						2005-03-11 13:17:39 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						c644e6b742 
					 
					
						
						
							
							(svn r1827) Next iteration of the byte -> char transition: some string drawing functions and buffers  
						
						
						
						
					 
					
						2005-02-06 18:30:45 +00:00