openttd.c
branch0.4
changeset 10024 cec4977c086d
parent 9959 984493ab6fff
child 10041 9db77ebd952b
equal deleted inserted replaced
10023:4a72310c9cf5 10024:cec4977c086d
   630 	MarkWholeScreenDirty();
   630 	MarkWholeScreenDirty();
   631 }
   631 }
   632 
   632 
   633 void StartupPlayers(void);
   633 void StartupPlayers(void);
   634 void StartupDisasters(void);
   634 void StartupDisasters(void);
       
   635 extern void StartupEconomy(void);
   635 
   636 
   636 /**
   637 /**
   637  * Start Scenario starts a new game based on a scenario.
   638  * Start Scenario starts a new game based on a scenario.
   638  * Eg 'New Game' --> select a preset scenario
   639  * Eg 'New Game' --> select a preset scenario
   639  * This starts a scenario based on your current difficulty settings
   640  * This starts a scenario based on your current difficulty settings
   667 	_opt_ptr = &_opt;
   668 	_opt_ptr = &_opt;
   668 	memcpy(&_opt_ptr->diff, &_opt_newgame.diff, sizeof(GameDifficulty));
   669 	memcpy(&_opt_ptr->diff, &_opt_newgame.diff, sizeof(GameDifficulty));
   669 	_opt.diff_level = _opt_newgame.diff_level;
   670 	_opt.diff_level = _opt_newgame.diff_level;
   670 
   671 
   671 	// Inititalize data
   672 	// Inititalize data
       
   673 	StartupEconomy();
   672 	StartupPlayers();
   674 	StartupPlayers();
   673 	StartupEngines();
   675 	StartupEngines();
   674 	StartupDisasters();
   676 	StartupDisasters();
   675 
   677 
   676 	_local_player = 0;
   678 	_local_player = 0;