mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-25 04:01:03 +00:00
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:
parent
871ddc819c
commit
3899a50503
@ -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);
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user