Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 18, 2010, 7:49:31 PM (14 years ago)
Author:
rgrieder
Message:

Removed a load of warnings for VS 2005 and possibly VS 2008.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/ChatInputHandler.cc

    r7163 r7183  
    129129    { this->text_colors[ i ] = new CEGUI::colour( red, green, blue );
    130130      assert( this->text_colors[ i ] );
    131       green += 0.2, blue += 0.2;
     131      green += 0.2f, blue += 0.2f;
    132132    }
    133133
     
    137137    { this->text_colors[ i ] = new CEGUI::colour( red, green, blue );
    138138      assert( this->text_colors[ i ] );
    139       red += 0.2, blue += 0.2;
     139      red += 0.2f, blue += 0.2f;
    140140    }
    141141
     
    145145    { this->text_colors[ i ] = new CEGUI::colour( red, green, blue );
    146146      assert( this->text_colors[ i ] );
    147       red += 0.2, green += 0.2;
     147      red += 0.2f, green += 0.2f;
    148148    }
    149149  }
     
    275275    {
    276276      /* adjust curser position - magic number 5 for font width */
    277       sub_adjust_dispoffset( (this->input->getUnclippedInnerRect().getWidth()/6),
     277      sub_adjust_dispoffset( (int)(this->input->getUnclippedInnerRect().getWidth()/6),
    278278        cursorpos, assembled.length() );
    279279      this->input->setProperty( "Text", assembled.substr( disp_offset ) );
     
    282282    {
    283283      /* adjust curser position - magic number 5 for font width */
    284       sub_adjust_dispoffset( (this->inputonly->getUnclippedInnerRect().getWidth()/6),
     284      sub_adjust_dispoffset( (int)(this->inputonly->getUnclippedInnerRect().getWidth()/6),
    285285        cursorpos, assembled.length() );
    286286      this->inputonly->setProperty( "Text", assembled.substr( disp_offset) );
Note: See TracChangeset for help on using the changeset viewer.