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

Location:
code/branches/console/src/orxonox
Files:
2 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  };
  • code/branches/console/src/orxonox/objects/Ambient.h

    r1056 r1188  
    4848
    4949            static void setAmbientLightTest(const ColourValue& colour)
    50                 { Ambient::instance_s->setAmbientLight(colour); }
     50                { std::cout << "setambientlight: " << colour << std::endl; Ambient::instance_s->setAmbientLight(colour); }
    5151
    5252        private:
Note: See TracChangeset for help on using the changeset viewer.