Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 6, 2015, 11:03:00 PM (9 years ago)
Author:
landauf
Message:

merged the latest changes from pickupsFS14 to trunk

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/modules/jump/Jump.cc

    r10259 r10260  
    12711271    }
    12721272
     1273    float Jump::getFuel() const
     1274    {
     1275        if (this->figure_ != NULL)
     1276        {
     1277            if (this->figure_->rocketActive_ != NULL)
     1278            {
     1279                return this->figure_->rocketActive_->getFuelState();
     1280            }
     1281            else if (this->figure_->propellerActive_ != NULL)
     1282            {
     1283                return this->figure_->propellerActive_->getFuelState();
     1284            }
     1285            else if (this->figure_->shieldActive_ != NULL)
     1286            {
     1287                return this->figure_->shieldActive_->getFuelState();
     1288            }
     1289            else if (this->figure_->bootsActive_ != NULL)
     1290            {
     1291                return this->figure_->bootsActive_->getFuelState();
     1292            }
     1293        }
     1294
     1295        return 0.0;
     1296    }
     1297
    12731298    bool Jump::getDead(PlayerInfo* player) const
    12741299    {
Note: See TracChangeset for help on using the changeset viewer.