Changeset - r28819:f495cf1ac8a1
[Not reviewed]
master
0 1 0
Patric Stout - 9 months ago 2024-02-27 01:41:59
truebrain@openttd.org
Fix: initialize _switch_mode_time so crash-logs before first game have a realistic time (#12184)
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/openttd.cpp
Show inline comments
 
@@ -514,12 +514,14 @@ static const OptionData _options[] = {
 
 * @param argc The number of arguments passed to this game.
 
 * @param argv The values of the arguments.
 
 * @return 0 when there is no error.
 
 */
 
int openttd_main(int argc, char *argv[])
 
{
 
	_switch_mode_time = std::chrono::steady_clock::now();
 

	
 
	std::string musicdriver;
 
	std::string sounddriver;
 
	std::string videodriver;
 
	std::string blitter;
 
	std::string graphics_set;
 
	std::string sounds_set;
0 comments (0 inline, 0 general)