peter1138 
							
						 
					 
					
						
						
							
						
						2222907a40 
					 
					
						
						
							
							(svn r3396) - Autoreplace changes:  
						
						... 
						
						
						
						- Change fixed array per player to a single pool. This avoids future problems
    with vehicle numbers and decreases savegame size. Engine replacements from
    previous savegames will be lost.
  - Move engine replacement code from players.c to engine.c.
                                      (thanks to blathijs for rewriting this) 
						
						
					 
					
						2006-01-12 15:52:18 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						318fe153eb 
					 
					
						
						
							
							(svn r3365) Staticise 36 functions  
						
						
						
						
					 
					
						2006-01-05 12:40:50 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						d5ce50a405 
					 
					
						
						
							
							(svn r3359) - Autoreplace GUI: When starting or stopping a replacement, redraw the replace window after the command has completed, rather than after calling the command.  
						
						
						
						
					 
					
						2006-01-02 19:55:09 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						0975885240 
					 
					
						
						
							
							(svn r3343) Fix calculation of available rail types where all engines of a particular type are obsolete.  
						
						
						
						
					 
					
						2005-12-26 15:41:24 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						28b8b7e269 
					 
					
						
						
							
							(svn r3300) Remove unreachable code - in this case some duplicate breaks  
						
						
						
						
					 
					
						2005-12-14 06:49:54 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						14064b223d 
					 
					
						
						
							
							(svn r3239) - Codechange: Introduce and use helper functions for engine replacement code.  
						
						
						
						
					 
					
						2005-11-26 16:41:14 +00:00 
						 
				 
			
				
					
						
							
							
								truelight 
							
						 
					 
					
						
						
							
						
						e4cb8ed457 
					 
					
						
						
							
							(svn r3226) -Fix: GPMI implementation had minor glitches  
						
						... 
						
						
						
						-Fix: the AI speed control is done by the AI-core, individual AIs don't have to do it (so, AIs were delayed twice ;)
-Add: Support for AI-network-clients (an AI, connecting to a remote server)
-Fix: minor AI-core problems 
						
						
					 
					
						2005-11-22 15:55:38 +00:00 
						 
				 
			
				
					
						
							
							
								truelight 
							
						 
					 
					
						
						
							
						
						af6fe3949b 
					 
					
						
						
							
							(svn r3224) -Add: Allow the NewAI to work in Multiplayer Games (switchable via patch  
						
						... 
						
						
						
						settings, off by defaut). An other step to AIScripts.
      WARNING: this is still highly experimental and has known bugs! 
						
						
					 
					
						2005-11-21 14:28:31 +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 
							
						 
					 
					
						
						
							
						
						b34de09e62 
					 
					
						
						
							
							(svn r3176) Use proper types, not some variants of int  
						
						
						
						
					 
					
						2005-11-13 21:16:34 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						df6c48fdba 
					 
					
						
						
							
							(svn r3155) -Feature: [autoreplace] autoreplace can now remove cars from too long trains  
						
						... 
						
						
						
						-Trains will now remember the length of stations it visits and sell cars
        when being autoreplaced if they became too long
        -If it needs to remove cars, then it starts from the front and sells
        all it can find until the train is short enough
        -This only works for trains, that knows the station length of the route
        so a full uninterrupted run is needed
        -a train needs 1-2 runs to detect if the shortest station is expanded
        -This feature can be turned on and off in the train replace window
        and each company can have it's own setting
        -NOTE: minor savegame version bump 
						
						
					 
					
						2005-11-07 23:20:47 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						1258ca0bf0 
					 
					
						
						
							
							(svn r3154) - Fix: Last value of an array is lengthof-1; let's keep this at a typo, shall we :P  
						
						
						
						
					 
					
						2005-11-07 17:31:21 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						5f281a25f2 
					 
					
						
						
							
							(svn r3151) - Fix: showing the highscore might crash the game with an invalid string message in the case when a highscore file was used before certain strings were added.  
						
						... 
						
						
						
						- Codechange: protect _endgame_perf_titles from out-of-bounds access. 
						
						
					 
					
						2005-11-07 13:30:43 +00:00 
						 
				 
			
				
					
						
							
							
								peter1138 
							
						 
					 
					
						
						
							
						
						8d4031a570 
					 
					
						
						
							
							(svn r3109) Replace two occurrences of '256' with TOTAL_NUM_ENGINES  
						
						
						
						
					 
					
						2005-10-31 11:22:52 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						cb0c82fdc3 
					 
					
						
						
							
							(svn r3087) Rewrite GetPlayerRailtypes() so it doesn't depend on magical numbers to sort out wagons  
						
						
						
						
					 
					
						2005-10-25 18:29:32 +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 
							
						 
					 
					
						
						
							
						
						d7cbd0d4c3 
					 
					
						
						
							
							(svn r3073) int/byte -> EngineID/PlayerID/VehicleID  
						
						... 
						
						
						
						0/-1 -> INVALID_ENGINE
