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

« back to all changes in this revision

Viewing changes to src/engine/eVoter.cpp

  • Committer: SwagTron
  • Date: 2019-03-05 07:13:03 UTC
  • Revision ID: swagtron-20190305071303-5m4cn9hs6h8ydsgf
- Ported toggle from 0.4. Seems kind of hacky. Had to add another FindConfigItem of type tConfItemBase due to tab completion using the previous tString function. Plan to change this later, but I really needed the toggle function. Tried to cast the two, but that did not work out. Seemed like the bug-less option for the time being. Those unfamiliar with this function, you can now toggle boolean commands (Ex. toggle text_out)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1957
1957
            : uMenuItemAction( m, tOutput(""),tOutput("$kick_player_help" ) )
1958
1958
    {
1959
1959
        this->name_.Clear();
1960
 
        this->name_.SetTemplateParameter(1, p->GetColoredName() );
 
1960
        this->name_.SetTemplateParameter(1, p->GetName() );
1961
1961
        this->name_ << "$kick_player_text";
1962
1962
        player_ = p;
1963
1963
    }