tron 
							
						 
					 
					
						
						
							
						
						4a14a586e2 
					 
					
						
						
							
							(svn r3173) Use the trinary operator and switch to improve readability  
						
						... 
						
						
						
						Also align short cases nicely 
						
						
					 
					
						2005-11-13 14:54:09 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						ee15e3de13 
					 
					
						
						
							
							(svn r3172) static, const  
						
						
						
						
					 
					
						2005-11-13 13:43:55 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						a20b9c2240 
					 
					
						
						
							
							(svn r3159) Remove the read-only variable _no_button_sound  
						
						
						
						
					 
					
						2005-11-09 11:32:15 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						947fc8a8ec 
					 
					
						
						
							
							(svn r3153) - Feature: [ 1276827 ] Drag and drop rocky areas in scenario editor (MeusH-ish)  
						
						
						
						
					 
					
						2005-11-07 16:19:45 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						c1c086d9a0 
					 
					
						
						
							
							(svn r3108) Confine the use of SPR_OPENTTD_BASE to table/sprites.h by adding/using some sprite enums  
						
						
						
						
					 
					
						2005-10-31 10:23:58 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						203726ed34 
					 
					
						
						
							
							(svn r3090) Remove long dead pieces of code  
						
						
						
						
					 
					
						2005-10-26 07:12:14 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						bf467bd99c 
					 
					
						
						
							
							(svn r3081) -Codechange: [autoreplace] complete rewrite of autoreplace  
						
						... 
						
						
						
						this is a complete rewrite, that makes use of existing commands like build and sell
        this means that multiheaded train engines are replaced correctly 
						
						
					 
					
						2005-10-24 19:40:48 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						47137cefb7 
					 
					
						
						
							
							(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 
							
						 
					 
					
						
						
							
						
						2cc2154ad2 
					 
					
						
						
							
							(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 
							
						 
					 
					
						
						
							
						
						66bf4f863d 
					 
					
						
						
							
							(svn r3049) Replace byte/int/uint by RailType where appropriate  
						
						
						
						
					 
					
						2005-10-16 09:13:04 +00:00 
						 
				 
			
				
					
						
							
							
								bjarni 
							
						 
					 
					
						
						
							
						
						cafd3528a4 
					 
					
						
						
							
							(svn r3027) -Feature: [OSX] command+q now works in main menu (Tobin)  
						
						
						
						
					 
					
						2005-10-07 20:53:21 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						ce1c72cf6e 
					 
					
						
						
							
							(svn r2995) Replace 0xFF/0xFFFF with CT_INVALID/OWNER_SPECTATOR/INVALID_STATION where appropriate  
						
						
						
						
					 
					
						2005-09-28 19:35:36 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						6249dd46ad 
					 
					
						
						
							
							(svn r2994) Another small hack regarding currencies: add a #define to emulate a variable, that holds the current currency; again this should increase readability  
						
						
						
						
					 
					
						2005-09-27 20:55:42 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						ff30404170 
					 
					
						
						
							
							(svn r2992) Use PlayerID, StationID and INVALID_STATION instead of int, int and -1  
						
						
						
						
					 
					
						2005-09-27 18:51:04 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						8e6a911700 
					 
					
						
						
							
							(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 
							
						 
					 
					
						
						
							
						
						4797310f91 
					 
					
						
						
							
							(svn r2958) - Feature: [ 1258971 ] Menu option to toggle console. Mainly for MacOS's or PDA's. (toholio)  
						
						
						
						
					 
					
						2005-09-16 10:50:06 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						180997534c 
					 
					
						
						
							
							(svn r2956) - Fix: [ 1253736 ] creating many town crash to desktop. Now it 'dies' with an ingame error message informing the gamer if it couldn't generate any towns in user-space. Still if it happens during new-game generation it crashes since we don't yet have actions to do in such a circumstance.  
						
						
						
						
					 
					
						2005-09-16 00:33:33 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						1419244551 
					 
					
						
						
							
							(svn r2955) Fix: make ottd start with the last resolution you had set (custom) (win32)  
						
						
						
						
					 
					
						2005-09-15 22:42:59 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						65bdb2ce67 
					 
					
						
						
							
							(svn r2887) Fix regression: Two boolean expressions got flipped in r2595, which made it possible to place lighthouses and antennas everywhere BUT clear tiles (found and fixed by _Luca_)  
						
						
						
						
					 
					
						2005-08-24 18:47:26 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						ddb58492f3 
					 
					
						
						
							
							(svn r2816) Forgot an Id tag and an #include  
						
						
						
						
					 
					
						2005-08-06 15:18:26 +00:00 
						 
				 
			
				
					
						
							
							
								ludde 
							
						 
					 
					
						
						
							
						
						29564f9fcf 
					 
					
						
						
							
							(svn r2781) Fix some of the issues with variables in .h files.  
						
						
						
						
					 
					
						2005-08-01 16:31:19 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						04f4d8237b 
					 
					
						
						
							
							(svn r2736) -Codechange: De-mystified GfxDrawFillRect a bit, and used enums from table/sprites.h. You can now change the number of bits used for sprites and switches in the SpriteSetup enum and the rest should work automagically. Can be used to increase the number of active sprites to 2^19 in case there are no colortables (recolor sprites) in any newgrf. We should possibly move the the colortables to an own list, but how to detect them in a newgrf.  
						
						
						
						
					 
					
						2005-07-28 09:17:32 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						727dea5824 
					 
					
						
						
							
							(svn r2734) -Feature: The Main Toolbar Dropdown Menu can now display disabled items  
						
						
						
						
					 
					
						2005-07-28 08:49:29 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						af9f55c977 
					 
					
						
						
							
							(svn r2720) Remove unused declarations and definitions  
						
						
						
						
					 
					
						2005-07-26 19:34:03 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						a227065ab7 
					 
					
						
						
							
							(svn r2701) Insert Id tags into all source files  
						
						
						
						
					 
					
						2005-07-24 14:12:37 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						559babcdc9 
					 
					
						
						
							
							(svn r2673) Include functions.h directly, not globally via openttd.h  
						
						
						
						
					 
					
						2005-07-22 07:02:20 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						0762aa9ec9 
					 
					
						
						
							
							(svn r2669) Shuffle some more stuff around to reduce dependencies  
						
						
						
						
					 
					
						2005-07-21 22:15:02 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						d71788c402 
					 
					
						
						
							
							(svn r2660) Get rid of some more shifting/anding/casting  
						
						
						
						
					 
					
						2005-07-21 06:31:02 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						18a93cca3d 
					 
					
						
						
							
							(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 
							
						 
					 
					
						
						
							
						
						59d4ab3752 
					 
					
						
						
							
							(svn r2626) static, const, misc.  
						
						
						
						
					 
					
						2005-07-17 20:14:58 +00:00 
						 
				 
			
				
					
						
							
							
								truelight 
							
						 
					 
					
						
						
							
						
						658f9cb03f 
					 
					
						
						
							
							(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 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						9ca761b065 
					 
					
						
						
							
							(svn r2595) -Codechange: Introduced "IsSteepTileh" to find whether a tile is steep  
						
						... 
						
						
						
						(i.e. spans two height levels) and use it throughout the code.
-Codechange: Add CanBuildDepotByTileh to find if a tile is suitable to
build a depot on it. Wraps some bitmagic which seems quite unreadable at
first glance 
						
						
					 
					
						2005-07-16 23:47:37 +00:00 
						 
				 
			
				
					
						
							
							
								ludde 
							
						 
					 
					
						
						
							
						
						6013b327f7 
					 
					
						
						
							
							(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 
							
						 
					 
					
						
						
							
						
						8c1d74162f 
					 
					
						
						
							
							(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 
							
						 
					 
					
						
						
							
						
						bec5e4fb4c 
					 
					
						
						
							
							(svn r2487) Replace TILE_XY by TileXY/TileDiffXY  
						
						
						
						
					 
					
						2005-06-25 16:44:57 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						3154e7148d 
					 
					
						
						
							
							(svn r2483) Replace almost 500 "uint tile" (and variants) with "TileIndex tile"  
						
						
						
						
					 
					
						2005-06-24 12:38:35 +00:00 
						 
				 
			
				
					
						
							
							
								celestar 
							
						 
					 
					
						
						
							
						
						aa7334a3ec 
					 
					
						
						
							
							(svn r2468) -Codechange: Got rid of DEREF_PLAYER and replaced it by GetPlayer  
						
						
						
						
					 
					
						2005-06-21 16:28:17 +00:00 
						 
				 
			
				
					
						
							
							
								hackykid 
							
						 
					 
					
						
						
							
						
						6533db736c 
					 
					
						
						
							
							(svn r2438)  - Feature: New display option, 'transparent station signs', makes station signs transparent instead of using a solid bar to draw text on (peter1138)  
						
						
						
						
					 
					
						2005-06-14 10:59:05 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						5fed47964e 
					 
					
						
						
							
							(svn r2420) - Codechange: magic number elminitation of cursorsprites.  
						
						
						
						
					 
					
						2005-06-06 13:47:06 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						b438b1248c 
					 
					
						
						
							
							(svn r2397) - CodeChange: rename all "ttd" files to "openttd" files.  
						
						
						
						
					 
					
						2005-06-02 19:30:21 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						a51cfd58b8 
					 
					
						
						
							
							(svn r2391) - Feature: saving games happen in a seperate thread so you no longer will have to wait such a long time (especially handy on bigger maps and multiplayer games). The mouse also changes into the 'ZZZ' state :P. The thread on windows is currently given a little-bit-less-than-normal priority so it should not interfere that much with the gameplay; it will take a bit longer though. Upon the exit of the game any pending saves are waited upon.  
						
						... 
						
						
						
						- Fix: fixed GetSavegameFormat() so that it takes the best compressor (highest), or a forced one added with the parameter
- Open issues: 
1. Don't attempt to load a game while saving is in progress, it will kick you back to the intro-screen with only the vast ocean to look at.
2. The server is disabled from threaded-saving, but might be enabled in the future.
3. Current implementation only allows 1 additional running thread.
4. Stupid global variables.....grrr
Big thanks for TrueLight and the amazing memorypool :D 
						
						
					 
					
						2005-06-01 23:08:33 +00:00 
						 
				 
			
				
					
						
							
							
								tron 
							
						 
					 
					
						
						
							
						
						fea5965679 
					 
					
						
						
							
							(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 
							
						 
					 
					
						
						
							
						
						0ff942f560 
					 
					
						
						
							
							(svn r2303) - CodeChange (fix): when giving money to other players only allow transferring money that is above your loan. Eg you can't give away your loan.  
						
						... 
						
						
						
						- Langfix: 'goes down by' 'increases', vv for down in english.txt. 
						
						
					 
					
						2005-05-13 17:09:05 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						921cc4e94a 
					 
					
						
						
							
							(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 
							
						 
					 
					
						
						
							
						
						81474c2623 
					 
					
						
						
							
							(svn r2276) - CodeChange: remove DebugProc() and make the ALT+0...4 codes only available in debug mode  
						
						
						
						
					 
					
						2005-05-06 20:38:18 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						0fa9c23225 
					 
					
						
						
							
							(svn r2209) - CodeChange: [ 1184348 ] Remove unused _newspaper_flag that was supposed to be some ugly hack for chatting (gonewacko)  
						
						
						
						
					 
					
						2005-04-16 18:09:24 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						174030a15f 
					 
					
						
						
							
							(svn r2201) - Fix: Crash in scenario-editor with terraforming out-of-map bounds.  
						
						
						
						
					 
					
						2005-04-14 22:59:49 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						febae668fe 
					 
					
						
						
							
							(svn r2192) - Add greater control to the 'message options' window. Now you can turn off the telegraphc ticker sound for summarized messages, or turn off news-messages altogether (you get a red blot to notify you though). The [<][>] set the settings in one way, while clicking on the option itself, cycles it. This commit also 'fixes' bugs [1166973], [1121484] and patch [1169930].  
						
						... 
						
						
						
						- I also changed an order of strings from On, Off to Off, On, so this can be used ingame with the WWT_4 widget type.
- Since the newssettings now take 2 bits per setting (off/summary/on) _news_display_opt is widened to 32 bits and the settings code changed slightly to accomodate for a maximum of 16 message-types. 
						
						
					 
					
						2005-04-13 23:03:31 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						081ff24282 
					 
					
						
						
							
							(svn r2161) - Fix: When resizing a window, the button is also visibly depressed  
						
						... 
						
						
						
						- CodeChange: Use images as arrows in the scenario-date scroller, looks better
- Feature: Clicked buttons with images/text now visibly depress their contents when pressed (eg it really seems like the button is moving)
- Fix: Fix sprite offsets of the arrow sprites in openttd.grf 
						
						
					 
					
						2005-04-07 00:59:54 +00:00 
						 
				 
			
				
					
						
							
							
								Darkvater 
							
						 
					 
					
						
						
							
						
						31381af8a0 
					 
					
						
						
							
							(svn r2143) - Fix: [ 1175748 ] Wrong Button-Images in scenario-editors landscape-tool (thanks chrishuebsch)  
						
						
						
						
					 
					
						2005-04-03 13:40:13 +00:00