0x10 -> OWNER_NONE 
						
						
					 
					
						2005-10-20 17:43:13 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						b17b87469c 
					 
					
						
						
							
							(svn r3064) Replace some numbers by sprite names  
						
						
						
						
					 
					
						2005-10-19 06:46:41 +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 
							
						 
					 
					
						
						
							
						
						6d7c7e67b2 
					 
					
						
						
							
							(svn r3010) Get rid of quite some dubious casts, either by using GB(), proper types or just removing them  
						
						
						
						
					 
					
						2005-10-03 21:20:01 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						980808dac2 
					 
					
						
						
							
							(svn r3001) s/Player*/const Player*/  
						
						... 
						
						
						
						s/byte/PlayerID/
s/int/PlayerID/
and related changes 
						
						
					 
					
						2005-09-30 20:37:25 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						90e33aed22 
					 
					
						
						
							
							(svn r2995) Replace 0xFF/0xFFFF with CT_INVALID/OWNER_SPECTATOR/INVALID_STATION where appropriate  
						
						
						
						
					 
					
						2005-09-28 19:35:36 +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 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						c0c75ef16e 
					 
					
						
						
							
							(svn r2951) - Fix: [ 1259345 ] Changing engine in netgame opens train window for everyone  
						
						... 
						
						
						
						- Add IsLocalPlayer() which substitutes _local_player == _current_player 
						
						
					 
					
						2005-09-14 18:03:38 +00:00 
						 
				 
			
				
					
						
							
							
								truelight 
							
						 
					 
					
						
						
							
						
						6145b99c22 
					 
					
						
						
							
							(svn r2921) -Codechange: moved all AI-code to 1 central place (ai/ai.c)  
						
						... 
						
						
						
						-Fix: removed the ability for the oldAI to cheat (this will criple him somewhat)
-Add: base-code for many improvements to come in the AI-system
-Add: added base-code for multiplayer AIs (DOES NOT WORK YET!) 
						
						
					 
					
						2005-09-07 15:10:11 +00:00 
						 
				 
			
				
					
						
							
							
								truelight 
							
						 
					 
					
						
						
							
						
						620f36acb6 
					 
					
						
						
							
							(svn r2907) -Codechange: splitted the AIs to their own directory. AINew becomes 'trolly', AIOld becomes 'default', both in their own dir in the 'ai' dir. More AIs to come.  
						
						
						
						
					 
					
						2005-09-02 19:10:45 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						9952ff0b59 
					 
					
						
						
							
							(svn r2817) -Codechange: [autoreplace]: moved autoreplace and autorenew to serverside  
						
						... 
						
						
						
						-This means that one company can only have one setting for renew and replacing
    more clients will not fight due to different settings anymore
  -This is a needed step in the line to fix autoreplacing dualheaded locomotives
  NOTE: savegame revision bump (peter1138 + me in coop) 
						
						
					 
					
						2005-08-06 16:07:22 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						452652e85e 
					 
					
						
						
							
							(svn r2720) Remove unused declarations and definitions  
						
						
						
						
					 
					
						2005-07-26 19:34:03 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						a3739aecdf 
					 
					
						
						
							
							(svn r2702) -Codechange: Cleaned up the sprite code and replaced many magic numbers  
						
						... 
						
						
						
						by enums. There remains work in gfx.c to move the "transparency" and
