src/console_cmds.cpp
changeset 7802 4ef9b4643680
parent 7543 c7af23e43b7e
child 8221 15f7a43df282
equal deleted inserted replaced
7801:79eb66c58764 7802:4ef9b4643680
  1076 {
  1076 {
  1077 	if (argc == 0) {
  1077 	if (argc == 0) {
  1078 		IConsoleHelp("Exit the game. Usage: 'exit'");
  1078 		IConsoleHelp("Exit the game. Usage: 'exit'");
  1079 		return true;
  1079 		return true;
  1080 	}
  1080 	}
       
  1081 
       
  1082 	if (_game_mode == GM_NORMAL && _patches.autosave_on_exit) DoExitSave();
  1081 
  1083 
  1082 	_exit_game = true;
  1084 	_exit_game = true;
  1083 	return true;
  1085 	return true;
  1084 }
  1086 }
  1085 
  1087