~armagetronad-ct/armagetronad/armagetronad-advrim

« back to all changes in this revision

Viewing changes to src/tools/tConfiguration.cpp

  • Committer: Daniel Lee Harple
  • Date: 2012-02-08 16:38:05 UTC
  • Revision ID: leeharple@gmail.com-20120208163805-bya5mxzx8ccz1r6q
Restrict TOGGLE command to locally changeable config items.

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
    }
79
79
    
80
80
    tConfItem< bool > *confItem = dynamic_cast< tConfItem< bool > * >( base );
81
 
    if ( confItem )
 
81
    if ( confItem && confItem->Writable() )
82
82
    {
83
83
        confItem->SetVal( !*confItem->GetTarget() );
84
84
    }