"recolor" bits around to make space for more sprites. However, 2800
additional sprites can now be loaded. There also remains cleanup and
Doxygen work on many of the header files. 
						
						
					 
					
						2005-07-24 15:56:31 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						647cbd6bdd 
					 
					
						
						
							
							(svn r2701) Insert Id tags into all source files  
						
						
						
						
					 
					
						2005-07-24 14:12:37 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						dd36a3660f 
					 
					
						
						
							
							(svn r2684) Correctly save and load company_value, it's 64 bits wide, not 32 bits  
						
						
						
						
					 
					
						2005-07-23 06:51:26 +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 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						7bce410f61 
					 
					
						
						
							
							(svn r2657) -Codechange: The available railtypes per player are now a bitmask, so  
						
						... 
						
						
						
						that railtypes do not be in ascending order of appearance. Allows easier
implementation or more railtypes 
						
						
					 
					
						2005-07-20 22:02:58 +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 
						 
				 
			
				
					
						
							
							
								truelight 
							
						 
					 
					
						
						
							
						
						f4032b8f9f 
					 
					
						
						
							
							(svn r2629) -Codechange: removed stupid comment on top of players.c  
						
						
						
						
					 
					
						2005-07-18 23:33:14 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						5261529887 
					 
					
						
						
							
							(svn r2617) - Fix: fix some warnings, and reenable vs.net2003 signed/unsigned warnings  
						
						
						
						
					 
					
						2005-07-17 18:11:17 +00:00 
						 
				 
			
				
					
						
							
							
								truelight 
							
						 
					 
					
						
						
							
						
						a28295b394 
					 
					
						
						
							
							(svn r2606) -Codechange: renamed ai.c to ai_old.c, and ai.h to ai_new.h to make room  
						
						... 
						
						
						
						for a global AI-handler 
						
						
					 
					
						2005-07-17 15:34:10 +00:00 
						 
				 
			
				
					
						
							
							
								truelight 
							
						 
					 
					
						
						
							
						
						8f405a42da 
					 
					
						
						
							
							(svn r2602) -Codechange: removed unused variable (disable_computer)  
						
						... 
						
						
						
						-Fix: Changed some stuff to make server-side AIs possible in the far future 
						
						
					 
					
						2005-07-17 13:34:19 +00:00 
						 
				 
			
				
					
						
							
							
								ludde 
							
						 
					 
					
						
						
							
						
						dc3ca73bd5 
					 
					
						
						
							
							(svn r2580) Change: Added {INDUSTRY} command for printing industry names instead of the old {TOWN} {STRING} way.  
						
						... 
						
						
						
						- The formatting of the industry name can be controlled with the string STR_INDUSTRY_FORMAT.
Change: Changed several occurences of {STRING1} into {TOWN} to get rid of townnametype being used directly. 
						
						
					 
					
						2005-07-15 18:30:13 +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 
						 
				 
			
				
					
						
							
							
								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 
							
						 
					 
					
						
						
							
						
						f4f5cb93f8 
					 
					
						
						
							
							(svn r2387) - CodeChange: made the saveload code more readable and also removed the 'byte' saveload arrays which means you can save an array of more than 255 elements, or bigger structs than 255 bytes. This doesn't yet solve the problem that a chunk can be a maximum of 16384 big.  
						
						... 
						
						
						
						- Fix: also fix an unnoticed error in SlSaveLoadConv() due to wrong types. 
						
						
					 
					
						2005-05-30 22:16:05 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						59c9fee33f 
					 
					
						
						
							
							(svn r2339) - Fix: on a dedicated server, after the joining of a player, the player was set to player 0 instead of remaining OWNER_SPECTATOR. Fix this, and allow the dedicated server to execute commands (so 'patch <value>') now works and not only when a client is connected.  
						
						
						
						
					 
					
						2005-05-17 18:22:59 +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