Changeset 10260 for code/trunk/src/modules/jump/Jump.cc
- Timestamp:
- Feb 6, 2015, 11:03:00 PM (9 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/pickupsFS14 merged: 10184
- Property svn:mergeinfo changed
-
code/trunk/src/modules/jump/Jump.cc
r10259 r10260 1271 1271 } 1272 1272 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 1273 1298 bool Jump::getDead(PlayerInfo* player) const 1274 1299 {
Note: See TracChangeset
for help on using the changeset viewer.