From 69cc53d7f3ae37726021dde2f3976f4cc505ed40 Mon Sep 17 00:00:00 2001
From: BeniS <dolb90@gmail.com>
Date: Sun, 8 Jul 2012 02:44:53 +1200
Subject: [PATCH] Minor fix from last commit.

---
 modules/client_options/options.lua | 18 +++++++++---------
 modules/game_console/console.lua   |  2 +-
 2 files changed, 10 insertions(+), 10 deletions(-)

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
+    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)
+    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