Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 3, 2016, 9:28:44 PM (8 years ago)
Author:
landauf
Message:

fixed some compiler warnings (MSVC)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentationHS15/src/orxonox/controllers/WingmanController.cc

    r11026 r11030  
    132132                case FormationMode::WALL:
    133133                {
    134                     targetRelativePosition = new Vector3 (2*this->spread_, 0, 0 - this->tolerance_); 
     134                    targetRelativePosition = new Vector3 (2.0f*this->spread_, 0, 0 - 1.0f*this->tolerance_);
    135135                    break;
    136136                }
    137137                case FormationMode::FINGER4:
    138138                {
    139                     targetRelativePosition = new Vector3 (2*this->spread_, 0, this->spread_ - this->tolerance_); 
     139                    targetRelativePosition = new Vector3 (2.0f*this->spread_, 0, this->spread_ - 1.0f*this->tolerance_);
    140140                    break;
    141141                }
    142142                case FormationMode::DIAMOND:
    143143                {
    144                     targetRelativePosition = new Vector3 (2*this->spread_, 0, this->spread_ - this->tolerance_);                 
     144                    targetRelativePosition = new Vector3 (2.0f*this->spread_, 0, this->spread_ - 1.0f*this->tolerance_);
    145145                    break;
    146146                }
     
    152152                case FormationMode::WALL:
    153153                {
    154                     targetRelativePosition = new Vector3 (-2*this->spread_, 0, 0 - this->tolerance_); 
     154                    targetRelativePosition = new Vector3 (-2.0f*this->spread_, 0, 0 - 1.0f*this->tolerance_);
    155155                    break;
    156156                }
    157157                case FormationMode::FINGER4:
    158158                {
    159                     targetRelativePosition = new Vector3 (-2*this->spread_, 0, this->spread_ - this->tolerance_); 
     159                    targetRelativePosition = new Vector3 (-2.0f*this->spread_, 0, this->spread_ - 1.0f*this->tolerance_);
    160160                    break;
    161161                }
    162162                case FormationMode::DIAMOND:
    163163                {
    164                     targetRelativePosition = new Vector3 (2*this->spread_, -this->spread_, 0 - this->tolerance_);                 
     164                    targetRelativePosition = new Vector3 (2.0f*this->spread_, -1.0f*this->spread_, 0 - 1.0f*this->tolerance_);
    165165                    break;
    166166                }
Note: See TracChangeset for help on using the changeset viewer.