Changeset 10218 for code/trunk/src/modules/jump/Jump.cc
- Timestamp:
- Jan 31, 2015, 11:29:45 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/jump/Jump.cc
r10215 r10218 595 595 596 596 newPlatform = new JumpPlatformStatic(center_->getContext()); 597 addPlatform(newPlatform, center_->getPlatformStaticTemplate(), 0.0, -0.05 *sectionLength);597 addPlatform(newPlatform, center_->getPlatformStaticTemplate(), 0.0, -0.05f*sectionLength); 598 598 599 599 platformWidth_ = newPlatform->getWidth(); … … 603 603 { 604 604 newPlatform = new JumpPlatformStatic(center_->getContext()); 605 addPlatform(newPlatform, center_->getPlatformStaticTemplate(), xPosition, -0.05 *sectionLength);605 addPlatform(newPlatform, center_->getPlatformStaticTemplate(), xPosition, -0.05f*sectionLength); 606 606 newPlatform = new JumpPlatformStatic(center_->getContext()); 607 addPlatform(newPlatform, center_->getPlatformStaticTemplate(), -xPosition, -0.05 *sectionLength);607 addPlatform(newPlatform, center_->getPlatformStaticTemplate(), -xPosition, -0.05f*sectionLength); 608 608 } 609 609 } … … 616 616 float sectionEnd = (1 + sectionNumber_) * sectionLength; 617 617 618 int numI = 6;619 int numJ = 4;618 const int numI = 6; 619 const int numJ = 4; 620 620 621 621 enum PlatformType … … 1263 1263 { 1264 1264 float platformSpeed = center_->getPlatformSpeed(); 1265 return randomPosition(0.5 *platformSpeed, 1.5*platformSpeed);1265 return randomPosition(0.5f*platformSpeed, 1.5f*platformSpeed); 1266 1266 } 1267 1267
Note: See TracChangeset
for help on using the changeset viewer.