diff options
author | Robert Göffringmann | 2004-10-21 08:47:13 +0000 |
---|---|---|
committer | Robert Göffringmann | 2004-10-21 08:47:13 +0000 |
commit | 561f6ab6e8100478183f9439bcb862b11400e831 (patch) | |
tree | 88cb6a402bb5b9b8240f981c5bbb4bb5aee3c884 /sword1 | |
parent | 32d8d0adbf8c9fb08bf8a3b3432bfdbc5f3a1634 (diff) | |
download | scummvm-rg350-561f6ab6e8100478183f9439bcb862b11400e831.tar.gz scummvm-rg350-561f6ab6e8100478183f9439bcb862b11400e831.tar.bz2 scummvm-rg350-561f6ab6e8100478183f9439bcb862b11400e831.zip |
enable czech control panel. should work.
svn-id: r15628
Diffstat (limited to 'sword1')
-rw-r--r-- | sword1/control.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sword1/control.cpp b/sword1/control.cpp index 5b427f4956..9efeefc495 100644 --- a/sword1/control.cpp +++ b/sword1/control.cpp @@ -165,7 +165,7 @@ Control::Control(SaveFileManager *saveFileMan, ResMan *pResMan, ObjectMan *pObjM _music = pMusic; _sound = pSound; strcpy(_savePath, savePath); - _lStrings = _languageStrings + MIN(SwordEngine::_systemVars.language, (uint8)BS1_SPANISH) * 20; + _lStrings = _languageStrings + SwordEngine::_systemVars.language * 20; } void Control::askForCd(void) { @@ -423,8 +423,12 @@ void Control::setupMainPanel(void) { if (SwordEngine::_systemVars.deathScreenFlag == 1) panelId = SR_DEATHPANEL; - else - panelId = SR_PANEL_ENGLISH + MIN(SwordEngine::_systemVars.language, (uint8)BS1_SPANISH); + else { + if (SwordEngine::_systemVars.language <= BS1_SPANISH) + panelId = SR_PANEL_ENGLISH + SwordEngine::_systemVars.language; + else + panelId = SR_PANEL_ENGLISH; + } ControlButton *panel = new ControlButton( 0, 0, panelId, 0, _resMan, _screenBuf, _system); panel->draw(); |