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.h')
-rw-r--r--src/core/cvar.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/cvar.h b/src/core/cvar.h
index 864d751..4db09dc 100644
--- a/src/core/cvar.h
+++ b/src/core/cvar.h
@@ -59,6 +59,12 @@ public:
inline const std::string& str() const {
return cvar_str;
}
+
+ /// returns true if a cvar flag is set
+ inline const bool has_flag(const Flags flag) const
+ {
+ return ((cvar_flags & (unsigned int)flag) == (unsigned int)flag);
+ }
/*----- mutators -------------------------------------------------- */