~armagetronad-ap/armagetronad/0.2.9-armagetronad-sty+ct+ap

« back to all changes in this revision

Viewing changes to src/render/rConsoleCout.cpp

  • Committer: zodiacsohma1 at gmail
  • Date: 2014-02-24 01:49:47 UTC
  • Revision ID: zodiacsohma1@gmail.com-20140224014947-e9m1rqm50et0esqb
Fixed mistake in gZone.cpp with activation of deathzone and winzone ladderlog events.
Added "TAB_COMPLETION_WITH_COLORS" and "KILL_ALL_SCRIPTS".
Added the menu option of "TAB_COMPLETION_WITH_COLORS" to "Special Setup".
Updated script to TAB Complete with colors if "TAB_COMPLETION_WITH_COLORS" is enabled.

Show diffs side-by-side

added added

removed removed

Lines of Context:
734
734
}
735
735
 
736
736
static tConfItemFunc sr_killScript( "KILL_SCRIPT", sr_KillScriptCommand );
737
 
static tAccessLevelSetter sr_killScriptALS( sr_killScript, tAccessLevel_Owner );
 
737
static tAccessLevelSetter sr_killScriptALS( sr_killScript, tAccessLevel_Owner );
 
738
 
 
739
void se_KillAllScripts()
 
740
{
 
741
    for( int i = sr_inputStreams.Len()-1; i >= 0; --i )
 
742
    {
 
743
        rScriptStream * script = dynamic_cast< rScriptStream * >( (rStream*)sr_inputStreams[i] );
 
744
        if( script )
 
745
        {
 
746
            script->Close();
 
747
        }
 
748
    }
 
749
}
 
750
 
 
751
// kills all scripts
 
752
static void sr_KillAllScriptsCommand( std::istream & s )
 
753
{
 
754
    se_KillAllScripts();
 
755
}
 
756
 
 
757
static tConfItemFunc sr_killAllScriptsConf( "KILL_ALL_SCRIPTS", sr_KillAllScriptsCommand );
 
758
static tAccessLevelSetter sr_killScriptALS( sr_killAllScriptsConf, tAccessLevel_Owner );
738
759
 
739
760
void sr_ListScriptsCommand( std::istream & s )
740
761
{