diff --git a/modules/client_options/options.lua b/modules/client_options/options.lua index 6f83d475..ebbd115a 100644 --- a/modules/client_options/options.lua +++ b/modules/client_options/options.lua @@ -150,16 +150,16 @@ function Options.setOption(key, value) end g_app.setBackgroundPaneMaxFps(value) elseif key == 'foregroundFrameRate' then - local text = value - if value <= 0 or value >= 61 then - text = 'max' - value = 0 - end - - if graphicsPanel then - graphicsPanel:getChildById('foregroundFrameRateLabel'):setText(tr('Interface framerate limit: %s', text)) - end - g_app.setForegroundPaneMaxFps(value) + local text = value + if value <= 0 or value >= 61 then + text = 'max' + value = 0 + end + + if graphicsPanel then + graphicsPanel:getChildById('foregroundFrameRateLabel'):setText(tr('Interface framerate limit: %s', text)) + end + g_app.setForegroundPaneMaxFps(value) elseif key == 'painterEngine' then g_graphics.selectPainterEngine(value) end diff --git a/modules/game_console/console.lua b/modules/game_console/console.lua index bc6e0c86..f2cb0785 100644 --- a/modules/game_console/console.lua +++ b/modules/game_console/console.lua @@ -94,7 +94,7 @@ local function onCreatureSpeak(name, level, speaktype, message, channelId, creat if speaktype.private then Console.addPrivateText(composedMessage, speaktype, name, false, name) if Options.getOption('showPrivateMessagesOnScreen') then - if(speakType.speakType ~= privateNpcToPlayer) then + if(speaktype.speakType ~= SpeakPrivateNpcToPlayer) then TextMessage.displayPrivate(name .. ':\n' .. message) end end