src/openttd.cpp
changeset 8809 e0d09d74e805
parent 8790 4a7a796b3976
child 8811 1a3302cf5d5c
equal deleted inserted replaced
8808:6296dfa53f81 8809:e0d09d74e805
    91 void ResetMusic();
    91 void ResetMusic();
    92 
    92 
    93 extern void SetDifficultyLevel(int mode, GameOptions *gm_opt);
    93 extern void SetDifficultyLevel(int mode, GameOptions *gm_opt);
    94 extern Player* DoStartupNewPlayer(bool is_ai);
    94 extern Player* DoStartupNewPlayer(bool is_ai);
    95 extern void ShowOSErrorBox(const char *buf);
    95 extern void ShowOSErrorBox(const char *buf);
    96 extern void SetDefaultRailGui();
    96 extern void InitializeRailGUI();
    97 
    97 
    98 /* TODO: usrerror() for errors which are not of an internal nature but
    98 /* TODO: usrerror() for errors which are not of an internal nature but
    99  * caused by the user, i.e. missing files or fatal configuration errors.
    99  * caused by the user, i.e. missing files or fatal configuration errors.
   100  * Post-0.4.0 since Celestar doesn't want this in SVN before. --pasky */
   100  * Post-0.4.0 since Celestar doesn't want this in SVN before. --pasky */
   101 
   101 
   700 	SetLocalPlayer(PLAYER_FIRST);
   700 	SetLocalPlayer(PLAYER_FIRST);
   701 	_current_player = _local_player;
   701 	_current_player = _local_player;
   702 	DoCommandP(0, (_patches.autorenew << 15 ) | (_patches.autorenew_months << 16) | 4, _patches.autorenew_money, NULL, CMD_SET_AUTOREPLACE);
   702 	DoCommandP(0, (_patches.autorenew << 15 ) | (_patches.autorenew_months << 16) | 4, _patches.autorenew_money, NULL, CMD_SET_AUTOREPLACE);
   703 
   703 
   704 	SettingsDisableElrail(_patches.disable_elrails);
   704 	SettingsDisableElrail(_patches.disable_elrails);
   705 	SetDefaultRailGui();
   705 	InitializeRailGUI();
   706 
   706 
   707 #ifdef ENABLE_NETWORK
   707 #ifdef ENABLE_NETWORK
   708 	/* We are the server, we start a new player (not dedicated),
   708 	/* We are the server, we start a new player (not dedicated),
   709 	 * so set the default password *if* needed. */
   709 	 * so set the default password *if* needed. */
   710 	if (_network_server && !StrEmpty(_network_default_company_pass)) {
   710 	if (_network_server && !StrEmpty(_network_default_company_pass)) {
  1995 	/* from version 38 we have optional elrails, since we cannot know the
  1995 	/* from version 38 we have optional elrails, since we cannot know the
  1996 	 * preference of a user, let elrails enabled; it can be disabled manually */
  1996 	 * preference of a user, let elrails enabled; it can be disabled manually */
  1997 	if (CheckSavegameVersion(38)) _patches.disable_elrails = false;
  1997 	if (CheckSavegameVersion(38)) _patches.disable_elrails = false;
  1998 	/* do the same as when elrails were enabled/disabled manually just now */
  1998 	/* do the same as when elrails were enabled/disabled manually just now */
  1999 	SettingsDisableElrail(_patches.disable_elrails);
  1999 	SettingsDisableElrail(_patches.disable_elrails);
  2000 	SetDefaultRailGui();
  2000 	InitializeRailGUI();
  2001 
  2001 
  2002 	/* From version 53, the map array was changed for house tiles to allow
  2002 	/* From version 53, the map array was changed for house tiles to allow
  2003 	 * space for newhouses grf features. A new byte, m7, was also added. */
  2003 	 * space for newhouses grf features. A new byte, m7, was also added. */
  2004 	if (CheckSavegameVersion(53)) {
  2004 	if (CheckSavegameVersion(53)) {
  2005 		for (TileIndex t = 0; t < map_size; t++) {
  2005 		for (TileIndex t = 0; t < map_size; t++) {