SCUMM: Fix bugs when initializing default Loom Overture tempo

We now store the difference compared to the default value, rather than
the actual SCUMM ticks. Therefore, the default value for the setting is
0, not DEFAULT_LOOM_OVERTURE_TICKS.
This commit is contained in:
Torbjörn Andersson 2022-02-03 19:40:22 +01:00 committed by Torbjörn Andersson
parent 871ddc819c
commit 3899a50503
2 changed files with 1 additions and 2 deletions

View File

@ -721,7 +721,7 @@ EgaLoomOptionsWidget::EgaLoomOptionsWidget(GuiObject *boss, const Common::String
}
void EgaLoomOptionsWidget::load() {
int loomOvertureTicks = DEFAULT_LOOM_OVERTURE_TICKS;
int loomOvertureTicks = 0;
if (ConfMan.hasKey("loom_overture_ticks", _domain))
loomOvertureTicks = ConfMan.getInt("loom_overture_ticks", _domain);

View File

@ -1541,7 +1541,6 @@ void ScummEngine::setupScumm(const Common::String &macResourceFile) {
bool useReplacementAudioTracks = (_game.id == GID_LOOM && !(_game.features & GF_AUDIOTRACKS));
if (useReplacementAudioTracks) {
ConfMan.registerDefault("loom_overture_ticks", DEFAULT_LOOM_OVERTURE_TICKS);
_system->getAudioCDManager()->open();
}