/////////////////////////////////////////////////////////////////////
| 201 | |
| 202 | ////////////////////////////////////////////////////////////////////////// |
| 203 | void CXConsoleVariable::ForceSet(const char* s) |
| 204 | { |
| 205 | bool bCheat=false; |
| 206 | bool bReadOnly=false; |
| 207 | if (m_nFlags & VF_READONLY) |
| 208 | { |
| 209 | m_nFlags&=~VF_READONLY; |
| 210 | bReadOnly=true; |
| 211 | } |
| 212 | |
| 213 | if (m_nFlags & VF_CHEAT) |
| 214 | { |
| 215 | m_nFlags&=~VF_CHEAT; |
| 216 | bCheat=true; |
| 217 | } |
| 218 | |
| 219 | Set(s); |
| 220 | |
| 221 | if (bReadOnly) |
| 222 | m_nFlags|=VF_READONLY; |
| 223 | if (bCheat) |
| 224 | m_nFlags|=VF_CHEAT; |
| 225 | } |
| 226 | |
| 227 | ////////////////////////////////////////////////////////////////////////// |
| 228 | void CXConsoleVariable::Set(const char* s) |
no outgoing calls
no test coverage detected