Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 26, 2008, 2:50:04 AM (17 years ago)
Author:
landauf
Message:

removed some bugs
tcl knows now orxonox

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/console/src/orxonox/Orxonox.cc

    r1151 r1188  
    129129  {
    130130  public:
    131     static void calculate(const std::string& calculation)
     131    static float calculate(const std::string& calculation)
    132132    {
    133133      ExprParser expr(calculation);
     
    141141          std::cout << "Warning: Expression could not be parsed to the end! Remains: '"
    142142              << expr.getRemains() << "'" << std::endl;
     143        return expr.getResult();
    143144      }
    144145      else
     146      {
    145147        std::cout << "Cannot calculate expression: Parse error" << std::endl;
     148        return 0;
     149      }
    146150    }
    147151  };
Note: See TracChangeset for help on using the changeset viewer.