Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-04-06 14:13:36 +0000
committerStijn Buys <ingar@osirion.org>2008-04-06 14:13:36 +0000
commit7b5a6b820d5acef36d402bd5a52d783ec68d33c7 (patch)
treea1cb65e071441277865ca5f4e315611cdd51c0e5 /src/client/chat.cc
parent25d2c764443723eb7a3dd5f8bf0b76586c1ff10b (diff)
mouse grabbing, Cvar and Func info
Diffstat (limited to 'src/client/chat.cc')
-rw-r--r--src/client/chat.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/chat.cc b/src/client/chat.cc
index 7f5c22c..8de2665 100644
--- a/src/client/chat.cc
+++ b/src/client/chat.cc
@@ -33,6 +33,8 @@ void func_con_chat(std::string const &args)
if (i) chat_visible = true; else chat_visible = false;
} else
chat_visible = !chat_visible;
+
+
}
//--- public ------------------------------------------------------
@@ -40,7 +42,7 @@ void func_con_chat(std::string const &args)
void init()
{
// add engine functions
- //core::Func::add("con_chat", (core::FuncPtr) func_con_chat);
+ core::Func::add("con_chat", (core::FuncPtr) func_con_chat);
history.clear();
history.push_back("");
@@ -97,6 +99,8 @@ void toggle()
history_pos = history.rbegin();
(*history_pos).clear();
}
+
+ setkeyboardmode(chat_visible);
}
void keypressed(int key)