瀏覽代碼

Fix formatting

Ivan Savenko 2 年之前
父節點
當前提交
822df113f3
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      client/battle/BattleInterfaceClasses.h
  2. 1 1
      client/widgets/TextControls.cpp

+ 1 - 1
client/battle/BattleInterfaceClasses.h

@@ -55,7 +55,7 @@ private:
 	/// current text entered via in-game console, takes priority over both log entries and hover text
 	/// current text entered via in-game console, takes priority over both log entries and hover text
 	std::string consoleText;
 	std::string consoleText;
 
 
-	/// if true then we are currently entering console tex
+	/// if true then we are currently entering console text
 	bool enteringText;
 	bool enteringText;
 public:
 public:
 	BattleConsole(const Rect & position);
 	BattleConsole(const Rect & position);

+ 1 - 1
client/widgets/TextControls.cpp

@@ -428,7 +428,7 @@ void CGStatusBar::init()
 
 
 void CGStatusBar::clickLeft(tribool down, bool previousState)
 void CGStatusBar::clickLeft(tribool down, bool previousState)
 {
 {
-	if(!down && onClick )
+	if(!down && onClick)
 	{
 	{
 		if(LOCPLINT && LOCPLINT->cingconsole->active)
 		if(LOCPLINT && LOCPLINT->cingconsole->active)
 			LOCPLINT->cingconsole->startEnteringText();
 			LOCPLINT->cingconsole->startEnteringText();