Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 31, 2016, 8:43:10 PM (9 years ago)
Author:
landauf
Message:

fixed warnings (release build).
fixed error in GravityBombField

Location:
code/trunk/src/modules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/pickup/PickupSpawner.cc

    r11099 r11103  
    191191        bool pickedUp = this->pickup_->pickup(target);
    192192        assert(pickedUp);
    193         pickedUp = false; // To avoid compiler warning.
     193        (void)pickedUp; // To avoid compiler warning.
    194194
    195195        this->setPickupable(nullptr);
  • code/trunk/src/modules/weapons/projectiles/GravityBombField.cc

    r11083 r11103  
    6666        randomRotation.x = rnd();
    6767        randomRotation.y = rnd();
    68         randomRotation.y = rnd();
     68        randomRotation.z = rnd();
    6969        randomRotation.normalise();
    7070        bombModel_->setAngularAcceleration(randomRotation*(PEAK_ANGULAR_VELOCITY/FORCE_FIELD_LIFETIME));
Note: See TracChangeset for help on using the changeset viewer.