Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2004


Ignore:
Timestamp:
Oct 24, 2008, 12:58:49 AM (16 years ago)
Author:
rgrieder
Message:

fixed a warning in KeyBinder.cc and an error when converting a MultiType to std::string.

Location:
code/branches/objecthierarchy/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/core/input/KeyBinder.cc

    r2001 r2004  
    359359        }
    360360
    361         for (int i = 0; i < MouseAxisCode::numberOfAxes * 2; i++)
     361        for (unsigned int i = 0; i < MouseAxisCode::numberOfAxes * 2; i++)
    362362        {
    363363            // Why dividing relative value by dt? The reason lies in the simple fact, that when you
     
    378378    void KeyBinder::tickJoyStick(float dt, unsigned int joyStick)
    379379    {
    380         for (int i = 0; i < JoyStickAxisCode::numberOfAxes * 2; i++)
     380        for (unsigned int i = 0; i < JoyStickAxisCode::numberOfAxes * 2; i++)
    381381        {
    382382            tickHalfAxis(joyStickAxes_[joyStick][i]);
  • code/branches/objecthierarchy/src/orxonox/gamestates/GSClient.cc

    r2003 r2004  
    5555        GSLevel::enter();
    5656
    57         this->client_ = new network::Client((std::string)CommandLine::getValue("ip"), CommandLine::getValue("port"));
     57        this->client_ = new network::Client(CommandLine::getValue("ip").getString(), CommandLine::getValue("port"));
    5858
    5959        if(!client_->establishConnection())
Note: See TracChangeset for help on using the changeset viewer.