Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 27, 2010, 7:29:49 PM (14 years ago)
Author:
landauf
Message:

re-implemented parameter evaluation in CommandEvaluation and simplified parse() and evaluateParams() in Executor.

Location:
code/branches/consolecommands3/src/libraries/core/input
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/consolecommands3/src/libraries/core/input/Button.cc

    r7204 r7230  
    175175
    176176                // evaluate the command
    177                 const CommandEvaluation& eval = CommandExecutor::evaluate(commandStr);
    178                 if (!eval.isValid())
     177                CommandEvaluation eval = CommandExecutor::evaluate(commandStr);
     178                if (!eval.isValid() || eval.evaluateParams(true))
    179179                {
    180180                    parseError("Command evaluation of \"" + commandStr + "\"failed.", true);
  • code/branches/consolecommands3/src/libraries/core/input/InputCommands.cc

    r7228 r7230  
    5353        if (this->abs_ != 0.0f || this->rel_ != 0.0f)
    5454        {
    55 //            evaluation_.setEvaluatedParameter(paramIndex_, Vector2(abs_, rel_));
     55            evaluation_.setEvaluatedParameter(paramIndex_, Vector2(abs_, rel_));
    5656            // reset
    5757            rel_ = 0.0;
Note: See TracChangeset for help on using the changeset viewer.