Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 21, 2016, 1:59:04 PM (9 years ago)
Author:
muemart
Message:

Fix some clang-tidy warnings.
Also, Serialise.h was doing some C-style casts that ended up being const casts. I moved those const casts as close to the source as possible and changed the loadAndIncrease functions to not do that.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/weapons/projectiles/GravityBombField.cc

    r11071 r11083  
    3434        fieldExploded_ = false;
    3535
    36         setVelocity(FORCE_SPHERE_START_STRENGTH);
     36        setFieldVelocity(FORCE_SPHERE_START_STRENGTH);
    3737        setDiameter(2*FORCE_SPHERE_START_RADIUS);
    3838        setMode(modeSphere_s);
     
    158158       
    159159        setDiameter(forceSphereRadius_*2);
    160         setVelocity(forceStrength_);
     160        setFieldVelocity(forceStrength_);
    161161        if(lifetime_>0) particleSphere_->setScale(forceSphereRadius_/FORCE_SPHERE_START_RADIUS);
    162162        bombModel_->setScale(modelScaling_);
Note: See TracChangeset for help on using the changeset viewer.