From 561f6ab6e8100478183f9439bcb862b11400e831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20G=C3=B6ffringmann?= Date: Thu, 21 Oct 2004 08:47:13 +0000 Subject: [PATCH] enable czech control panel. should work. svn-id: r15628 --- sword1/control.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/sword1/control.cpp b/sword1/control.cpp index 5b427f4956b..9efeefc4956 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();