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
 
@@ -508,24 +508,26 @@ static const OptionData _options[] = {
 
	 GETOPT_SHORT_NOVAL('Q'),
 
	GETOPT_END()
 
};
 

	
 
/**
 
 * Main entry point for this lovely game.
 
 * @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;
 
	std::string music_set;
 
	Dimension resolution = {0, 0};
 
	std::unique_ptr<AfterNewGRFScan> scanner(new AfterNewGRFScan());
 
	bool dedicated = false;
 
	bool only_local_path = false;
 

	
0 comments (0 inline, 0 general)