Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

fixed some compiler warnings (MSVC)

Location:
code/branches/presentationHS15/src/orxonox/controllers
Files:
2 edited

Legend:

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

    r11026 r11030  
    192192            case FormationMode::WALL:
    193193            {
    194                 targetRelativePosition = new Vector3 (-2*this->spread_, 0, 0);   
     194                targetRelativePosition = new Vector3 (-2.0f*this->spread_, 0, 0);   
    195195                break;
    196196            }
    197197            case FormationMode::FINGER4:
    198198            {
    199                 targetRelativePosition = new Vector3 (-2*this->spread_, 0, this->spread_);   
     199                targetRelativePosition = new Vector3 (-2.0f*this->spread_, 0, 1.0f*this->spread_);   
    200200                break;
    201201            }
     
    203203            case FormationMode::DIAMOND:
    204204            {
    205                 targetRelativePosition = new Vector3 (-2*this->spread_, 0, this->spread_);                   
     205                targetRelativePosition = new Vector3 (-2.0f*this->spread_, 0, 1.0f*this->spread_);
    206206                break;
    207207            }
  • 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.