frosch 
							
						 
					 
					
						
						
							
						
						68c64d2511 
					 
					
						
						
							
							Codechange: Remove TKM string codes by duplicating strings.  
						
						
						
						
					 
					
						2024-01-28 14:44:24 +01:00 
						 
				 
			
				
					
						
							
							
								Tyler Trahan 
							
						 
					 
					
						
						
							
						
						735abfe111 
					 
					
						
						
							
							Codechange: Split dates and timers into Economy and Calendar time ( #10700 )  
						
						
						
						
					 
					
						2024-01-22 09:04:34 -05:00 
						 
				 
			
				
					
						
							
							
								Peter Nelson 
							
						 
					 
					
						
						
							
						
						c0ab436077 
					 
					
						
						
							
							Codechange: Store Colours in Colours type. ( #11625 )  
						
						... 
						
						
						
						This reduces casts, some magic numbers, and introduces a bit of type-safety. 
						
						
					 
					
						2024-01-21 13:23:04 +00:00 
						 
				 
			
				
					
						
							
							
								frosch 
							
						 
					 
					
						
						
							
						
						f457be5a27 
					 
					
						
						
							
							Fix   #11819 ,  aa5ba5b: Out-of-bounds access in linkgraph GUI. ( #11821 )  
						
						
						
						
					 
					
						2024-01-17 22:26:33 +01:00 
						 
				 
			
				
					
						
							
							
								Rubidium 
							
						 
					 
					
						
						
							
						
						aa5ba5bd7f 
					 
					
						
						
							
							Codechange: allow certain enumeration to be added  
						
						... 
						
						
						
						Otherwise C++20 doesn't like it. 
						
						
					 
					
						2024-01-16 23:30:23 +01:00 
						 
				 
			
				
					
						
							
							
								Peter Nelson 
							
						 
					 
					
						
						
							
						
						7737aa6640 
					 
					
						
						
							
							Codechange: Make all NWidgetPart arrays constexpr.  
						
						... 
						
						
						
						This ensures that the arrays are not created at runtime and prevents using non-constexpr values. 
						
						
					 
					
						2024-01-16 21:57:05 +00:00 
						 
				 
			
				
					
						
							
							
								Peter Nelson 
							
						 
					 
					
						
						
							
						
						952d111b94 
					 
					
						
						
							
							Codechange: Split CT_INVALID into CT_INVALID and INVALID_CARGO.  
						
						... 
						
						
						
						INVALID_CARGO is a CargoID and should be used for most purposes in game.
CT_INVALID is a CargoType used for defining default properties. 
						
						
					 
					
						2024-01-09 18:56:05 +00:00 
						 
				 
			
				
					
						
							
							
								Peter Nelson 
							
						 
					 
					
						
						
							
						
						7124b4eef1 
					 
					
						
						
							
							Codechange: Use std::unique_ptr for all NWidgets.  
						
						
						
						
					 
					
						2023-12-31 15:33:56 +00:00 
						 
				 
			
				
					
						
							
							
								Peter Nelson 
							
						 
					 
					
						
						
							
						
						a0dfb76e34 
					 
					
						
						
							
							Codechange: Replace mishmash of types for widget index with WidgetID.  
						
						... 
						
						
						
						Indices were stored as int, but often passed around as uint/uint8_t and casts.
Now they should all use WidgetID. 
						
						
					 
					
						2023-12-30 00:23:57 +00:00 
						 
				 
			
				
					
						
							
							
								Peter Nelson 
							
						 
					 
					
						
						
							
						
						b86182ab84 
					 
					
						
						
							
							Codechange: Use std::map to provide indexed widget access.  
						
						... 
						
						
						
						This removes the need to determine the biggest widget index and replaces C-style memory handling. 
						
						
					 
					
						2023-12-29 18:45:43 +00:00 
						 
				 
			
				
					
						
							
							
								Tyler Trahan 
							
						 
					 
					
						
						
							
						
						2a62caa30b 
					 
					
						
						
							
							Codechange: Use Ticks for BaseConsist timetable fields  
						
						
						
						
					 
					
						2023-12-11 07:12:45 -05:00 
						 
				 
			
				
					
						
							
							
								Jonathan G Rennison 
							
						 
					 
					
						
						
							
						
						2cbe91c312 
					 
					
						
						
							
							Fix   #11551 ,  aab580e0a: Link graph job results were incorrectly applied ( #11558 )  
						
						... 
						
						
						
						Edge flows were incorrectly restricted because the restricted
instead of unrestricted last update date was checked
See also: #10314  
						
						
					 
					
						2023-12-07 18:38:43 +00:00 
						 
				 
			
				
					
						
							
							
								Peter Nelson 
							
						 
					 
					
						
						
							
						
						58c252b81a 
					 
					
						
						
							
							Cleanup: Remove unnecessary pressed button offset code.  
						
						
						
						
					 
					
						2023-12-05 21:12:35 +00:00 
						 
				 
			
				
					
						
							
							
								Jonathan G Rennison 
							
						 
					 
					
						
						
							
						
						c5a292c0df 
					 
					
						
						
							
							Fix   #11493 : Incorrect flow values in LinkGraphJob::EdgeAnnotation ( #11494 )  
						
						
						
						
					 
					
						2023-11-25 20:57:20 +00:00 
						 
				 
			
				
					
						
							
							
								Peter Nelson 
							
						 
					 
					
						
						
							
						
						c18a1494b7 
					 
					
						
						
							
							Codechange: Remove FONT_HEIGHT_... macros. ( #11481 )  
						
						... 
						
						
						
						These make it look like we're dealing with a constant, but actually each is a call to `GetCharacterHeight(...)`. 
						
						
					 
					
						2023-11-21 19:04:24 +00:00 
						 
				 
			
				
					
						
							
							
								Peter Nelson 
							
						 
					 
					
						
						
							
						
						d4008850e3 
					 
					
						
						
							
							Codechange: Ensure function opening { is on new line.  
						
						
						
						
					 
					
						2023-11-09 20:15:38 +00:00 
						 
				 
			
				
					
						
							
							
								Peter Nelson 
							
						 
					 
					
						
						
							
						
						ab535c0a86 
					 
					
						
						
							
							Codechange: Add base() method to StrongType to allow access to the base type without casting. ( #11445 )  
						
						... 
						
						
						
						This removes the ability to explicitly cast to the base type, but the requirement
to use .base() means the conversion is still explicit. 
						
						
					 
					
						2023-11-06 20:29:35 +00:00 
						 
				 
			
				
					
						
							
							
								Peter Nelson 
							
						 
					 
					
						
						
							
						
						bbd64bbe2b 
					 
					
						
						
							
							Fix   #9545 : Crash when all cargo types are disabled. ( #11432 )  
						
						... 
						
						
						
						This is not a very useful state, but it's nice to not crash.
Some parts of the game don't (yet) check for cargo types being redefined, that is out-of-scope here. 
						
						
					 
					
						2023-11-04 14:42:47 +00:00 
						 
				 
			
				
					
						
							
							
								Peter Nelson 
							
						 
					 
					
						
						
							
						
						18fb8e153f 
					 
					
						
						
							
							Codechange: Add __FILE__/__LINE__ of WindowDesc to WindowDesc.  
						
						... 
						
						
						
						This is to allow unit-tests to produce more useful output. 
						
						
					 
					
						2023-11-02 22:25:01 +00:00 
						 
				 
			
				
					
						
							
							
								Peter Nelson 
							
						 
					 
					
						
						
							
						
						53845bc024 
					 
					
						
						
							
							Codechange: Move includes to correct place.  
						
						... 
						
						
						
						Some other source file inadvertently included things via smallmap_gui.h 
						
						
					 
					
						2023-11-01 21:49:06 +00:00 
						 
				 
			
				
					
						
							
							
								Peter Nelson 
							
						 
					 
					
						
						
							
						
						f91462f54b 
					 
					
						
						
							
							Codechange: Don't access SmallMapWindow method directly from LinkGraphOverlay.  
						
						
						
						
					 
					
						2023-11-01 21:49:06 +00:00 
						 
				 
			
				
					
						
							
							
								Peter Nelson 
							
						 
					 
					
						
						
							
						
						49dae08a3b 
					 
					
						
						
							
							Codechange: Add missing override specifiers.  
						
						
						
						
					 
					
						2023-09-25 21:27:45 +01:00 
						 
				 
			
				
					
						
							
							
								frosch 
							
						 
					 
					
						
						
							
						
						b6c8f301be 
					 
					
						
						
							
							Codechange: Silence warnings about intentionally unused parameters.  
						
						
						
						
					 
					
						2023-09-19 22:49:59 +02:00 
						 
				 
			
				
					
						
							
							
								Peter Nelson 
							
						 
					 
					
						
						
							
						
						9d1b131c44 
					 
					
						
						
							
							Codechange: Use correct constant for invalid cargo type.  
						
						
						
						
					 
					
						2023-09-17 16:56:07 +01:00 
						 
				 
			
				
					
						
							
							
								Tyler Trahan 
							
						 
					 
					
						
						
							
						
						701a61c9af 
					 
					
						
						
							
							Codechange: Delete date_type.h  
						
						
						
						
					 
					
						2023-09-10 08:40:25 -04:00 
						 
				 
			
				
					
						
							
							
								Tyler Trahan 
							
						 
					 
					
						
						
							
						
						77173a6a10 
					 
					
						
						
							
							Codechange: Move date consts and functions to CalendarTime and TimerGameCalendar classes  
						
						
						
						
					 
					
						2023-09-10 08:40:25 -04:00 
						 
				 
			
				
					
						
							
							
								Tyler Trahan 
							
						 
					 
					
						
						
							
						
						fca2b37726 
					 
					
						
						
							
							Codechange: Move Ticks into their own class  
						
						
						
						
					 
					
						2023-09-10 08:40:25 -04:00 
						 
				 
			
				
					
						
							
							
								Peter Nelson 
							
						 
					 
					
						
						
							
						
						e8015e497d 
					 
					
						
						
							
							Codechange: Use begin/end of nwidget parts of begin/length.  
						
						... 
						
						
						
						This simplifies processing nwidget parts as, unlike the remaining length, the pointer to the end of the list never changes. This is the same principle as we use(d) for tracking end instead of length for C-style strings.
And this removes 160~ instances of the lengthof() macro. 
						
						
					 
					
						2023-09-04 10:20:45 +01:00 
						 
				 
			
				
					
						
							
							
								Patric Stout 
							
						 
					 
					
						
						
							
						
						299570b2c1 
					 
					
						
						
							
							Codechange: make TimerGameCalendar Date and Year types strongly typed ( #10761 )  
						
						
						
						
					 
					
						2023-08-12 18:14:21 +00:00 
						 
				 
			
				
					
						
							
							
								Patric Stout 
							
						 
					 
					
						
						
							
						
						a9ed590ca7 
					 
					
						
						
							
							Codechange: use TimerGameCalendar::Date for variables in linkgraph that are dates ( #11187 )  
						
						
						
						
					 
					
						2023-08-12 16:02:38 +02:00 
						 
				 
			
				
					
						
							
							
								Rubidium 
							
						 
					 
					
						
						
							
						
						eaae0bb5e7 
					 
					
						
						
							
							Codechange: automatic adding of _t to (u)int types, and WChar to char32_t  
						
						... 
						
						
						
						for i in `find src -type f|grep -v 3rdparty/fmt|grep -v 3rdparty/catch2|grep -v 3rdparty/opengl|grep -v stdafx.h`; do sed 's/uint16& /uint16 \&/g;s/int8\([ >*),;[]\)/int8_t\1/g;s/int16\([ >*),;[]\)/int16_t\1/g;s/int32\([ >*),;[]\)/int32_t\1/g;s/int64\([ >*),;[]\)/int64_t\1/g;s/ uint32(/ uint32_t(/g;s/_uint8_t/_uint8/;s/Uint8_t/Uint8/;s/ft_int64_t/ft_int64/g;s/uint64$/uint64_t/;s/WChar/char32_t/g;s/char32_t char32_t/char32_t WChar/' -i $i; done 
						
						
					 
					
						2023-07-19 19:30:14 +02:00 
						 
				 
			
				
					
						
							
							
								Jonathan G Rennison 
							
						 
					 
					
						
						
							
						
						864d2352c2 
					 
					
						
						
							
							Fix: Integer overflow in LinkGraphOverlay::ShowTooltip for long links  
						
						... 
						
						
						
						In particular when fully zoomed in
This could result in tooltips not being shown at all, or being shown
when not appropriate 
						
						
					 
					
						2023-07-16 10:10:04 +02:00 
						 
				 
			
				
					
						
							
							
								Rubidium 
							
						 
					 
					
						
						
							
						
						836541b41c 
					 
					
						
						
							
							Codechange: use SetDParam and CopyOutDParam for tooltips  
						
						
						
						
					 
					
						2023-06-17 10:01:19 +02:00 
						 
				 
			
				
					
						
							
							
								Rubidium 
							
						 
					 
					
						
						
							
						
						820fe8c621 
					 
					
						
						
							
							Codechange: use std::string and concatenation when combining multiple formatted strings  
						
						
						
						
					 
					
						2023-06-04 20:47:41 +02:00 
						 
				 
			
				
					
						
							
							
								Patric Stout 
							
						 
					 
					
						
						
							
						
						9eda419f9b 
					 
					
						
						
							
							Fix  646a7e62: recalc_time was not scaled properly ( #10901 )  
						
						... 
						
						
						
						This caused "runtime" to underflow or, if you are lucky, hit an
assert in ScaleToMonthly when it hits zero. But mostly underflow. 
						
						
					 
					
						2023-06-01 12:21:33 +00:00 
						 
				 
			
				
					
						
							
							
								PeterN 
							
						 
					 
					
						
						
							
						
						702194cfef 
					 
					
						
						
							
							Change: Cargo flow legend only shows defined cargo. ( #10872 )  
						
						... 
						
						
						
						This removes the large mostly-empty grid of cargo buttons when not using a complex industry set. 
						
						
					 
					
						2023-05-29 06:48:43 +01:00 
						 
				 
			
				
					
						
							
							
								Peter Nelson 
							
						 
					 
					
						
						
							
						
						c38df2d589 
					 
					
						
						
							
							Codechange: Use std::map instead of custom SmallMap.  
						
						
						
						
					 
					
						2023-05-18 12:18:30 +01:00 
						 
				 
			
				
					
						
							
							
								Peter Nelson 
							
						 
					 
					
						
						
							
						
						56085be9bd 
					 
					
						
						
							
							Codechange: Move includes for common STL headers to stdafx.  
						
						
						
						
					 
					
						2023-05-17 10:14:41 +01:00 
						 
				 
			
				
					
						
							
							
								Patric Stout 
							
						 
					 
					
						
						
							
						
						199e41c762 
					 
					
						
						
							
							Codechange: use default dtor instead of empty ( #10826 )  
						
						
						
						
					 
					
						2023-05-14 23:31:03 +02:00 
						 
				 
			
				
					
						
							
							
								Peter Nelson 
							
						 
					 
					
						
						
							
						
						e6740046ee 
					 
					
						
						
							
							Codechange: Use range-for iteration.  
						
						
						
						
					 
					
						2023-05-11 07:58:55 +01:00 
						 
				 
			
				
					
						
							
							
								Rubidium 
							
						 
					 
					
						
						
							
						
						68ff3fd062 
					 
					
						
						
							
							Change: include fmt.h C++ headers in stdafx.h  
						
						... 
						
						
						
						This to prevent compilation issues between runs with and without precompiled
headers. Also remove the headers from the rest of the code base as they are
not needed there anymore, although they do relatively little harm. 
						
						
					 
					
						2023-05-08 16:49:23 +02:00 
						 
				 
			
				
					
						
							
							
								Peter Nelson 
							
						 
					 
					
						
						
							
						
						0880616851 
					 
					
						
						
							
							Codechange: Remove various STRING strings.  
						
						
						
						
					 
					
						2023-05-05 07:07:54 +01:00 
						 
				 
			
				
					
						
							
							
								Tyler Trahan 
							
						 
					 
					
						
						
							
						
						6501f84b4a 
					 
					
						
						
							
							Codechange: Move calendar date functions inside TimerGameCalendar ( #10753 )  
						
						
						
						
					 
					
						2023-05-04 13:14:12 +00:00 
						 
				 
			
				
					
						
							
							
								Peter Nelson 
							
						 
					 
					
						
						
							
						
						6be6703498 
					 
					
						
						
							
							Fix: Linkgraph legend assumes strings are small.  
						
						... 
						
						
						
						Ensure all linkgraph legend strings are drawn with FS_SMALL forced, so
that it does not rely on NewGRF authors. 
						
						
					 
					
						2023-04-30 11:47:53 +01:00 
						 
				 
			
				
					
						
							
							
								PeterN 
							
						 
					 
					
						
						
							
						
						57f2d70fef 
					 
					
						
						
							
							Change: Use cstdint instead of rolling our own types. ( #10651 )  
						
						
						
						
					 
					
						2023-04-27 10:04:18 +02:00 
						 
				 
			
				
					
						
							
							
								Tyler Trahan 
							
						 
					 
					
						
						
							
						
						930f0a16d8 
					 
					
						
						
							
							Codechange: Define Date/Year/Month/Day within TimerGameCalendar class  
						
						
						
						
					 
					
						2023-04-26 07:14:03 -04:00 
						 
				 
			
				
					
						
							
							
								Patric Stout 
							
						 
					 
					
						
						
							
						
						7aa2b9ab0a 
					 
					
						
						
							
							Codechange: move all date-related variables inside the timer ( #10706 )  
						
						
						
						
					 
					
						2023-04-24 15:56:01 +00:00 
						 
				 
			
				
					
						
							
							
								PeterN 
							
						 
					 
					
						
						
							
						
						9910240f0e 
					 
					
						
						
							
							Cleanup: Remove obsolete (Make)EnumPropsT. ( #10697 )  
						
						... 
						
						
						
						This was used by the command system to help extract p1/p2 parameters, which no longer happens. 
						
						
					 
					
						2023-04-23 17:46:14 +01:00 
						 
				 
			
				
					
						
							
							
								Tyler Trahan 
							
						 
					 
					
						
						
							
						
						646a7e625b 
					 
					
						
						
							
							Change: Use seconds for Linkgraph update settings ( #10610 )  
						
						
						
						
					 
					
						2023-04-14 22:49:12 +02:00 
						 
				 
			
				
					
						
							
							
								Peter Nelson 
							
						 
					 
					
						
						
							
						
						5199881a8d 
					 
					
						
						
							
							Codechange: Use correct type for linkgraph company mask.  
						
						
						
						
					 
					
						2023-04-07 22:09:55 +01:00