Minor fix from last commit.

This commit is contained in:
BeniS 2012-07-08 02:44:53 +12:00
vanhempi 4453242bee
commit 69cc53d7f3
2 muutettua tiedostoa jossa 10 lisäystä ja 10 poistoa

Näytä tiedosto

@ -150,16 +150,16 @@ function Options.setOption(key, value)
end end
g_app.setBackgroundPaneMaxFps(value) g_app.setBackgroundPaneMaxFps(value)
elseif key == 'foregroundFrameRate' then elseif key == 'foregroundFrameRate' then
local text = value local text = value
if value <= 0 or value >= 61 then if value <= 0 or value >= 61 then
text = 'max' text = 'max'
value = 0 value = 0
end end
if graphicsPanel then if graphicsPanel then
graphicsPanel:getChildById('foregroundFrameRateLabel'):setText(tr('Interface framerate limit: %s', text)) graphicsPanel:getChildById('foregroundFrameRateLabel'):setText(tr('Interface framerate limit: %s', text))
end end
g_app.setForegroundPaneMaxFps(value) g_app.setForegroundPaneMaxFps(value)
elseif key == 'painterEngine' then elseif key == 'painterEngine' then
g_graphics.selectPainterEngine(value) g_graphics.selectPainterEngine(value)
end end

Näytä tiedosto

@ -94,7 +94,7 @@ local function onCreatureSpeak(name, level, speaktype, message, channelId, creat
if speaktype.private then if speaktype.private then
Console.addPrivateText(composedMessage, speaktype, name, false, name) Console.addPrivateText(composedMessage, speaktype, name, false, name)
if Options.getOption('showPrivateMessagesOnScreen') then if Options.getOption('showPrivateMessagesOnScreen') then
if(speakType.speakType ~= privateNpcToPlayer) then if(speaktype.speakType ~= SpeakPrivateNpcToPlayer) then
TextMessage.displayPrivate(name .. ':\n' .. message) TextMessage.displayPrivate(name .. ':\n' .. message)
end end
end end