Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/cvar.cc14
-rw-r--r--src/core/func.cc2
2 files changed, 8 insertions, 8 deletions
diff --git a/src/core/cvar.cc b/src/core/cvar.cc
index a1444ae..f7402ab 100644
--- a/src/core/cvar.cc
+++ b/src/core/cvar.cc
@@ -77,9 +77,9 @@ Cvar get(const char *name, const char *value, int flags)
{
Cvar c = find(name);
if (c) {
- con_debug << "cvar::get " << name << " already exist with value " << value << std::endl;
+ //con_debug << "cvar::get " << name << " already exist with value " << cvar->text() << std::endl;
} else {
- con_debug << "cvar::get " << name << " " << value << std::endl;
+ //con_debug << "cvar::get " << name << " " << value << std::endl;
c = new Cvar_t(flags);
registry[std::string(name)] = c;
(*c) = value;
@@ -91,9 +91,9 @@ Cvar get(const char *name, float value, int flags)
{
Cvar c = find(name);
if (c) {
- con_debug << "cvar::get " << name << " already exist with value " << value << std::endl;
+ //con_debug << "cvar::get " << name << " already exist with value " << cvar->text() << std::endl;
} else {
- con_debug << "cvar::get " << name << " " << value << std::endl;
+ //con_debug << "cvar::get " << name << " " << value << std::endl;
c = new Cvar_t(flags);
registry[std::string(name)] = c;
(*c) = value;
@@ -108,8 +108,8 @@ Cvar set(const char *name, const char *value, int flags)
c = new Cvar_t(flags);
registry[std::string(name)] = c;
}
- con_debug << "cvar::set " << name << " " << value << std::endl;
(*c) = value;
+ //con_debug << "cvar::set " << name << " " << cvar->text() << std::endl;
return c;
}
@@ -120,8 +120,8 @@ Cvar set(const char *name, float value, int flags)
c = new Cvar_t(flags);
registry[std::string(name)] = c;
}
- con_debug << "cvar::set " << name << " " << value << std::endl;
(*c) = value;
+ //con_debug << "cvar::set " << name << " " << cvar->text() << std::endl;
return c;
}
@@ -156,7 +156,7 @@ Cvar find(const char *name)
void list()
{
- con_print << "-- listcvar -----------------" << std::endl;
+ con_print << "Registered variables:" << std::endl;
std::map<std::string, Cvar>::iterator it;
for (it = registry.begin(); it != registry.end(); it++) {
diff --git a/src/core/func.cc b/src/core/func.cc
index c72faea..064f77d 100644
--- a/src/core/func.cc
+++ b/src/core/func.cc
@@ -43,7 +43,7 @@ Func find(const std::string &functionname)
void list()
{
- con_print << "-- listfunc -----------------" << std::endl;
+ con_print << "Registered functions:" << std::endl;
std::map<std::string, Func>::iterator it;
for (it = registry.begin(); it != registry.end(); it++) {
con_print << " " << (*it).first << std::endl;