Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 12, 2018, 12:17:34 AM (6 years ago)
Author:
landauf
Message:

[AsteroidMining_HS17] fixed a bunch of compiler warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Presentation_HS17_merge/src/modules/asteroidmining/SpicedAsteroidBelt.cc

    r11736 r11739  
    8888        float myPi = 3.1415927410125732421875; //pi; // Math.pi ist statisch oder so.
    8989        float width = this->radius1 - this->radius0; if(width<0){width = -width;} // predefined abs?
    90         float radius = (this->radius1 + this->radius0) / 2.0;
    91         int segmentCount = round(this->count / this->segments);
     90        float radius = (this->radius1 + this->radius0) / 2.0f;
     91        int segmentCount = (int)roundf(this->count / this->segments);
    9292
    9393        float dPhi = (2 * myPi) / this->segments;
    94         float dTheta = 4.0*this->tiltBy/this->segments;
     94        float dTheta = 4.0f*this->tiltBy/this->segments;
    9595        float sepp = -this->tiltAt;
    96         float globi = (myPi/2.0) + this->tiltBy;
     96        float globi = (myPi/2.0f) + this->tiltBy;
    9797
    9898        for(int s = 0; s<segments; ++s){
Note: See TracChangeset for help on using the changeset viewer.