Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/cvar.cc')
-rw-r--r--src/core/cvar.cc25
1 files changed, 13 insertions, 12 deletions
diff --git a/src/core/cvar.cc b/src/core/cvar.cc
index 9d1c167..2350b56 100644
--- a/src/core/cvar.cc
+++ b/src/core/cvar.cc
@@ -1,7 +1,7 @@
/*
core/cvar.cc
- This file is part of the Osirion project and is distributed under
- the terms of the GNU General Public License version 2
+ This file is part of the Osirion project and is distributed under
+ the terms of the GNU General Public License version 2
*/
#include "core/cvar.h"
@@ -14,7 +14,8 @@
#include <iomanip>
-namespace core {
+namespace core
+{
Cvar_t::Cvar_t(unsigned int cvarflags)
{
@@ -53,19 +54,19 @@ Cvar_t & Cvar_t::operator=(float other)
return (*this);
}
-unsigned int Cvar_t::flags() const
-{
+unsigned int Cvar_t::flags() const
+{
return(cvar_flags);
}
-float Cvar_t::value() const
-{
- return(cvar_value);
+float Cvar_t::value() const
+{
+ return(cvar_value);
}
-const std::string &Cvar_t::text() const
-{
- return(cvar_text);
+const std::string &Cvar_t::text() const
+{
+ return(cvar_text);
}
namespace cvar
@@ -156,7 +157,7 @@ Cvar find(const char *name)
void list()
{
- std::map<std::string, Cvar>::iterator it;
+ std::map<std::string, Cvar>::iterator it;
for (it = registry.begin(); it != registry.end(); it++) {
con_print << " "<< (*it).first << " " << (*it).second->text() << std::endl;
}