diff options
author | Stijn Buys <ingar@osirion.org> | 2017-07-09 13:04:26 +0200 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2017-07-09 13:04:26 +0200 |
commit | 9ec090567986b5d273c90cceaceae42922b84afe (patch) | |
tree | d75f95564ff58e2cf148ae6018f7377f63f1791c /src/core/cvar.h | |
parent | e5d987a988cf66aaeb6d11579bd278df9daf8118 (diff) |
Fixed a gcc 7 warning.
Diffstat (limited to 'src/core/cvar.h')
-rw-r--r-- | src/core/cvar.h | 6 |
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 -------------------------------------------------- */ |