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
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentationHS15/src/modules/hover/FlagHUD.cc

    r11026 r11030  
    6969            this->panel_->_getRelativeHeight()
    7070            );
    71         this->panel_->setTiling(flagCount, 1.0f);
     71        this->panel_->setTiling(flagCount*1.0f, 1.0f);
    7272
    7373        this->flagCount_ = flagCount;
  • code/branches/presentationHS15/src/modules/hover/HoverFlag.cc

    r11029 r11030  
    7474        model_->setMeshSource("ss_flag_eu.mesh");
    7575        model_->setScale3D(Vector3(5, 5, 5));
    76         model_->setPosition(Vector3(xCoordinate*100 + 50,10,yCoordinate*100 + 50));
     76        model_->setPosition(Vector3(xCoordinate*100.0f + 50.0f,10.0f,yCoordinate*100.0f + 50.0f));
    7777
    7878        this->attach(model_);
     
    8484        cs_ = new BoxCollisionShape(context);
    8585        cs_->setHalfExtents(Vector3(5, 5, 5));
    86         cs_->setPosition(Vector3(xCoordinate*100 + 50,0,yCoordinate*100 + 50));
     86        cs_->setPosition(Vector3(xCoordinate*100.0f + 50.0f,0.0f,yCoordinate*100.0f + 50.0f));
    8787
    8888        this->attachCollisionShape(cs_);
  • code/branches/presentationHS15/src/modules/hover/HoverWall.cc

    r11029 r11030  
    8787        model_ = new Model(context);
    8888        model_->setMeshSource("CuboidBody.mesh");
    89         model_->setScale3D(Vector3(xSize_, 30, zSize_));
    90         model_->setPosition(Vector3(xPos_,0,zPos_));
     89        model_->setScale3D(Vector3(xSize_*1.0f, 30.0f, zSize_*1.0f));
     90        model_->setPosition(Vector3(xPos_*1.0f, 0.0f, zPos_*1.0f));
    9191
    9292        this->attach(model_);
     
    9797
    9898        cs_ = new BoxCollisionShape(context);
    99         cs_->setHalfExtents(Vector3(xSize_, 30, zSize_));
    100         cs_->setPosition(Vector3(xPos_,0,zPos_));
     99        cs_->setHalfExtents(Vector3(xSize_*1.0f, 30.0f, zSize_*1.0f));
     100        cs_->setPosition(Vector3(xPos_*1.0f, 0.0f, zPos_*1.0f));
    101101
    102102        this->attachCollisionShape(cs_);
  • 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                }
  • code/branches/presentationHS15/src/orxonox/weaponsystem/ReplenishingMunition.h

    r11026 r11030  
    5757           
    5858            virtual float getProgress();
    59             inline float getReplenishAmount() const
     59            inline unsigned int getReplenishAmount() const
    6060                { return replenishAmount_; }
    6161            inline float getReplenishInterval() const
Note: See TracChangeset for help on using the changeset viewer.