summaryrefslogtreecommitdiff
path: root/ttd.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-03-13 11:47:04 +0000
committerDarkvater <darkvater@openttd.org>2005-03-13 11:47:04 +0000
commitde47d0935f56817f5a93a1d6d600ee2c6332a569 (patch)
treeb39e85abeca1a5d7eb37f4ae8402b96da85f1968 /ttd.c
parent010d1a9be338ec98a1e2ff50ec5b39d309a477ef (diff)
downloadopenttd-de47d0935f56817f5a93a1d6d600ee2c6332a569.tar.xz
(svn r2005) - Fix: fix previous commit. Using 'New Game (scenario)' will use YOUR difficulty settings but ingame options (eg townnames, currency). Also settings are correctly saved when closing the difficulty window now.
Diffstat (limited to 'ttd.c')
-rw-r--r--ttd.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/ttd.c b/ttd.c
index 18f4de4a2..159306c18 100644
--- a/ttd.c
+++ b/ttd.c
@@ -789,8 +789,7 @@ void StartupDisasters(void);
/**
* Start Scenario starts a new game based on a scenario.
* Eg 'New Game' --> select a preset scenario
- * This starts a scenario based on your current difficulty settings just
- * fix the landscape as that can be different from what is selected in the intro
+ * This starts a scenario based on your current difficulty settings
*/
static void StartScenario(void)
{
@@ -818,12 +817,9 @@ static void StartScenario(void)
ShowErrorMessage(_error_message, STR_4009_GAME_LOAD_FAILED, 0, 0);
}
- {
- byte landscape = _opt.landscape; // backup loaded landscape;
- _opt_ptr = &_opt;
- memcpy(_opt_ptr, &_opt_newgame, sizeof(GameOptions));
- _opt_ptr->landscape = landscape;
- }
+ _opt_ptr = &_opt;
+ memcpy(&_opt_ptr->diff, &_opt_newgame.diff, sizeof(GameDifficulty));
+ _opt.diff_level = _opt_newgame.diff_level;
// Inititalize data
StartupPlayers();