Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 13, 2017, 11:32:26 AM (6 years ago)
Author:
vyang
Message:

Kommentare

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/Asteroid_HS17/src/modules/asteroids2D/Asteroids2DStone.cc

    r11668 r11669  
    120120    void Asteroids2DStone::damage(float damage, float healthdamage, float shielddamage, Pawn* originator, const btCollisionShape* cs)
    121121    {
     122        if (getGame() && orxonox_cast<Asteroids2DShip*>(originator) != nullptr)
     123            getGame()->addPoints(100);
    122124        split();
    123125        //Pawn::damage(damage, healthdamage, shielddamage, originator, cs);
    124         if (getGame() && orxonox_cast<Asteroids2DShip*>(originator) != nullptr && getHealth() <= 0)
    125             getGame()->addPoints(3*42);
    126126    }
    127127
Note: See TracChangeset for help on using the changeset viewer.